Exemple #1
0
        public ActionResult InvoiceApproval()
        {
            var unbilledHeader = new NetStock.Contract.UnbilledHeader();

            unbilledHeader.CustomersList   = Utility.GetCustomerList(false);
            unbilledHeader.InvoiceTypeList = Utility.GetLookupItemList("INVOICETYPE");
            unbilledHeader.DateFrom        = DateTime.UtcNow.ThaiTime();
            unbilledHeader.DateTo          = DateTime.UtcNow.ThaiTime();
            unbilledHeader.OverDue         = false;
            unbilledHeader.PaymentDays     = 0;
            unbilledHeader.lstDetails      = new List <Contract.UnbilledDetail>();



            return(View("InvoiceApproval", unbilledHeader));
            //return View(Products);
        }
Exemple #2
0
        public ActionResult UnbilledInvoices(NetStock.Contract.UnbilledHeader item)
        {
            var unbilledHeader = new NetStock.Contract.UnbilledHeader();

            unbilledHeader.CustomersList   = Utility.GetCustomerList(false);
            unbilledHeader.InvoiceTypeList = Utility.GetLookupItemList("INVOICETYPE");
            unbilledHeader.CustomerCode    = item.CustomerCode;
            unbilledHeader.DateFrom        = item.DateFrom;
            unbilledHeader.DateTo          = item.DateTo;
            unbilledHeader.OverDue         = item.OverDue;
            unbilledHeader.PaymentDays     = item.PaymentDays;
            unbilledHeader.lstDetails      = new NetStock.BusinessFactory.InvoiceHeaderBO().GetUnbilledOrders(item);



            return(View("UnbilledInvoices", unbilledHeader));
        }
Exemple #3
0
        public ActionResult InvoiceApproval(NetStock.Contract.UnbilledHeader item)
        {
            var unbilledHeader = new NetStock.Contract.UnbilledHeader();

            unbilledHeader.CustomersList   = Utility.GetCustomerList(false);
            unbilledHeader.InvoiceTypeList = Utility.GetLookupItemList("INVOICETYPE");
            unbilledHeader.CustomerCode    = item.CustomerCode == "ALL" ? null : item.CustomerCode;
            unbilledHeader.DateFrom        = item.DateFrom;
            unbilledHeader.DateTo          = item.DateTo;
            unbilledHeader.OverDue         = true;
            unbilledHeader.PaymentDays     = item.PaymentDays;

            item.OverDue = true;
            unbilledHeader.lstDetails = new NetStock.BusinessFactory.InvoiceHeaderBO().GetUnApprovedInvoices(item);


            return(View("InvoiceApproval", unbilledHeader));
            //return View(Products);
        }
Exemple #4
0
        public ActionResult InvoiceInquiryResult(NetStock.Contract.UnbilledHeader item)
        {
            short branchID = Convert.ToInt16(Session["BranchId"]);

            var unbilledHeader = new NetStock.Contract.UnbilledHeader();

            unbilledHeader.CustomersList   = Utility.GetCustomerList(false);
            unbilledHeader.InvoiceTypeList = Utility.GetLookupItemList("INVOICETYPE");
            unbilledHeader.CustomerCode    = item.CustomerCode == "ALL" ? null : item.CustomerCode;
            unbilledHeader.InvoiceType     = item.InvoiceType == "ALL" ? null : item.InvoiceType;
            unbilledHeader.DateFrom        = item.DateFrom;
            unbilledHeader.DateTo          = item.DateTo;
            unbilledHeader.OverDue         = item.OverDue;
            unbilledHeader.PaymentDays     = item.PaymentDays;
            unbilledHeader.lstDetails      = new NetStock.BusinessFactory.InvoiceHeaderBO().InvoiceInquiry(item, branchID);



            return(View("InvoiceInquiry", unbilledHeader));
        }
Exemple #5
0
        public ActionResult InvoiceInquiry()
        {
            var unbilledHeader = new NetStock.Contract.UnbilledHeader();

            unbilledHeader.CustomersList = Utility.GetCustomerList(false);
            //unbilledHeader.InvoiceTypeList = Utility.GetLookupItemList("INVOICETYPE");
            unbilledHeader.InvoiceTypeList = new NetStock.BusinessFactory.LookupBO()
                                             .GetList().Where(dt => dt.Category == "PAYMENTTYPE" && dt.Status == true)
                                             .Select(x => new SelectListItem {
                Value = x.LookupCode,
                Text  = x.Description
            }).ToList();
            unbilledHeader.DateFrom    = DateTime.Today.Date;
            unbilledHeader.DateTo      = DateTime.Today.Date;
            unbilledHeader.OverDue     = false;
            unbilledHeader.PaymentDays = 0;
            unbilledHeader.lstDetails  = new List <Contract.UnbilledDetail>();



            return(View("InvoiceInquiry", unbilledHeader));
            //return View(Products);
        }