public async Task <IActionResult> Create([Bind("ImportPurchaseId,GRNNo,GRNDate,InvoiceNo,InvoiceDate,SupplierName,Barcode,ProductName,StyleCode,ItemDesc,Quantity,MRP,MRPValue,Cost,CostValue,TaxAmt,IsVatBill,IsLocal,IsDataConsumed,ImportTime")] ImportPurchase importPurchase)
        {
            if (ModelState.IsValid)
            {
                _context.Add(importPurchase);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(importPurchase));
        }
        public async Task <IActionResult> Create([Bind("ImportSaleItemWiseId,InvoiceDate,InvoiceNo,InvoiceType,BrandName,ProductName,ItemDesc,HSNCode,Barcode,StyleCode,Quantity,MRP,Discount,BasicRate,Tax,SGST,CGST,LineTotal,RoundOff,BillAmnt,PaymentType,Saleman,IsDataConsumed,ImportTime")] ImportSaleItemWise importSaleItemWise)
        {
            if (ModelState.IsValid)
            {
                _context.Add(importSaleItemWise);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(importSaleItemWise));
        }
Exemple #3
0
        public async Task <IActionResult> Create([Bind("SaleTaxTypeId,TaxName,TaxType,CompositeRate")] SaleTaxType saleTaxType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(saleTaxType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(saleTaxType));
        }
        public async Task <IActionResult> Create([Bind("ImportInWardId,InWardNo,InWardDate,InvoiceNo,InvoiceDate,PartyName,TotalQty,TotalMRPValue,TotalCost,ImportDate")] ImportInWard importInWard)
        {
            if (ModelState.IsValid)
            {
                _context.Add(importInWard);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(importInWard));
        }
        public async Task <IActionResult> Create([Bind("ImportSaleRegisterId,InvoiceNo,InvoiceType,InvoiceDate,Quantity,MRP,Discount,BasicRate,Tax,RoundOff,BillAmnt,PaymentType,IsConsumed,ImportTime")] ImportSaleRegister importSaleRegister)
        {
            if (ModelState.IsValid)
            {
                _context.Add(importSaleRegister);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(importSaleRegister));
        }
Exemple #6
0
        public async Task <IActionResult> Create([Bind("StoreId,StoreCode,StoreName,Address,City,PinCode,PhoneNo,StoreManagerName,StoreManagerPhoneNo,PanNo,GSTNO,NoOfEmployees,OpeningDate,ClosingDate,Status")] Store store)
        {
            if (ModelState.IsValid)
            {
                _context.Add(store);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView(store));
        }
Exemple #7
0
        public async Task <IActionResult> Create([Bind("SaleInvoiceId,CustomerId,OnDate,InvoiceNo,TotalItems,TotalQty,TotalBillAmount,TotalDiscountAmount,RoundOffAmount,TotalTaxAmount")] SaleInvoice saleInvoice)
        {
            if (ModelState.IsValid)
            {
                _context.Add(saleInvoice);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(saleInvoice));
        }
Exemple #8
0
        public async Task <IActionResult> Create([Bind("CustomerId,FirstName,LastName,Age,DateOfBirth,City,MobileNo,Gender,NoOfBills,TotalAmount,CreatedDate")] Customer customer)
        {
            if (ModelState.IsValid)
            {
                _context.Add(customer);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView(customer));
        }
        public async Task <IActionResult> Create([Bind("ArvindPaymentId,Arvind,OnDate,InvoiceNo,Amount,BankDetails,Remarks")] ArvindPayment arvindPayment)
        {
            if (ModelState.IsValid)
            {
                _context.Add(arvindPayment);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView(arvindPayment));
        }
        public async Task <IActionResult> Create([Bind("ProductItemId,Barcode,BrandId,StyleCode,ProductName,ItemDesc,Categorys,MRP,TaxRate,Cost,Size,Units")] ProductItem productItem)
        {
            if (ModelState.IsValid)
            {
                _context.Add(productItem);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["BrandId"] = new SelectList(_context.Brands, "BrandId", "BrandName", productItem.BrandId);
            return(PartialView(productItem));
        }
Exemple #11
0
        public async Task <IActionResult> Create([Bind("StockID,ProductItemId,Quantity,SaleQty,PurchaseQty,Units")] Stock stock)
        {
            if (ModelState.IsValid)
            {
                HelperUtil.IsSessionSet(HttpContext);
                int storeid = HelperUtil.GetStoreID(HttpContext);
                stock.StoreId = storeid;
                _context.Add(stock);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["ProductItemId"] = new SelectList(_context.ProductItems, "ProductItemId", "ProductName", stock.ProductItemId);
            return(PartialView(stock));
        }
Exemple #12
0
        public async Task <IActionResult> Create([Bind("ProductPurchaseId,InWardNo,InWardDate,PurchaseDate,InvoiceNo,TotalQty,TotalBasicAmount,ShippingCost,TotalTax,TotalAmount,Remarks,SupplierID,IsPaid")] ProductPurchase productPurchase)
        {
            if (ModelState.IsValid)
            {
                HelperUtil.IsSessionSet(HttpContext);
                int storeid = HelperUtil.GetStoreID(HttpContext);
                productPurchase.StoreId = storeid;
                _context.Add(productPurchase);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["SupplierID"] = new SelectList(_context.Suppliers, "SupplierID", "SuppilerName", productPurchase.SupplierID);
            return(PartialView(productPurchase));
        }