public function getCreate() { $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); $accountCategories = new AccountCategory(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); return view('BalanceTransfers.add')->with('branchAll', $branchAll)->with('accountCategoriesAll', $accountCategoriesAll); }
public function getEdit($id) { $account = NameOfAccount::find($id); $accountCategories = new AccountCategory(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); return view('AccountName.edit', compact('account'))->with('accountCategoriesAll', $accountCategoriesAll)->with('branchAll', $branchAll); }
public function getMake($invoice_id) { $accountCategories = new AccountCategory(); $saleDetails = new SAleDetail(); $transactions = new Transaction(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $saleDetailsAmount = $saleDetails->getTotalAmount($invoice_id); $transactionsPaid = $transactions->getTotalPaid($invoice_id); $saleDetailsBranch = SAleDetail::where('invoice_id', '=', $invoice_id)->first(); return view('Sales.paymentAdd', compact('accountCategoriesAll'))->with('saleDetailsAmount', $saleDetailsAmount)->with('saleDetailsBranch', $saleDetailsBranch->branch_id)->with('transactionsPaid', $transactionsPaid); }
public function getMakeall() { $accountCategories = new AccountCategory(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); $buyers = new Party(); $partyAll = $buyers->getSuppliersDropDown(); return view('PurchaseInvoice.paymentAddAll', compact('accountCategoriesAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll); }
public function getMake() { $accountCategories = new AccountCategory(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); return view('Expenses.paymentAdd', compact('accountCategoriesAll'))->with('branchAll', $branchAll); }
public function getMake($invoice_id) { $accountCategories = new AccountCategory(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $purchaseDetails = new PurchaseInvoiceDetail(); $transactions = new Transaction(); $purchaseDetailsAmount = $purchaseDetails->getTotalAmount($invoice_id); $transactionsPaid = $transactions->getTotalPaidPurchase($invoice_id); return view('PurchaseInvoice.paymentAdd', compact('accountCategoriesAll'))->with('purchaseDetailsAmount', $purchaseDetailsAmount)->with('transactionsPaid', $transactionsPaid); }
public function getMake($invoice_id) { $accountCategories = new AccountCategory(); $transactions = new Transaction(); $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); $expense = Expense::where('invoice_id', '=', $invoice_id)->first(); $transactionsPaid = $transactions->getTotalExpensePaid($invoice_id); return view('Expenses.paymentAdd', compact('accountCategoriesAll'))->with('invoice_id', $invoice_id)->with('totalExpense', $expense->amount)->with('transactionsPaid', $transactionsPaid)->with('branchAll', $branchAll); }
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); }