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; ?> @@ -659,7 +659,7 @@ class bibaccounts } function renderAccountCategoriesTableForBS($accountCategories, $ReportOptions, $displayHeadings = true, $parentCategories = []) { - if(!isset($ReportOptions['AmountColWidth']))$ReportOptions['AmountColWidth']=180; + if (!isset($ReportOptions['AmountColWidth'])) $ReportOptions['AmountColWidth'] = 180; ?>
@@ -667,7 +667,7 @@ class bibaccounts - isZero == true) continue; ?> + isZero == true) continue; ?> @@ -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; ?>
accategory_name; ?>
@@ -773,7 +773,7 @@ class bibaccounts } function renderAccountsTableForBS($Accounts, $ReportOptions, $displayHeadings = false) { - if(!isset($ReportOptions['AmountColWidth']))$ReportOptions['AmountColWidth']=180; + if (!isset($ReportOptions['AmountColWidth'])) $ReportOptions['AmountColWidth'] = 180; ?>
@@ -801,8 +801,4 @@ class bibaccounts db->where("status", 1); if ($stocklocation_id != 0) { diff --git a/account/application/views/accounts/pl_new.php b/account/application/views/accounts/pl_new.php index 6ae34ac..109cbbd 100644 --- a/account/application/views/accounts/pl_new.php +++ b/account/application/views/accounts/pl_new.php @@ -250,10 +250,10 @@ $BIBAccounts = new BIBAccounts(); @@ -272,6 +272,7 @@ $BIBAccounts = new BIBAccounts(); + @@ -283,7 +284,7 @@ $BIBAccounts = new BIBAccounts(); - +
- - getRootCategoriesWithBalances($group->acgroup_id); ?> - renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> - +
+ getRootCategoriesWithBalances($group->acgroup_id); ?> + renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> +
@@ -312,11 +313,11 @@ $BIBAccounts = new BIBAccounts(); - - getRootCategoriesWithBalances($group->acgroup_id); ?> - renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> - - +
+ getRootCategoriesWithBalances($group->acgroup_id); ?> + renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?> + +
+ Item->title);die(); ?> + Item->title; ?> total_qty; ?> @@ -185,7 +187,8 @@ foreach ($StockItems as $Stock) : $a++; ?> - Item->title; ?> + ";print_r($Stock->Summary->Item->title); die() ;?> + Summary->Item->title; ?> Summary->Unit->title; ?> Summary->Opening->qty; ?> Summary->Opening->rate); ?>