changes for bbnepal

This commit is contained in:
2024-10-07 11:41:27 +05:45
parent e3c8a3b5fe
commit 967642f2be
12 changed files with 151 additions and 25 deletions

View File

@ -54,7 +54,7 @@ class Ledger extends CI_Controller
$data['to_date'] = null;
}
if (isset($_GET)) {
$data = $_GET;
$data = $_GET;
}
$data['pageTitle'] = "View Party Ledger";
$data['fiscalStart'] = NepaliToEnglishDate($data['fromDate'] ?? $this->session->userdata['FiscalYear']->fiscalyear_from);

View File

@ -38,7 +38,7 @@ class Reports extends CI_Controller
$data['AccountGroups'] = $AccountGroups;
loadView("accounts/ledgerall", $data);
break;
case 'getledgersummary':
case 'getledgersummary':
$account_id = $this->uri->segment(3);
$data['pageTitle'] = "Ledger";
$Transactions = $this->db->where("status", 1)->where("account_id", $account_id)->get("tbl_voucherdetails")->result();
@ -52,6 +52,25 @@ class Reports extends CI_Controller
$data['account_id'] = $account_id;
$this->load->view("accounts/ledgersummary", $data);
break;
case 'ledgerCashBook':
// $data = $this->uri->segment(3);
// $data['pageTitle'] = "Ledger";
// $Transactions = $this->db->where("status", 1)->where("account_id", $account_id)->get("tbl_voucherdetails")->result();
// $Account = $this->db->where("status", 1)->where("account_id", $account_id)->get("tbl_accounts")->row();
// foreach ($Transactions as $T) {
// // $T->AccountCategory=$this->db->where("status",1)->where("accategory_id",$AccountGroup->acgroup_id)->get("tbl_accategories")->result();
// $T->Voucher = $this->db->where("status", 1)->where("voucher_id", $T->voucher_id)->get("tbl_vouchers")->row();
// }
// $data['Transactions'] = $Transactions;
// $data['Account'] = $Account;
// $data['account_id'] = $account_id;
$data['fiscalStart'] = NepaliToEnglishDate($data['fromDate'] ?? $this->session->userdata['FiscalYear']->fiscalyear_from);
$data['fiscalEnd'] = NepaliToEnglishDate($data['toDate'] ?? $this->session->userdata['FiscalYear']->fiscalyear_to);
$this->load->view("accounts/ledger/ledger_cash_book_details",$data);
break;
case 'trialbalance_old':
$data['pageTitle'] = "Trial Balance";
$AccountGroups = $this->db->where("status", 1)->get("tbl_acgroups")->result();
@ -268,8 +287,6 @@ class Reports extends CI_Controller
case 'getledgersummary':
$account_id = $this->uri->segment(5);
$this->myaccounts->showLedger($account_id);
break;
case 'default':
//show_404();