Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
        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));
        }