コード例 #1
0
ファイル: Cashflow.cs プロジェクト: harriganjames/Finances
 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);
 }
コード例 #2
0
ファイル: Cashflow.cs プロジェクト: jmptrader/Finances
 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));
 }
コード例 #3
0
ファイル: Cashflow.cs プロジェクト: harriganjames/Finances
        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);
        }
コード例 #4
0
ファイル: Cashflow.cs プロジェクト: jmptrader/Finances
        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));
        }
コード例 #5
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;
        }
コード例 #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);
        }