Exemple #1
0
 public async Task<List<CashflowProjectionItem>> GenerateProjectionAsync(
                 DateTime startDate,
                 DateTime endDate,
                 decimal openingBalance,
                 decimal threshold,
                 ICashflowProjectionMode projectionMode
                 )
 {
     return await this.cashflowProjection.GenerateProjectionAsync(this.CashflowBankAccounts, startDate, endDate, openingBalance, threshold, projectionMode);
 }
Exemple #2
0
 public async Task <List <CashflowProjectionItem> > GenerateProjectionAsync(
     DateTime startDate,
     DateTime endDate,
     decimal openingBalance,
     decimal threshold,
     ICashflowProjectionMode projectionMode
     )
 {
     return(await this.cashflowProjection.GenerateProjectionAsync(this.CashflowBankAccounts, startDate, endDate, openingBalance, threshold, projectionMode));
 }
Exemple #3
0
        public async Task<List<CashflowProjectionItem>> GenerateProjectionAsync(
                DateTime startDate,
                int months,
                decimal openingBalance,
                decimal threshold,
                ICashflowProjectionMode projectionMode
                )
        {
            var endDate = startDate.AddDays(-startDate.Day).AddDays(1).AddMonths(months + 1).AddDays(-1); // last day of month

            return await GenerateProjectionAsync(startDate, endDate, openingBalance, threshold, projectionMode);
        }
Exemple #4
0
        public async Task <List <CashflowProjectionItem> > GenerateProjectionAsync(
            DateTime startDate,
            int months,
            decimal openingBalance,
            decimal threshold,
            ICashflowProjectionMode projectionMode
            )
        {
            var endDate = startDate.AddDays(-startDate.Day).AddDays(1).AddMonths(months + 1).AddDays(-1); // last day of month

            return(await GenerateProjectionAsync(startDate, endDate, openingBalance, threshold, projectionMode));
        }
        public async Task<List<CashflowProjectionItem>> GenerateProjectionAsync(
                List<CashflowBankAccount> accounts,
                DateTime startDate,
                DateTime endDate,
                decimal openingBalance,
                decimal threshold,
                ICashflowProjectionMode projectionMode
                )
        {
            List<CashflowProjectionTransfer> cpts = await projectionTransferGenerator.GenerateCashflowProjectionTransfersAsync(accounts, startDate, endDate);

            List<CashflowProjectionItem> cpis = projectionMode.GenerateAggregatedProjectionItems(cpts);

            ApplyBalancesAndThreshold(cpis, startDate, openingBalance, threshold);

            return cpis;
        }
Exemple #6
0
        public async Task <List <CashflowProjectionItem> > GenerateProjectionAsync(
            List <CashflowBankAccount> accounts,
            DateTime startDate,
            DateTime endDate,
            decimal openingBalance,
            decimal threshold,
            ICashflowProjectionMode projectionMode
            )
        {
            List <CashflowProjectionTransfer> cpts = await projectionTransferGenerator.GenerateCashflowProjectionTransfersAsync(accounts, startDate, endDate);

            List <CashflowProjectionItem> cpis = projectionMode.GenerateAggregatedProjectionItems(cpts);

            ApplyBalancesAndThreshold(cpis, startDate, openingBalance, threshold);

            return(cpis);
        }