This commit is contained in:
VE10-Sanjeev 2025-04-23 13:54:14 +00:00
parent 3f83e170bb
commit 41e2acfc49
2 changed files with 56 additions and 50 deletions

View File

@ -316,6 +316,7 @@ class Report extends BaseController
if ($this->request->getPost('financialyear')) {
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$a = substr((string)$ab, 0, -5);
$b = substr((string)$ab, 5, 5);
$data['year'] = $this->dahsboard_Model->report_year_wise($a, $b);
@ -559,6 +560,7 @@ class Report extends BaseController
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$cat = $this->request->getVar('cat');
$data['cat'] = $cat;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
$m = $this->request->getPost('month');
@ -589,13 +591,19 @@ class Report extends BaseController
$this->global['pageTitle'] = 'Inward PO Reports';
//$this->request->getPost('btn_submit');
$cname = $this->request->getPost('client_name');
$data['client_name'] = $cname;
$prod = $this->request->getPost('item_name');
$data['item_name'] = $prod;
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
$m = $this->request->getPost('month');
$data['month'] = $m;
$frm = $this->request->getPost('from_date');
$data['frm'] = $frm;
$t = $this->request->getPost('to_date');
$data['t'] = $t;
$sid = $this->request->getVar('sid');
$mid = $this->request->getVar('mid');
@ -611,13 +619,19 @@ class Report extends BaseController
//$this->request->getPost('btn_submit');
$cat = $this->request->getVar('cat');
$cname = $this->request->getVar('cname');
$data['client_name'] = $cname;
$prod = $this->request->getVar('prod');
$data['item_name'] = $prod;
$ab = $this->request->getVar('ab');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
$m = $this->request->getVar('m');
$data['month'] = $m;
$frm = $this->request->getVar('frm');
$data['frm'] = $frm;
$t = $this->request->getVar('t');
$data['t'] = $t;
$sid = $this->request->getVar('sid');
$mid = $this->request->getVar('mid');
$d = $this->request->getVar('d');
@ -640,12 +654,17 @@ class Report extends BaseController
$this->global['pageTitle'] = 'Inward Reports - Summary';
if ($this->request->getPost('btn_submit')) {
$cname = $this->request->getPost('client_name');
$data['client_name'] = $cname;
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
$m = $this->request->getPost('month');
$data['month'] = $m;
$frm = $this->request->getPost('from_date');
$data['from_date'] = $frm;
$t = $this->request->getPost('to_date');
$data['to_date'] = $t;
//print_r($prod);
$data['material'] = $this->dahsboard_Model->material_name();
$data['cust'] = $this->dahsboard_Model->customer_name();
@ -676,6 +695,7 @@ class Report extends BaseController
if ($this->request->getPost('financialyear')) {
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$a = substr((string)$ab, 0, -5);
$b = substr((string)$ab, 5, 5);
$data['year'] = $this->dahsboard_Model->ireport_year_wise($a, $b);
@ -704,17 +724,13 @@ class Report extends BaseController
$data['month'] = $this->dahsboard_Model->ireport_month_wise($month);
$this->loadviews("Report_month_wise_inward", $this->global, $data, NULL);
}
public function iyear_wise_total()
public function iyear_wise_total($year)
{
$this->global['pageTitle'] = 'Inward Reports - Yearwise';
$uri = service('uri');
$last = $uri->getTotalSegments();
$month = $uri->getSegment($last);
$a = substr($month, 0, -5);
$b = substr($month, 5, 5);
//print_r($month);
$data['year'] = $month;
$a = substr($year, 0, -5);
$b = substr($year, 5, 5);
$data['year'] = $year;
$data['ytotal'] = $this->dahsboard_Model->ireport_year_wise_total($a, $b);
$this->loadviews("Report_year_wise_total_inward", $this->global, $data, NULL);
}
@ -725,12 +741,17 @@ class Report extends BaseController
$this->global['pageTitle'] = 'Inward Reports - Supplierwise';
if ($this->request->getPost('btn_submit')) {
$cname = $this->request->getPost('client_name');
$data['client_name'] = $cname;
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
$m = $this->request->getPost('month');
$data['month'] = $m;
$frm = $this->request->getPost('from_date');
$data['frm'] = $frm;
$t = $this->request->getPost('to_date');
$data['t'] = $t;
//print_r($prod);
$data['material'] = $this->dahsboard_Model->material_name();
$data['cust'] = $this->dahsboard_Model->customer_name();
@ -753,7 +774,9 @@ class Report extends BaseController
$this->global['pageTitle'] = 'Inward Reports - Consolidate';
if ($this->request->getPost('btn_submit')) {
$cname = $this->request->getPost('client_name');
$data['client_name'] = $cname;
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
//print_r($prod);
@ -778,10 +801,14 @@ class Report extends BaseController
$sid = $this->request->getVar('sid');
$mid = $this->request->getVar('mid');
$cname = $this->request->getVar('cname');
$data['client_name'] = $cname;
$prod = $this->request->getVar('prod');
$data['item_name'] = $prod;
//$mat = $this->request->getVar('mid');
$m = $this->request->getVar('m');
$data['month'] = $m;
$ab = $this->request->getVar('ab');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
//print_r($prod);
@ -802,9 +829,12 @@ class Report extends BaseController
$sid = $this->request->getVar('sid');
$mid = $this->request->getVar('mid');
$cname = $this->request->getVar('cname');
$data['client_name'] = $cname;
$prod = $this->request->getVar('prod');
$data['item_name'] = $prod;
//$mat = $this->request->getVar('mid');
$ab = $this->request->getVar('ab');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
//print_r($prod);
@ -835,49 +865,23 @@ class Report extends BaseController
$this->loadviews("Report_cumulative_inward", $this->global, $data, NULL);
}
public function icum_month()
public function icum_month($sup,$mat)
{
$this->global['pageTitle'] = 'Inward Reports - Cumulative-Monthwise';
$uri = service('uri');
$last = $uri->getSegments();
$sup = $last[3];
$mat = $last[4];
//print_r($prod);
$data['cum_month'] = $this->dahsboard_Model->ireport_cum_month($sup, $mat);
$this->loadviews("Report_cumulative_month_inward", $this->global, $data, NULL);
}
public function icum_year()
public function icum_year($sup,$mat)
{
$this->global['pageTitle'] = 'Inward Reports - Cumulative-Yearwise ';
$uri = service('uri');
$last = $uri->getSegments();
$sup = $last[3];
$mat = $last[4];
//print_r($sup);
$data['cum_year'] = $this->dahsboard_Model->ireport_cum_year($sup, $mat);
$this->loadviews("Report_cumulative_year_inward", $this->global, $data, NULL);
}
public function icum_day()
public function icum_day($sup,$mat)
{
$this->global['pageTitle'] = 'Inward Reports - Cumulative-Daywise ';
$uri = service('uri');
$last = $uri->getSegments();
$sup = $last[3];
$mat = $last[4];
//print_r($prod);
$data['cum_day'] = $this->dahsboard_Model->ireport_cum_day($sup, $mat);
$this->loadviews("Report_cumulative_day_inward", $this->global, $data, NULL);
}
@ -933,7 +937,9 @@ class Report extends BaseController
$this->global['pageTitle'] = ' Inward Report - Consolidate ';
if ($this->request->getPost('btn_submit')) {
$cname = $this->request->getPost('client_name');
$data['client_name'] = $cname;
$ab = $this->request->getPost('financialyear');
$data['financialyear'] = $ab;
$fa = substr((string)$ab, 0, -5);
$aa = substr((string)$ab, 5, 5);
//print_r($prod);

View File

@ -34,21 +34,21 @@
</div>
<div class="col-md-3">
<h4><span class="fa fa-layer-group">&nbsp; Material Master </span></h4>
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
<a href="<?php echo base_url(); ?>Report_Material_Supplier" target="_blank"><p class="uk-text uk-margin-remove">Material Master - supplier wise</p></a>
<a href="<?php echo base_url(); ?>Report_Material_Item" target="_blank"><p class="uk-text uk-margin-remove">Material Master - Item wise</p></a>
<a href="<?php echo base_url(); ?>Report_Material_ReceiptValue" target="_blank"><p class="uk-text uk-margin-remove">Material Master - Receipt Value</p></a>
</div>
<div class="col-md-3">
<h4><span class="fa fa-truck">&nbsp; Inward</span></h4>
<p class="uk-text-meta uk-margin-remove">Inward Details</p>
<p class="uk-text-meta uk-margin-remove">Inward Summary</p>
<p class="uk-text-meta uk-margin-remove">Year Wise-Inward</p>
<p class="uk-text-meta uk-margin-remove">Inward-Supplier Wise</p>
<p class="uk-text-meta uk-margin-remove">Consolidate Report-Inward</p>
<p class="uk-text-meta uk-margin-remove">Cumulative Report-Inward</p>
<p class="uk-text-meta uk-margin-remove">Cumulative Report - Category Wise-Inward</p>
<p class="uk-text-meta uk-margin-remove">Consolidate Report - Category Wise-Inward</p>
<p class="uk-text-meta uk-margin-remove">Report - DeliveryPerformance</p>
<a href="<?php echo base_url(); ?>Report_purchase_inward" target="_blank" >Inward Details<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_purchase_attach" target="_blank" >Inward Summary<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_year_wise_inward" target="_blank" >Year Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_supplier_inward" target="_blank" >Inward-Supplier Wise<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_consolidate_inward" target="_blank" >Consolidate Report-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_cumulative_inward" target="_blank" >Cumulative Report-Inward<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_cumulative_raw" target="_blank" >Cumulative Report - Category Wise-Inward<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_consolidate_category" target="_blank" >Consolidate Report - Category Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>DeliveryPerformance" target="_blank" > Report - DeliveryPerformance<p class="uk-text-meta uk-margin-remove"></p></a>
</div>
</div>
<hr>
@ -88,7 +88,7 @@
<div class="col-md-3">
<h4><span class="fa fa-calendar">&nbsp; Attendance </span></h4>
<p class="uk-text uk-margin-remove" target="_blank">Employee Attendance</p>
<p class="uk-text uk-margin-remove" target="_blank">Employee Performance</p>
<p class="uk-text uk-margin-remove">Employee Performance</p>
<a href="<?php echo base_url(); ?>leavereports" target="_blank"><p class="uk-text uk-margin-remove">Leave Report</p></a>
</div>
</div>