Ejemplo n.º 1
0
        public ActionResult CashOutReceipt(int invId, int agNoteId = 0)
        {
            ViewBag.CashRecTitle = "Cash Out Receipt";
            ViewBag.PaymentTerm  = ListCommonHelper.GetPaymentTerm("en")
                                   .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 = CashOutHelper.GetCashReceiptInfo(invId, agNoteId);

            return(View("~/Views/CashManagement/CashInReceipt.cshtml", cashReceiptObj));
        }
Ejemplo 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));
        }
Ejemplo n.º 3
0
        public ActionResult PrintCashInV(int id, bool isOut)
        {
            CashInVm invObj;

            if (isOut)
            {
                invObj = CashOutHelper.GetCashReceiptInfo(0, 0, id);
            }
            else
            {
                invObj = CashHelper.GetCashReceiptInfo(0, 0, id);
            }
            return(View(invObj));
        }
Ejemplo n.º 4
0
        public ActionResult ViewCashInPartial(int id, bool isOut = false)
        {
            System.Globalization.CultureInfo clut = new System.Globalization.CultureInfo("ar-EG");

            Session["receiptId"] = id;
            Session["CashType"]  = isOut;
            CashInVm invObj;

            if (isOut)
            {
                invObj = CashOutHelper.GetCashReceiptInfo(0, 0, id);
            }
            else
            {
                invObj = CashHelper.GetCashReceiptInfo(0, 0, id);
            }
            return(PartialView("~/Views/CashManagement/_ViewCashInReceipt.cshtml", invObj));
        }