reports 1
This commit is contained in:
parent
7e3c2ff636
commit
e2feca4520
@ -547,4 +547,18 @@ $routes->post('updateAbstractDetails','StockController::updateAbstractDetails');
|
||||
|
||||
//Reports Module
|
||||
|
||||
$routes->get('allReports','Report::allReports');
|
||||
$routes->get('allReports','Report::allReports');
|
||||
|
||||
// Material Report Links
|
||||
$routes->get('MM_Supplier', 'Report::MM_Supplier');
|
||||
$routes->get('MM_Item','Report::MM_Item');
|
||||
$routes->match(['GET', 'POST'],'MM_ReceiptValue','Report::MM_ReceiptValue');
|
||||
|
||||
//Inward Report Links
|
||||
$routes->match(['GET', 'POST'],'ipurchase','Report::ipurchase');
|
||||
$routes->match(['GET', 'POST'],'iyear_wise', 'Report::iyear_wise');
|
||||
$routes->match(['GET', 'POST'],'ipurchase_supplier' , 'Report::ipurchase_supplier');
|
||||
$routes->match(['GET', 'POST'],'iconsolidate' , 'Report::iconsolidate');
|
||||
$routes->match(['GET', 'POST'],'icumulative' , 'Report::icumulative');
|
||||
$routes->match(['GET', 'POST'],'rawi_cumulative' , 'Report::rawi_cumulative');
|
||||
$routes->match(['GET', 'POST'],'rawi_consolidate' , 'Report::rawi_consolidate');
|
||||
@ -219,6 +219,8 @@ class Report extends BaseController
|
||||
$fa = substr((string)$ab, 0, -5);
|
||||
$aa = substr((string)$ab, 5, 5);
|
||||
$m = $this->request->getPost('month');
|
||||
$data['month'] = $m;
|
||||
$data['financialyear'] = $ab;
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['mmr'] = $this->dahsboard_Model->report_MMReceiptValue($fa, $aa, $m);
|
||||
}
|
||||
@ -541,14 +543,20 @@ class Report extends BaseController
|
||||
$this->global['pageTitle'] = 'Inward PO Reports';
|
||||
if ($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;
|
||||
$cat = $this->request->getVar('cat');
|
||||
$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();
|
||||
|
||||
@ -875,7 +875,9 @@ group by po.SupplierID,pl.MaterialCode";
|
||||
{
|
||||
|
||||
|
||||
$sql = "SELECT MaterialCode,MaterialName,UOM,Category,HSNCODE FROM t_materialmaster group by MaterialCode";
|
||||
$sql = "SELECT MaterialCode,MaterialName,UOM, t_configdetails.ConfigValue as Category,HSNCODE FROM t_materialmaster
|
||||
join t_configdetails on t_configdetails.key = t_materialmaster.Category
|
||||
group by MaterialCode";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
@ -36,9 +36,9 @@
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-layer-group"> 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(); ?>MM_Supplier" target="_blank"><p class="uk-text uk-margin-remove">Material Master - supplier wise</p></a>
|
||||
<a href="<?php echo base_url(); ?>MM_Item" target="_blank"><p class="uk-text uk-margin-remove">Material Master - Item wise</p></a>
|
||||
<a href="<?php echo base_url(); ?>MM_ReceiptValue" target="_blank"><p class="uk-text uk-margin-remove">Material Master - Receipt Value</p></a>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user