Esempio n. 1
0
        public ActionResult Create()
        {
            GetDefaultData();
            ViewBag.Islook = "new";
            var order = new SalesModel();

            order.Customer     = new Customer();
            order.Curency      = curencies.FirstOrDefault(x => x.Code == "USD");
            order.VoucherCode  = stockReceivingService.GetVoucherCodeId("HDA");
            order.VoucherNo    = salesServices.GetVoucherNo();
            order.Status       = VoucherStatus.Pending;
            order.ExchangeRate = 22500;
            return(View(order));
        }