diff --git a/account/application/controllers/inventory/Reports.php b/account/application/controllers/inventory/Reports.php index 0e413bd..0cd76af 100644 --- a/account/application/controllers/inventory/Reports.php +++ b/account/application/controllers/inventory/Reports.php @@ -12,14 +12,17 @@ class Reports extends CI_Controller } public function _remap($alias = "", $params = array()) { - $data['dataValue'] = $this->session; + // dd($this->session); + $data['dataValue'] = $this->session; $data['pageTitle'] = "Sales"; + $datas['fiscalStart'] =NepaliDate($this->session->FiscalYear->fiscalyear_from); + $datas['fiscalEnd'] =NepaliDate($this->session->FiscalYear->fiscalyear_to); switch ($alias) { case 'purchase_vs_sales': $data['StockRecords']=$this->MStocks->getStockRecords(); $data['PurchaseDetails'] = $this->MPurchases->getItemPurchases(); $data['SalesDetails'] = $this->MSales->getItemSales(); - $data['StockItems'] = $this->MStocks->getStockSummary(); + $data['StockItems'] = $this->MStocks->getStockSummary($datas); loadview("inventory/reports/purchase_vs_sales", $data); break; default: diff --git a/account/application/libraries/BIBAccounts1.php b/account/application/libraries/BIBAccounts1.php index a7589c7..367ef69 100644 --- a/account/application/libraries/BIBAccounts1.php +++ b/account/application/libraries/BIBAccounts1.php @@ -577,7 +577,7 @@ class bibaccounts ////// function renderAccountCategoriesTable($accountCategories, $ReportOptions, $displayHeadings = true, $parentCategories = []) { - if(!isset($ReportOptions['AmountColWidth']))$ReportOptions['AmountColWidth']=180; + if (!isset($ReportOptions['AmountColWidth'])) $ReportOptions['AmountColWidth'] = 180; ?>
accategory_name; ?> | @@ -725,7 +725,7 @@ class bibaccounts function renderAccountsTable($Accounts, $ReportOptions, $displayHeadings = false) { - if(!isset($ReportOptions['AmountColWidth']))$ReportOptions['AmountColWidth']=180; + if (!isset($ReportOptions['AmountColWidth'])) $ReportOptions['AmountColWidth'] = 180; ?>
-
- getRootCategoriesWithBalances($group->acgroup_id); ?>
- renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?>
-
+
+ getRootCategoriesWithBalances($group->acgroup_id); ?>
+ renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?>
+
|
|