public IActionResult EditView(int accountGroupId) { var accountGroup = _work.AccountGroup.Get(accountGroupId); ViewData["AccountTypes"] = POSHelper.GetAccountTypeSelectItems(_work.AccountType); return(PartialView("_AccountGroupEditView", accountGroup)); }
public IActionResult CreateView() { ViewData["BankAccount"] = POSHelper.GetBankAccountSelectItems(_work.BankAccount); ViewData["Employee"] = POSHelper.GetEmployeeSelectItems(_work.Employee); return(PartialView("_LoanReceivableCreateView")); }
public IActionResult CreateView() { ViewData["Product"] = POSHelper.GetProductSelectItems(_work.Product); ViewData["Price"] = POSHelper.GetPriceSelectItems(_work.Price); return(PartialView("_ProductPriceCreateView")); }
public IActionResult EditView(int accountLedgerId) { var accountLedger = _work.AccountLedger.Get(accountLedgerId); ViewData["AccountGroups"] = POSHelper.GetAccountGroupSelectItems(_work.AccountGroup); return(PartialView("_AccountLedgerEditView", accountLedger)); }
public IActionResult EditView(int conversionId) { ViewData["Unit"] = POSHelper.GetUnitSelectItems(_work.Unit); var conversion = _work.Conversion.GetWithUnit(conversionId); return(PartialView("_ConversionEditView", conversion)); }
public IActionResult CreateView() { ViewData["ProductGroups"] = POSHelper.GetProductGroupSelectItems(_work.ProductGroup); ViewData["ProductCategories"] = POSHelper.GetProductCategorySelectItems(_work.ProductCategory); ViewData["Conversions"] = POSHelper.GetConversionSelectItems(_work.Conversion); return(PartialView("_ProductCreateView")); }
public IActionResult SalesInvoiceInformation(string search) { string invoiceNumber = search; var salesInvoice = context.SalesInvoice.GetAllWithRelatedData(invoiceNumber); salesInvoice.SalesInvoiceDetails = context.SalesInvoiceDetail.GetAllWithRelatedData(invoiceNumber).ToList(); salesInvoice.UpdatedBy = POSHelper.AmountInWords(salesInvoice.GrandTotal); return(PartialView("_SalesInvoiceInformation", salesInvoice)); }
public IActionResult EditView(int productPriceId) { ViewData["Product"] = POSHelper.GetProductSelectItems(_work.Product); ViewData["Price"] = POSHelper.GetPriceSelectItems(_work.Price); var productPrice = _work.ProductPrice.GetWithProductAndPrice(productPriceId); return(PartialView("_ProductPriceEditView", productPrice)); }
public IActionResult PurchaseInformation(string search) { string invoiceNumber = search; var purchaseProduct = context.PurchaseProduct.GetAllWithRelatedData(invoiceNumber); purchaseProduct.UpdatedBy = POSHelper.AmountInWords(purchaseProduct.GrandTotal); purchaseProduct.PurchaseProductDetail = context.PurchaseProductDetail.GetAllWithRelatedData(invoiceNumber).ToList(); return(PartialView("_PurchaseInformation", purchaseProduct)); }
public IActionResult EditView(int loanReceivableId) { ViewData["BankAccount"] = POSHelper.GetBankAccountSelectItems(_work.BankAccount); ViewData["Employee"] = POSHelper.GetEmployeeSelectItems(_work.Employee); var loanReceivable = _work.LoanReceivable.GetWithBankAccountAndEmployee(loanReceivableId); return(PartialView("_LoanReceivableEditView", loanReceivable)); }
public IActionResult EditView(int productId) { var product = _work.Product.GetWithCategoryAndGroupAndConversion(productId); ViewData["ProductGroups"] = POSHelper.GetProductGroupSelectItems(_work.ProductGroup); ViewData["ProductCategories"] = POSHelper.GetProductCategorySelectItems(_work.ProductCategory); ViewData["Conversions"] = POSHelper.GetConversionSelectItems(_work.Conversion); return(PartialView("_ProductEditView", product)); }
public IActionResult SendEmailToCustomer() { var customerList = context.Customer.GetAll().ToList(); SettingVM setting = new SettingVM() { SupplierItem = POSHelper.Customer(customerList), }; return(View(setting)); }
public IActionResult SendEmailToSupplier() { var supplier = context.Supplier.GetAll().ToList(); SettingVM setting = new SettingVM() { SupplierItem = POSHelper.Supplier(supplier), }; return(View(setting)); }
public IActionResult AccountPay() { var supplier = context.Supplier.GetAll().ToList(); PurchaseProductVM purchaseProductVM = new PurchaseProductVM() { SupplierItem = POSHelper.Supplier(supplier), }; return(View(purchaseProductVM)); }
public IActionResult AccountReceivable() { var customer = context.Customer.GetAll().ToList(); customer = customer.Where(item => item.Name != "Walk in Customer").ToList(); SalesInvoiceVM salesInvoiceVM = new SalesInvoiceVM() { CustomerItem = POSHelper.Customer(customer), }; return(View(salesInvoiceVM)); }
public JsonResult GetLedgerSelectList() { List <SelectListItem> selectList = new List <SelectListItem>(); selectList.Add(new SelectListItem { Value = 1.ToString(), Text = "Rijvy", Selected = false }); selectList.AddRange(POSHelper.GetLedgerSelectItems(_work.AccountLedger)); return(Json(selectList)); }
public IActionResult Index() { var brand = context.Brand.GetAll().ToList(); var category = context.Category.GetAll().ToList(); var unit = context.Unit.GetAll().ToList(); ProductVM productVM = new ProductVM(); productVM.BrandItem = POSHelper.Brand(brand); productVM.CategoryItem = POSHelper.Category(category); productVM.UnitItem = POSHelper.Unit(unit); return(View(productVM)); }
public IActionResult Index() { var customerItems = context.Customer.GetAll().ToList(); var productItems = context.Product.GetAll().ToList(); var vatItems = context.VatAndTax.GetAll().ToList(); SalesInvoiceVM salesInvoice = new SalesInvoiceVM() { CustomerItem = POSHelper.Customer(customerItems), ProductItem = POSHelper.Product(productItems), VatItem = POSHelper.VatAndTax(vatItems), }; return(View(salesInvoice)); }
public IActionResult Index() { var supplierList = context.Supplier.GetAll().ToList(); var productList = context.Product.GetAll().ToList(); var vatAndTax = context.VatAndTax.GetAll().ToList(); PurchaseProductVM purchaseProduct = new PurchaseProductVM() { SupplierItem = POSHelper.Supplier(supplierList), ProductItem = POSHelper.Product(productList), VatItem = POSHelper.VatAndTax(vatAndTax), }; return(View(purchaseProduct)); }
public IActionResult Index() { var getUser = context.User.GetAll().ToList(); if (getUser.Count == 0) { CreateUser(); } if (getUser.Count > 0) { POSHelper.UpdateUser(context); } UserLoginVM userLoginVM = new UserLoginVM(); return(View(userLoginVM)); }
public IActionResult ProductEditView(int search) { try { var products = context.Product.GetAllWithRelatedData(search); var brand = context.Brand.GetAll().ToList(); var category = context.Category.GetAll().ToList(); var unit = context.Unit.GetAll().ToList(); if (products != null) { ProductVM productVM = new ProductVM() { Id = search, Name = products.Name, WarningQuantity = products.WarningQuantity, PhotoUrl = products.PhotoUrl, Description = products.Description, BrandId = products.BrandId, CategoryId = products.CategoryId, UnitId = products.UnitId, BrandItem = POSHelper.Brand(brand), CategoryItem = POSHelper.Category(category), UnitItem = POSHelper.Unit(unit), }; return(View(productVM)); } else { ProductVM productVM = new ProductVM() { BrandItem = POSHelper.Brand(brand), CategoryItem = POSHelper.Category(category), UnitItem = POSHelper.Unit(unit), }; return(View(productVM)); } } catch (Exception ex) { throw ex; } }
public IActionResult GetAllLedgerGroupAsSelectList() { var selectList = POSHelper.GetLedgerGroupSelectItems(_work.AccountLedgerGroup); return(Json(selectList)); }
public JsonResult GetAllLedgerAsSelectList() { var ledegrSelectList = POSHelper.GetAccountLedgerSelectItems(_work.AccountLedger); return(Json(ledegrSelectList)); }
public JsonResult GetSubledgerAsSelectList() { var subLedgers = POSHelper.GetSubLedgerSelectItems(_work.AccountSubLedger); return(Json(subLedgers)); }
public IActionResult CreateView() { ViewData["AccountGroups"] = POSHelper.GetAccountGroupSelectItems(_work.AccountGroup); ViewData["AccountLedgers"] = POSHelper.GetAccountLedgerSelectItems(_work.AccountLedger); return(PartialView("_AccountSubLedgerCreateView")); }
public IActionResult CreateView() { ViewData["AccountTypes"] = POSHelper.GetAccountTypeSelectItems(_work.AccountType); return(PartialView("_AccountGroupCreateView")); }
public IActionResult CreateView() { ViewData["Unit"] = POSHelper.GetUnitSelectItems(_work.Unit); return(PartialView("_ConversionCreateView")); }