Exemplo n.º 1
0
 /// <summary>
 /// Adds the account balance for debit.
 /// </summary>
 /// <param name="buPlanReceipt">The bu plan receipt.</param>
 /// <param name="buPlanReceiptDetail">The bu plan receipt detail.</param>
 /// <returns></returns>
 public AccountBalanceEntity AddAccountBalanceForDebit(BUBudgetReserveEntity buPlanReceipt, BUBudgetReserveDetailEntity buPlanReceiptDetail)
 {
     return(new AccountBalanceEntity
     {
         AccountBalanceId = Guid.NewGuid().ToString(),
         //AccountNumber = buPlanReceiptDetail.DebitAccount,
         CurrencyCode = buPlanReceipt.CurrencyCode,
         ExchangeRate = buPlanReceipt.ExchangeRate,
         BalanceDate = buPlanReceipt.PostedDate,
         MovementDebitAmountOC = buPlanReceiptDetail.AmountOC,
         MovementDebitAmount = buPlanReceiptDetail.Amount,
         MovementCreditAmountOC = 0,
         MovementCreditAmount = 0,
         BudgetSourceId = buPlanReceiptDetail.BudgetSourceId,
         BudgetChapterCode = buPlanReceipt.BudgetChapterCode,
         BudgetKindItemCode = buPlanReceiptDetail.BudgetKindItemCode,
         BudgetSubKindItemCode = buPlanReceiptDetail.BudgetSubKindItemCode,
         BudgetItemCode = buPlanReceiptDetail.BudgetItemCode,
         BudgetSubItemCode = buPlanReceiptDetail.BudgetSubItemCode,
         ProjectId = buPlanReceiptDetail.ProjectId,
         //BankAccount = buPlanReceiptDetail.BankId,
         FundStructureId = buPlanReceiptDetail.FundStructureId,
         BudgetDetailItemCode = buPlanReceiptDetail.BudgetDetailItemCode
     });
 }