public ActionResult CashInReceipt(int invId, int agNoteId = 0) { ViewBag.CashRecTitle = "Cash In Receipt"; ViewBag.PaymentTerm = ListCommonHelper.GetPaymentTerm("en", true) .Where(x => x.Key != 2 && x.Key < 6) .ToDictionary(x => x.Key, x => x.Value); ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList(); ViewBag.BankList = ListCommonHelper.GetBankList(); var cashReceiptObj = CashHelper.GetCashReceiptInfo(invId, agNoteId); return(View(cashReceiptObj)); }
public ActionResult CCCashDeposit(int operationId, decimal receiptAmount = 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 cashReceiptObj = CashOutHelper.GetCashReceiptInfo(0, 0, 0, operationId, receiptAmount); ViewBag.CashRecTitle = "Custom Clearance Cash Deposit For Operation " + cashReceiptObj.OperationCode; return(View("~/Views/CashManagement/CashInReceipt.cshtml", cashReceiptObj)); }
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)); }
public ActionResult ArCashDeposit() { ViewBag.PaymentTerm = ListCommonHelper.GetPaymentTerm("en") .Where(x => x.Key == 1 || x.Key == 3) //Cash Or bank only .ToDictionary(x => x.Key, x => x.Value); ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList(); ViewBag.BankList = ListCommonHelper.GetBankList(); ViewBag.ShipperList = ListCommonHelper.GetShipperList(); ViewBag.ConsigneeList = ListCommonHelper.GetConsigneeList(); var cashReceiptObj = CashHelper.GetCashReceiptInfo(0, 0); cashReceiptObj.Notes = "Cash Deposit From Client"; return(View(cashReceiptObj)); }
public ActionResult AddAgentNote(int operId, byte noteType, int agNoteId = 0) { if (noteType == 1) { ViewBag.NoteType = "Debit"; } else { ViewBag.NoteType = "Credit"; } ViewBag.BankList = ListCommonHelper.GetBankList(); ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList(); var agNoteVm = AgentNoteHelper.GetAgentNoteInfo(operId, noteType, agNoteId); return(View(agNoteVm)); }
public ActionResult CashOpenBalance(string accid, int cid) { ViewBag.PaymentTerm = ListCommonHelper.GetPaymentTerm("en", true) .Where(x => x.Key != 2 && x.Key < 6) .ToDictionary(x => x.Key, x => x.Value); ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList(); ViewBag.BankList = ListCommonHelper.GetBankList(); var cashReceiptObj = CashHelper.GetCashReceiptOpenBalance(accid, cid); var openBalanceObject = AccountingHelper.Get_OpenBalanceObject(accid, cid); ViewBag.OpenBalanceObject = openBalanceObject; ViewBag.CashRecTitle = openBalanceObject.Amount < 0 ? "Cash Out Receipt" : "Cash In Receipt"; return(View(cashReceiptObj)); }
public ActionResult AddCashReceipt(string type) { if (type.ToLower() == "in") { ViewBag.CashRecTitle = "Cash In Receipt"; } else if (type.ToLower() == "out") { ViewBag.CashRecTitle = "Cash out Receipt"; } else { return(RedirectToAction("Index")); } ViewBag.PaymentTerm = ListCommonHelper.GetPaymentTerm("en").Where(x => x.Key < 6).ToList(); ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList(); ViewBag.BankList = ListCommonHelper.GetBankList(); ViewBag.PartnersList = ListCommonHelper.GetPartnersList(); var cashVm = PartnersDrawingHelper.GetCashReceiptForPartners(type); return(View(cashVm)); }