Ejemplo n.º 1
0
        public ActionResult Add(int receiptId = 0)
        {
            ViewBag.PaymentTerm = ListCommonHelper.GetPaymentTerm("en")
                                  .Where(x => x.Key == 1)
                                  .ToDictionary(x => x.Key, x => x.Value);
            ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList();
            ViewBag.BankList     = ListCommonHelper.GetBankList();
            var cashOutObj = CashOutExpenseHelper.GetCashReceiptForExpense(receiptId);

            ViewBag.ExpenseNameList = ListCommonHelper.GetExpensesLibraryList();
            ViewBag.ReceiptId       = receiptId;

            return(View(cashOutObj));
        }