public function getRequisition() { $parties = new Party(); $partyAll = $parties->getPartiesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); return view('Searches.stockRequisition', compact('partyAll'))->with('branchAll', $branchAll); }
public function getEdit($id) { $stockRequisition = StockRequisition::find($id); $products = new Product(); $productAll = $products->getProductsWithCategories(); $parties = new Party(); $partyAll = $parties->getPartiesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); return view('StockRequisition.edit', compact('stockRequisition'))->with('partyAll', $partyAll)->with('productAll', $productAll)->with('branchAll', $branchAll); }
public function getCreate() { $stockInfos = new StockInfo(); $allStockInfos = $stockInfos->getStockInfoDropDown(); $parties = new Party(); $partyAll = $parties->getPartiesDropDown(); $imports = new Import(); $consignmentAll = $imports->getConsignmentNameDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); return view('SalesReturn.add', compact('allStockInfos', 'consignmentAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll); }
public function getEdit($id) { $stockInvoices = SalesReturnInvoice::find($id); $branches = new Branch(); $stockDetails = SalesReturnDetail::where('invoice_id', '=', $stockInvoices->invoice_id)->first(); $stockDetails2 = SalesReturnDetail::where('invoice_id', '=', $stockInvoices->invoice_id)->get(); // get all stocks $invoiceId = $stockInvoices->invoice_id; //$invoiceId = 's121513'; $buyersAll = 0; $imports = Import::where('status', '=', 'Activate')->get(); $productsName = Product::where('product_type', '=', $stockDetails->product_type)->get(); $stockInfos = new StockInfo(); $allStockInfos = $stockInfos->getStockInfoDropDown(); $parties = new Party(); $partyAll = $parties->getPartiesDropDown(); $imports = new Import(); $consignmentAll = $imports->getConsignmentNameDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); $imports = Import::where('status', '=', 'Activate')->get(); return view('SalesReturn.edit2', compact('buyersAll', 'invoiceId', 'stockInvoices', 'stockDetails', 'productsName', 'stockDetails2', 'imports', 'partyAll', 'consignmentAll'))->with('branchAll', $branchAll)->with('allStockInfos', $allStockInfos); // return view('Stocks.edit',compact('stock')) // ->with('allStockInfos',$allStockInfos) // ->with('branchAll',$branchAll); }
public function getPurchasepartyledger() { $parties = new Party(); $partiesAll = $parties->getPartiesDropDown(); return view('Reports.purchasePartyLedger')->with('partiesAll', $partiesAll); }
public function getMakeall() { $accountCategories = new AccountCategory(); $saleDetails = new SAleDetail(); $transactions = new Transaction(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); $buyers = new Party(); $partyAll = $buyers->getPartiesDropDown(); return view('Sales.paymentAddAll', compact('accountCategoriesAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll); }