reportlink 2
This commit is contained in:
parent
c4e676594d
commit
1c92fcf07a
@ -418,6 +418,9 @@ $routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_Material_Supplier', 'Re
|
|||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_Material_Item', 'Report::MM_Item');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_Material_Item', 'Report::MM_Item');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_Material_ReceiptValue', 'Report::MM_ReceiptValue');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_Material_ReceiptValue', 'Report::MM_ReceiptValue');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_purchase', 'Report::purchase');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_purchase', 'Report::purchase');
|
||||||
|
$routes->get('report/consolidate_month', 'Report::consolidate_month');
|
||||||
|
$routes->get('report/link_purchase', 'Report::link_purchase');
|
||||||
|
$routes->get('report/consolidate_year', 'Report::consolidate_year');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_year_wise', 'Report::year_wise');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_year_wise', 'Report::year_wise');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_supplier', 'Report::purchase_supplier');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_supplier', 'Report::purchase_supplier');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_consolidate', 'Report::consolidate');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_consolidate', 'Report::consolidate');
|
||||||
@ -429,12 +432,25 @@ $routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'cashbookmonthlyexpenses', 'Rep
|
|||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'cashbookyearlyexpenses', 'Report::yearexpenses');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'cashbookyearlyexpenses', 'Report::yearexpenses');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_purchase_inward', 'Report::ipurchase');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_purchase_inward', 'Report::ipurchase');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_year_wise_inward', 'Report::iyear_wise');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_year_wise_inward', 'Report::iyear_wise');
|
||||||
|
$routes->get('report/imonth_wise', 'Report::imonth_wise');
|
||||||
|
$routes->get('report/iyear_wise_total/(:any)', 'Report::iyear_wise_total/$1');
|
||||||
|
$routes->get('report/ilink_purchase', 'Report::ilink_purchase');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_supplier_inward', 'Report::ipurchase_supplier');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_supplier_inward', 'Report::ipurchase_supplier');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_supplier_summary', 'Report::suppliersummary');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_supplier_summary', 'Report::suppliersummary');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_consolidate_inward', 'Report::iconsolidate');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_consolidate_inward', 'Report::iconsolidate');
|
||||||
|
$routes->get('report/i_consolidate_month', 'Report::i_consolidate_month');
|
||||||
|
$routes->get('report/i_consolidate_year', 'Report::i_consolidate_year');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_cumulative_inward', 'Report::icumulative');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_cumulative_inward', 'Report::icumulative');
|
||||||
|
$routes->get('report/icum_day/(:any)/(:any)', 'Report::icum_day/$1/$2');
|
||||||
|
$routes->get('report/icum_month/(:any)/(:any)', 'Report::icum_month/$1/$2');
|
||||||
|
$routes->get('report/icum_year/(:any)/(:any)', 'Report::icum_year/$1/$2');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_cumulative_raw', 'Report::rawi_cumulative');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_cumulative_raw', 'Report::rawi_cumulative');
|
||||||
|
$routes->get('report/rawi_cum_day', 'Report::rawi_cum_day');
|
||||||
|
$routes->get('report/rawi_cum_month', 'Report::rawi_cum_month');
|
||||||
|
$routes->get('report/rawi_cum_year', 'Report::rawi_cum_year');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_consolidate_category', 'Report::rawi_consolidate');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_consolidate_category', 'Report::rawi_consolidate');
|
||||||
|
$routes->get('report/rawi_consolidate_month', 'Report::rawi_consolidate_month');
|
||||||
|
$routes->get('report/rawi_consolidate_year', 'Report::rawi_consolidate_year');
|
||||||
$routes->match(['GET', 'POST'], 'Report_pending_purchase', 'Report::pending_purchase');
|
$routes->match(['GET', 'POST'], 'Report_pending_purchase', 'Report::pending_purchase');
|
||||||
$routes->match(['GET', 'POST'], '/Report_pending_purchase', 'Report::pending_purchase');
|
$routes->match(['GET', 'POST'], '/Report_pending_purchase', 'Report::pending_purchase');
|
||||||
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_purchase_attach', 'Report::iattach');
|
$routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'Report_purchase_attach', 'Report::iattach');
|
||||||
@ -548,17 +564,3 @@ $routes->post('updateAbstractDetails','StockController::updateAbstractDetails');
|
|||||||
//Reports Module
|
//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');
|
|
||||||
@ -284,13 +284,19 @@ class Report extends BaseController
|
|||||||
$this->global['pageTitle'] = 'Reports';
|
$this->global['pageTitle'] = 'Reports';
|
||||||
//$this->request->getPost('btn_submit');
|
//$this->request->getPost('btn_submit');
|
||||||
$cname = $this->request->getPost('client_name');
|
$cname = $this->request->getPost('client_name');
|
||||||
|
$data['cname'] = $cname;
|
||||||
$prod = $this->request->getPost('item_name');
|
$prod = $this->request->getPost('item_name');
|
||||||
|
$data['prod'] = $prod;
|
||||||
$ab = $this->request->getPost('financialyear');
|
$ab = $this->request->getPost('financialyear');
|
||||||
|
$data['ab'] = $ab;
|
||||||
$fa = substr((string)$ab, 0, -5);
|
$fa = substr((string)$ab, 0, -5);
|
||||||
$aa = substr((string)$ab, 5, 5);
|
$aa = substr((string)$ab, 5, 5);
|
||||||
$m = $this->request->getPost('month');
|
$m = $this->request->getPost('month');
|
||||||
|
$data['m'] = $m;
|
||||||
$frm = $this->request->getPost('from_date');
|
$frm = $this->request->getPost('from_date');
|
||||||
|
$data['frm'] = $frm;
|
||||||
$t = $this->request->getPost('to_date');
|
$t = $this->request->getPost('to_date');
|
||||||
|
$data['t'] = $t;
|
||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material'] = $this->dahsboard_Model->material_name();
|
$data['material'] = $this->dahsboard_Model->material_name();
|
||||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||||
@ -300,13 +306,19 @@ class Report extends BaseController
|
|||||||
$this->global['pageTitle'] = 'Reports';
|
$this->global['pageTitle'] = 'Reports';
|
||||||
//$this->request->getPost('btn_submit');
|
//$this->request->getPost('btn_submit');
|
||||||
$cname = $this->request->getVar('cname');
|
$cname = $this->request->getVar('cname');
|
||||||
|
$data['cname'] = $cname;
|
||||||
$prod = $this->request->getVar('prod');
|
$prod = $this->request->getVar('prod');
|
||||||
|
$data['prod'] = $prod;
|
||||||
$ab = $this->request->getVar('ab');
|
$ab = $this->request->getVar('ab');
|
||||||
|
$data['ab'] = $ab;
|
||||||
$fa = substr((string)$ab, 0, -5);
|
$fa = substr((string)$ab, 0, -5);
|
||||||
$aa = substr((string)$ab, 5, 5);
|
$aa = substr((string)$ab, 5, 5);
|
||||||
$m = $this->request->getVar('month');
|
$m = $this->request->getVar('month');
|
||||||
|
$data['m'] = $m;
|
||||||
$frm = $this->request->getVar('frm');
|
$frm = $this->request->getVar('frm');
|
||||||
|
$data['frm'] = $frm;
|
||||||
$t = $this->request->getVar('t');
|
$t = $this->request->getVar('t');
|
||||||
|
$data['t'] = $t;
|
||||||
$sid = $this->request->getVar('sid');
|
$sid = $this->request->getVar('sid');
|
||||||
$mid = $this->request->getVar('mid');
|
$mid = $this->request->getVar('mid');
|
||||||
$d = $this->request->getVar('d');
|
$d = $this->request->getVar('d');
|
||||||
@ -448,7 +460,9 @@ class Report extends BaseController
|
|||||||
$prod = $this->request->getVar('prod');
|
$prod = $this->request->getVar('prod');
|
||||||
//$mat = $this->request->getVar('mid');
|
//$mat = $this->request->getVar('mid');
|
||||||
$m = $this->request->getVar('m');
|
$m = $this->request->getVar('m');
|
||||||
|
$data['month'] = $m;
|
||||||
$ab = $this->request->getVar('ab');
|
$ab = $this->request->getVar('ab');
|
||||||
|
$data['financialyear'] = $ab;
|
||||||
$fa = substr((string)$ab, 0, -5);
|
$fa = substr((string)$ab, 0, -5);
|
||||||
$aa = substr((string)$ab, 5, 5);
|
$aa = substr((string)$ab, 5, 5);
|
||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
@ -471,6 +485,7 @@ class Report extends BaseController
|
|||||||
$prod = $this->request->getVar('prod');
|
$prod = $this->request->getVar('prod');
|
||||||
//$mat = $this->request->getVar('mid');
|
//$mat = $this->request->getVar('mid');
|
||||||
$ab = $this->request->getVar('ab');
|
$ab = $this->request->getVar('ab');
|
||||||
|
$data['financialyear'] = $ab;
|
||||||
$fa = substr((string)$ab, 0, -5);
|
$fa = substr((string)$ab, 0, -5);
|
||||||
$aa = substr((string)$ab, 5, 5);
|
$aa = substr((string)$ab, 5, 5);
|
||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
|
|||||||
@ -1059,7 +1059,8 @@ class User extends BaseController
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function isEmailExists(){
|
function isEmailExists()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
$MailID = $this->request->getPost('MailID');
|
$MailID = $this->request->getPost('MailID');
|
||||||
@ -1077,7 +1078,6 @@ class User extends BaseController
|
|||||||
} else {
|
} else {
|
||||||
return $this->response->setJSON(['success' => false, 'message' => '']);
|
return $this->response->setJSON(['success' => false, 'message' => '']);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1300,10 +1300,12 @@ class User extends BaseController
|
|||||||
if ($this->request->getPost('btn_submit')) {
|
if ($this->request->getPost('btn_submit')) {
|
||||||
|
|
||||||
$ab = (string)$this->request->getPost('financialyear');
|
$ab = (string)$this->request->getPost('financialyear');
|
||||||
|
$data['financialyear'] = $ab;
|
||||||
|
|
||||||
$fa = substr($ab, 0, -5);
|
$fa = substr($ab, 0, -5);
|
||||||
$aa = substr($ab, 5, 5);
|
$aa = substr($ab, 5, 5);
|
||||||
$m = $this->request->getPost('month');
|
$m = $this->request->getPost('month');
|
||||||
|
$data['month'] = $m;
|
||||||
|
|
||||||
$data['fy'] = $this->user_model->fincalYear();
|
$data['fy'] = $this->user_model->fincalYear();
|
||||||
$data['per'] = $this->user_model->deliver_perform($fa, $aa, $m);
|
$data['per'] = $this->user_model->deliver_perform($fa, $aa, $m);
|
||||||
@ -1396,8 +1398,7 @@ class User extends BaseController
|
|||||||
|
|
||||||
$cteditNotesData = json_decode($cteditNotesRes['data'], true);
|
$cteditNotesData = json_decode($cteditNotesRes['data'], true);
|
||||||
|
|
||||||
if(count($cteditNotesData['creditnotes']))
|
if (count($cteditNotesData['creditnotes'])) {
|
||||||
{
|
|
||||||
$this->saveOrUpdateCreditNote($cteditNotesData['creditnotes'], $tokenWithCreditNoteScope);
|
$this->saveOrUpdateCreditNote($cteditNotesData['creditnotes'], $tokenWithCreditNoteScope);
|
||||||
}
|
}
|
||||||
// dd($cteditNotesData);
|
// dd($cteditNotesData);
|
||||||
@ -1440,15 +1441,13 @@ class User extends BaseController
|
|||||||
if ($sql_invoice_chk <= 0) {
|
if ($sql_invoice_chk <= 0) {
|
||||||
|
|
||||||
//this check only for ASHOK LEYLAND LIMITED
|
//this check only for ASHOK LEYLAND LIMITED
|
||||||
if($customer_id == '3215000000000082604' || $customer_id == '3215000000000082724')
|
if ($customer_id == '3215000000000082604' || $customer_id == '3215000000000082724') {
|
||||||
{
|
|
||||||
//this combination of customer_id & gst_no search only for client ASHOK LEYLAND
|
//this combination of customer_id & gst_no search only for client ASHOK LEYLAND
|
||||||
$gst_sql = $Zohobook_model->ip_client_ashok_leyland($gst_no, $customer_id);
|
$gst_sql = $Zohobook_model->ip_client_ashok_leyland($gst_no, $customer_id);
|
||||||
if ($gst_sql) {
|
if ($gst_sql) {
|
||||||
$client_id = $gst_sql[0]['client_id'];
|
$client_id = $gst_sql[0]['client_id'];
|
||||||
log_message('error', 'Data fetch success DB : ip_clients , client_id : ' . $client_id);
|
log_message('error', 'Data fetch success DB : ip_clients , client_id : ' . $client_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$gst_sql = $Zohobook_model->ip_clients($gst_no);
|
$gst_sql = $Zohobook_model->ip_clients($gst_no);
|
||||||
@ -1464,7 +1463,6 @@ class User extends BaseController
|
|||||||
$client_id = $gst_inserted_id;
|
$client_id = $gst_inserted_id;
|
||||||
log_message('error', 'New Data Created : DB : ip_clients , client_id : ' . $client_id);
|
log_message('error', 'New Data Created : DB : ip_clients , client_id : ' . $client_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1736,11 +1734,9 @@ class User extends BaseController
|
|||||||
if ($existingCreditNote) {
|
if ($existingCreditNote) {
|
||||||
// Update existing record
|
// Update existing record
|
||||||
$this->CreditNoteModel->update($value['creditnote_id'], $value);
|
$this->CreditNoteModel->update($value['creditnote_id'], $value);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Insert new record
|
// Insert new record
|
||||||
$this->CreditNoteModel->insert($value);
|
$this->CreditNoteModel->insert($value);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//credit note line item api call
|
//credit note line item api call
|
||||||
@ -1748,10 +1744,8 @@ class User extends BaseController
|
|||||||
|
|
||||||
$lineItemData = json_decode($cteditNotesLineItemsRes['data'], true);
|
$lineItemData = json_decode($cteditNotesLineItemsRes['data'], true);
|
||||||
|
|
||||||
if(count($lineItemData['creditnote']['line_items']))
|
if (count($lineItemData['creditnote']['line_items'])) {
|
||||||
{
|
foreach ($lineItemData['creditnote']['line_items'] as $itemkey => $itemvalue) {
|
||||||
foreach ($lineItemData['creditnote']['line_items'] as $itemkey => $itemvalue)
|
|
||||||
{
|
|
||||||
$itemvalue['creditnote_id'] = $value['creditnote_id'];
|
$itemvalue['creditnote_id'] = $value['creditnote_id'];
|
||||||
|
|
||||||
|
|
||||||
@ -1761,19 +1755,13 @@ class User extends BaseController
|
|||||||
if ($existingCreditNoteItems) {
|
if ($existingCreditNoteItems) {
|
||||||
// Update existing record
|
// Update existing record
|
||||||
$this->CreditNotesItemsModel->update($itemvalue['line_item_id'], $itemvalue);
|
$this->CreditNotesItemsModel->update($itemvalue['line_item_id'], $itemvalue);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Insert new record
|
// Insert new record
|
||||||
$this->CreditNotesItemsModel->insert($itemvalue);
|
$this->CreditNotesItemsModel->insert($itemvalue);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2032,7 +2032,8 @@ group by supplier_name,material_name";
|
|||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
$fa = substr($ab, 0, -5);
|
$fa = substr($ab, 0, -5);
|
||||||
$aa = substr($ab, 5, 5);
|
$aa = substr($ab, 5, 5);
|
||||||
$sql = "SELECT year.category as category,year.quantity as quantity,year.total as total,month.mquantity as mquantity,month.mtotal as mtotal,today.tquantity as tquantity,today.ttotal as ttotal
|
$sql = "SELECT cd.ConfigValue as category_id,
|
||||||
|
cd.key, year.category,year.quantity as quantity,year.total as total,month.mquantity as mquantity,month.mtotal as mtotal,today.tquantity as tquantity,today.ttotal as ttotal
|
||||||
FROM (SELECT category,sum(Quantity) as quantity,sum(value) as total
|
FROM (SELECT category,sum(Quantity) as quantity,sum(value) as total
|
||||||
FROM igr
|
FROM igr
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
@ -2052,6 +2053,7 @@ where status != 'ST030' and
|
|||||||
date(materialrcvddate) = current_date()
|
date(materialrcvddate) = current_date()
|
||||||
group by category
|
group by category
|
||||||
) as today on today.category=month.category
|
) as today on today.category=month.category
|
||||||
|
left join t_configdetails cd on cd.key = year.category
|
||||||
group by category ";
|
group by category ";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->getResult();
|
return $query->getResult();
|
||||||
@ -3044,5 +3046,4 @@ function daybeforetotal($yesterday){
|
|||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->getResult();
|
return $query->getResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,68 +1,52 @@
|
|||||||
|
<!-- Report_Material_Master_ItemWise.php -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mmi))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Material Master - Item Wise</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="box-body">
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Material Master</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Item Wise </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<table id="MM_Supplier" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>Material Code</th>
|
<th>Material Code</th>
|
||||||
<th>Material Name</th>
|
<th>Material Name</th>
|
||||||
<th>UOM</th>
|
<th>UOM</th>
|
||||||
<th>Category</th>
|
<th>Category</th>
|
||||||
<th>HSNCODE</th>
|
<th>HSNCODE</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (!empty($mmi)) {
|
<?php if (!empty($mmi)) {
|
||||||
foreach($mmi as $rel)
|
foreach ($mmi as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -77,21 +61,18 @@ if(!empty($mmi))
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -100,48 +81,33 @@ if(!empty($mmi))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
// Initialize the DataTable
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
var table = $('#MM_Supplier').DataTable({
|
||||||
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
],
|
||||||
extend: 'excelHtml5',
|
pageLength: 10, // Default rows per page
|
||||||
footer: 'true',
|
lengthMenu: [
|
||||||
//messageTop: $('h3').text(),
|
[10, 20, 30, 50, -1],
|
||||||
title: 'Report - Material Master - Item Wise',
|
[10, 20, 30, 50, "All"]
|
||||||
exportOptions: {
|
], // Rows per page options
|
||||||
columns: ':visible'
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
}
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
},
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
'colvis'
|
|
||||||
]
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,156 +1,157 @@
|
|||||||
|
<!-- Report_Material_Master_ReceiptValue.php -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Material Master - Receipt Value</b>
|
|
||||||
<br><br>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
?>
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Material Master</a></li>
|
||||||
</p></h3></center>
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Receipt Value </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url("MM_ReceiptValue"); ?>">
|
||||||
|
<div class="form-group">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3">
|
||||||
<div class="col-md-2">
|
<label for="financialyear">
|
||||||
<label for="to_date">
|
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
<div class="col-3">
|
||||||
<label for="to_date">
|
<label for="month">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<option value="January" <?php if (isset($month) && ($month == "January")) {
|
||||||
<option value="February">February</option>
|
echo 'selected';
|
||||||
<option value="March">March</option>
|
} ?>>January</option>
|
||||||
<option value="April">April</option>
|
<option value="February" <?php if (isset($month) && ($month == "February")) {
|
||||||
<option value="May">May</option>
|
echo 'selected';
|
||||||
<option value="June">June</option>
|
} ?>>February</option>
|
||||||
<option value="July">July</option>
|
<option value="March" <?php if (isset($month) && ($month == "March")) {
|
||||||
<option value="August">August</option>
|
echo 'selected';
|
||||||
<option value="September">September</option>
|
} ?>>March</option>
|
||||||
<option value="October">October</option>
|
<option value="April" <?php if (isset($month) && ($month == "April")) {
|
||||||
<option value="November">November</option>
|
echo 'selected';
|
||||||
<option value="December">December</option>
|
} ?>>April</option>
|
||||||
|
<option value="May" <?php if (isset($month) && ($month == "May")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>May</option>
|
||||||
|
<option value="June" <?php if (isset($month) && ($month == "June")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>June</option>
|
||||||
|
<option value="July" <?php if (isset($month) && ($month == "July")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>July</option>
|
||||||
|
<option value="August" <?php if (isset($month) && ($month == "August")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>August</option>
|
||||||
|
<option value="September" <?php if (isset($month) && ($month == "September")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>September</option>
|
||||||
|
<option value="October" <?php if (isset($month) && ($month == "October")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>October</option>
|
||||||
|
<option value="November" <?php if (isset($month) && ($month == "November")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>November</option>
|
||||||
|
<option value="December" <?php if (isset($month) && ($month == "December")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>December</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-3"></div>
|
||||||
|
|
||||||
|
<div class="col-3 text-right">
|
||||||
|
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('MM_ReceiptValue') ?>';">
|
||||||
|
<input type="submit" class="btn btn-success m-2" name="btn_submit" value="View Report">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2 col-md-offset-0"><br>
|
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit" style="padding:10px;"
|
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Month</th>
|
<th style="white-space: nowrap !important;">Month</th>
|
||||||
<th>Material Code</th>
|
<th style="white-space: nowrap !important;">Material Code</th>
|
||||||
<th>Material Name</th>
|
<th style="white-space: nowrap !important;">Material Name</th>
|
||||||
<th>UOM</th>
|
<th style="white-space: nowrap !important;">UOM</th>
|
||||||
<th>Average Rate (₹)</th>
|
<th style="white-space: nowrap !important;">Average Rate (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php $tot = 0.00;
|
||||||
$tot=0.00;
|
|
||||||
if (!empty($mmr)) {
|
if (!empty($mmr)) {
|
||||||
foreach($mmr as $rel)
|
foreach ($mmr as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
<!-- Main invoice row -->
|
||||||
<td><span><?php echo $rel->Month ?></span></td>
|
<td><span><?php echo $rel->Month ?></span></td>
|
||||||
<td><span><?php echo $rel->MaterialCode ?></span></td>
|
<td><span><?php echo $rel->MaterialCode ?></span></td>
|
||||||
<td><span><?php echo $rel->MaterialName ?></span></td>
|
<td><span><?php echo $rel->MaterialName ?></span></td>
|
||||||
@ -158,36 +159,43 @@
|
|||||||
<td align="right"><span><?php
|
<td align="right"><span><?php
|
||||||
$tot = $tot + number_format($rel->Average_Rate, 2, '.', '');
|
$tot = $tot + number_format($rel->Average_Rate, 2, '.', '');
|
||||||
echo number_format($rel->Average_Rate, 2, '.', '') ?></span></td>
|
echo number_format($rel->Average_Rate, 2, '.', '') ?></span></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
} ?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
<td style="text-align:right"><strong><?php {
|
||||||
|
echo '';
|
||||||
|
} ?></strong></td>
|
||||||
|
<td style="text-align:right"><strong><?php {
|
||||||
|
echo '';
|
||||||
|
} ?></strong></td>
|
||||||
|
<td style="text-align:right"><strong><?php {
|
||||||
|
echo '';
|
||||||
|
} ?></strong></td>
|
||||||
|
<td style="text-align:right"><?php echo number_format($tot, 2, '.', ''); ?></td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
<tfoot>
|
|
||||||
<td style="text-align:center"><?php
|
|
||||||
$t='Total';
|
|
||||||
echo $t;?></td>
|
|
||||||
<td><?php echo '';?></td>
|
|
||||||
<td><?php echo '';?></td>
|
|
||||||
<td><?php echo '';?></td>
|
|
||||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -196,72 +204,33 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
lengthMenu: [
|
||||||
var api = this.api(), data;
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
// Remove the formatting to get integer data for summation
|
], // Rows per page options
|
||||||
var intVal = function ( i ) {
|
responsive: true, // Responsive table
|
||||||
return typeof i === 'string' ?
|
ordering: false,
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
language: {
|
||||||
typeof i === 'number' ?
|
paginate: {
|
||||||
parseFloat(i) : 0;
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
};
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
TotalVALUE = api
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2) );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,52 +1,39 @@
|
|||||||
|
<!-- Report_Material_Master_SupplierWise.php -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Material Master - Supplier Wise</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="box-body">
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12.5px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Material Master</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Supplier Wise </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<table id="MM_Supplier" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Material Date</th>
|
<th>Material Date</th>
|
||||||
@ -62,11 +49,11 @@ if(!empty($mms))
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (!empty($mms)) {
|
<?php if (!empty($mms)) {
|
||||||
foreach($mms as $rel)
|
foreach ($mms as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span><?php $date = new DateTime($rel->Material_Date);echo $date->format('d-m-Y');?></span></td>
|
<td><span><?php $date = new DateTime($rel->Material_Date);
|
||||||
|
echo $date->format('d-m-Y'); ?></span></td>
|
||||||
<td><span><?php echo $rel->SupplierID ?></span></td>
|
<td><span><?php echo $rel->SupplierID ?></span></td>
|
||||||
<td><span><?php echo $rel->SupplierName ?></span></td>
|
<td><span><?php echo $rel->SupplierName ?></span></td>
|
||||||
<td><span><?php echo $rel->MaterialCode ?></span></td>
|
<td><span><?php echo $rel->MaterialCode ?></span></td>
|
||||||
@ -80,22 +67,18 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -106,49 +89,31 @@ if(!empty($mms))
|
|||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"aaSorting": [[ 0, "desc" ]],
|
// Initialize the DataTable
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
var table = $('#MM_Supplier').DataTable({
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
],
|
||||||
extend: 'excelHtml5',
|
pageLength: 10, // Default rows per page
|
||||||
footer: 'true',
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
//messageTop: $('h3').text(),
|
[10, 20, 30, 50, "All"]
|
||||||
title: 'Report - Material Master - SupplierWise',
|
], // Rows per page options
|
||||||
exportOptions: {
|
responsive: true, // Responsive table
|
||||||
columns: ':visible'
|
ordering: false,
|
||||||
|
language: {
|
||||||
}
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
},
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
'colvis'
|
|
||||||
]
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,177 +1,179 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
$("#item_name").select2();
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Inward Summary</b><br><br>
|
|
||||||
<?php
|
|
||||||
if($this->input->post('client_name')){
|
|
||||||
$cl=$this->input->post('client_name');
|
|
||||||
echo $cl;
|
|
||||||
echo ' '.' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
<div class="content-page">
|
||||||
if($this->input->post('financialyear')){
|
<div class="content">
|
||||||
$ab=$this->input->post('financialyear');
|
<!-- Start Content-->
|
||||||
echo '('.$ab.')';
|
<div class="container-fluid">
|
||||||
echo ' ';
|
<!-- start page title -->
|
||||||
|
<div>
|
||||||
}
|
<div class="row">
|
||||||
if($this->input->post('month')){
|
<div class="col-12">
|
||||||
$m=$this->input->post('month');
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo '('.$m.')';
|
<div class="page-title-right">
|
||||||
echo ' ';
|
<ol class="breadcrumb m-0">
|
||||||
}
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);"> Inward</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item active">
|
||||||
$t = $this->input->post('to_date');
|
<h4 class="page-title"><b> Inward Summary
|
||||||
echo $frm.'-to-'.$t;
|
</b></h4>
|
||||||
}
|
</li>
|
||||||
|
</ol>
|
||||||
?></p></h3></center>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url('Report_purchase_attach'); ?>">
|
||||||
<div class="col-md-2">
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Supplier'; ?>
|
<?php echo 'Supplier'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($cust as $item):
|
foreach ($cust as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option
|
||||||
|
<?php if (isset($client_name) && ($client_name == $item->SupplierName)) {
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
echo 'selected';
|
||||||
|
} ?>
|
||||||
|
value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-4">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-4">
|
||||||
<div class="col-md-2">
|
<label for="month">
|
||||||
<label for="to_date">
|
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<option value="January" <?php if (isset($month) && ($month == "January")) {
|
||||||
<option value="February">February</option>
|
echo 'selected';
|
||||||
<option value="March">March</option>
|
} ?>>January</option>
|
||||||
<option value="April">April</option>
|
<option value="February" <?php if (isset($month) && ($month == "February")) {
|
||||||
<option value="May">May</option>
|
echo 'selected';
|
||||||
<option value="June">June</option>
|
} ?>>February</option>
|
||||||
<option value="July">July</option>
|
<option value="March" <?php if (isset($month) && ($month == "March")) {
|
||||||
<option value="August">August</option>
|
echo 'selected';
|
||||||
<option value="September">September</option>
|
} ?>>March</option>
|
||||||
<option value="October">October</option>
|
<option value="April" <?php if (isset($month) && ($month == "April")) {
|
||||||
<option value="November">November</option>
|
echo 'selected';
|
||||||
<option value="December">December</option>
|
} ?>>April</option>
|
||||||
|
<option value="May" <?php if (isset($month) && ($month == "May")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>May</option>
|
||||||
|
<option value="June" <?php if (isset($month) && ($month == "June")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>June</option>
|
||||||
|
<option value="July" <?php if (isset($month) && ($month == "July")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>July</option>
|
||||||
|
<option value="August" <?php if (isset($month) && ($month == "August")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>August</option>
|
||||||
|
<option value="September" <?php if (isset($month) && ($month == "September")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>September</option>
|
||||||
|
<option value="October" <?php if (isset($month) && ($month == "October")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>October</option>
|
||||||
|
<option value="November" <?php if (isset($month) && ($month == "November")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>November</option>
|
||||||
|
<option value="December" <?php if (isset($month) && ($month == "December")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>December</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row mt-2">
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input name="from_date" id="max-date" class="form-control datepicker" autocomplete="off" value="<?php if (isset($from_date)) {
|
||||||
<span class="input-group-addon">
|
echo $from_date;
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
} ?>">
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker" autocomplete="off" value="<?php if (isset($to_date)) {
|
||||||
<span class="input-group-addon">
|
echo $to_date;
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
} ?>">
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 " ><br>
|
<div class="col-md-8 mt-2 text-right">
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="button" class="btn btn-danger" value="Reset" onclick="window.location.href='<?= base_url('Report_purchase_inward') ?>';">
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success ml-2" name="btn_submit" value="View Report">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
<div class="form-group has-feedback"></div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="modal fade" id="Fileshow" role="dialog">
|
<div class="modal fade" id="Fileshow" role="dialog">
|
||||||
@ -206,14 +208,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
|
||||||
<!-- </div> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc">
|
<table class="table table-bordered table-hover" id="cc">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -230,8 +225,7 @@
|
|||||||
|
|
||||||
$tot_tot = 0;
|
$tot_tot = 0;
|
||||||
//print_r($purchase); return false;
|
//print_r($purchase); return false;
|
||||||
foreach($purchase as $rel)
|
foreach ($purchase as $rel) {
|
||||||
{
|
|
||||||
|
|
||||||
// print_r($rel);
|
// print_r($rel);
|
||||||
|
|
||||||
@ -257,7 +251,8 @@
|
|||||||
<span><?php
|
<span><?php
|
||||||
$tot_tot = $tot_tot + round($rel['total'], 2);
|
$tot_tot = $tot_tot + round($rel['total'], 2);
|
||||||
echo $rel['total'];
|
echo $rel['total'];
|
||||||
?></span></td>
|
?></span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
<!-- $record->IGRNO.'-'.$record->PONO -->
|
<!-- $record->IGRNO.'-'.$record->PONO -->
|
||||||
@ -296,7 +291,8 @@
|
|||||||
<strong><?php {
|
<strong><?php {
|
||||||
echo number_format($tot_tot, 2, '.', '');
|
echo number_format($tot_tot, 2, '.', '');
|
||||||
}
|
}
|
||||||
?></strong></td>
|
?></strong>
|
||||||
|
</td>
|
||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
@ -306,32 +302,28 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
|
||||||
$('.IGRfile').click(function() {
|
$('.IGRfile').click(function() {
|
||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
//alert(id);
|
//alert(id);
|
||||||
@ -343,7 +335,10 @@ var id = $(this).attr('id');
|
|||||||
|
|
||||||
$("#Fileshow").modal("show");
|
$("#Fileshow").modal("show");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data:{id:igr,id1:po},
|
data: {
|
||||||
|
id: igr,
|
||||||
|
id1: po
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
//dataType: 'json',
|
//dataType: 'json',
|
||||||
url: "<?php echo base_url() ?>report/Viewnormaligrfiles",
|
url: "<?php echo base_url() ?>report/Viewnormaligrfiles",
|
||||||
@ -361,9 +356,8 @@ $("#Fileshow").modal("show");
|
|||||||
var BillNO = '';
|
var BillNO = '';
|
||||||
$.each($.parseJSON(data), function(i, item) {
|
$.each($.parseJSON(data), function(i, item) {
|
||||||
|
|
||||||
if(item.file == null)
|
if (item.file == null) {
|
||||||
{ if(item.Remarks ==null)
|
if (item.Remarks == null) {
|
||||||
{
|
|
||||||
//alert()
|
//alert()
|
||||||
PONO = item.PONO;
|
PONO = item.PONO;
|
||||||
BillNO = item.BillNo;
|
BillNO = item.BillNo;
|
||||||
@ -401,8 +395,7 @@ $("#Fileshow").modal("show");
|
|||||||
// // '<td>' +item.FilePath+"<?php echo base_url() . 'public/uploads/BillFiles/' ?>"> +'</td>'
|
// // '<td>' +item.FilePath+"<?php echo base_url() . 'public/uploads/BillFiles/' ?>"> +'</td>'
|
||||||
|
|
||||||
// '</tr>';
|
// '</tr>';
|
||||||
if(Filename != null)
|
if (Filename != null) {
|
||||||
{
|
|
||||||
i = i + 1;
|
i = i + 1;
|
||||||
trHTML += '<tr id=' + i + '>' +
|
trHTML += '<tr id=' + i + '>' +
|
||||||
'<td align="right">' + i + '</td>' +
|
'<td align="right">' + i + '</td>' +
|
||||||
@ -435,7 +428,9 @@ $('.splpofile').click(function() {
|
|||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
$("#Fileshow").modal("show");
|
$("#Fileshow").modal("show");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
data:{id:id},
|
data: {
|
||||||
|
id: id
|
||||||
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
//dataType: 'json',
|
//dataType: 'json',
|
||||||
url: "<?php echo base_url() ?>report/Viewfiles",
|
url: "<?php echo base_url() ?>report/Viewfiles",
|
||||||
@ -482,7 +477,9 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|||||||
"language": {
|
"language": {
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
},
|
},
|
||||||
"aaSorting": [[ 2, "desc" ]],
|
"aaSorting": [
|
||||||
|
[2, "desc"]
|
||||||
|
],
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
orderCellsTop: true,
|
orderCellsTop: true,
|
||||||
|
|
||||||
@ -506,7 +503,8 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|||||||
'colvis'
|
'colvis'
|
||||||
],
|
],
|
||||||
"footerCallback": function(row, data, start, end, display) {
|
"footerCallback": function(row, data, start, end, display) {
|
||||||
var api = this.api(), data;
|
var api = this.api(),
|
||||||
|
data;
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
// Remove the formatting to get integer data for summation
|
||||||
var intVal = function(i) {
|
var intVal = function(i) {
|
||||||
@ -517,7 +515,9 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|||||||
};
|
};
|
||||||
|
|
||||||
FinalTotal = api
|
FinalTotal = api
|
||||||
.column( 4, { search:'applied' } )
|
.column(4, {
|
||||||
|
search: 'applied'
|
||||||
|
})
|
||||||
.data()
|
.data()
|
||||||
.reduce(function(a, b) {
|
.reduce(function(a, b) {
|
||||||
return intVal(a) + intVal(b);
|
return intVal(a) + intVal(b);
|
||||||
@ -570,8 +570,7 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function Reset()
|
function Reset() {
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
$('#mySelect').val('');
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -579,4 +578,29 @@ $(document).ready(function(){
|
|||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
// Initialize the DataTable
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
|
],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
|
], // Rows per page options
|
||||||
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -1,148 +1,144 @@
|
|||||||
|
<!-- Report_consolidate_inward -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.dataTables_filter {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
th{ white-space: nowrap; }
|
|
||||||
td{ white-space: wrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
|
||||||
table.dataTable thead > tr > th.sorting,
|
|
||||||
table.dataTable thead > tr > td.sorting_asc,
|
|
||||||
table.dataTable thead > tr > td.sorting_desc,
|
|
||||||
table.dataTable thead > tr > td.sorting {
|
|
||||||
padding-right: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate-Inward</b><br><br>
|
|
||||||
<?php
|
<?php
|
||||||
if($this->input->post('client_name')){
|
$vapr = 0;
|
||||||
$cl=$this->input->post('client_name');
|
$vmay = 0;
|
||||||
echo $cl;
|
$vjun = 0;
|
||||||
}
|
$vjul = 0;
|
||||||
if($this->input->post('financialyear')){
|
$vaug = 0;
|
||||||
$ab=$this->input->post('financialyear');
|
$vsep = 0;
|
||||||
echo '('.$ab.')';
|
$voct = 0;
|
||||||
}
|
$vnov = 0;
|
||||||
|
$vdec = 0;
|
||||||
|
$vjan = 0;
|
||||||
|
$vfeb = 0;
|
||||||
|
$vmar = 0;
|
||||||
|
$vtot = 0;
|
||||||
|
|
||||||
?></p></h3></center>
|
$qapr = 0;
|
||||||
|
$qmay = 0;
|
||||||
|
$qjun = 0;
|
||||||
|
$qjul = 0;
|
||||||
|
$qaug = 0;
|
||||||
|
$qsep = 0;
|
||||||
|
$qoct = 0;
|
||||||
|
$qnov = 0;
|
||||||
|
$qdec = 0;
|
||||||
|
$qjan = 0;
|
||||||
|
$qfeb = 0;
|
||||||
|
$qmar = 0;
|
||||||
|
$qtot = 0; ?>
|
||||||
|
<style>
|
||||||
|
table {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Consolidate </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url("Report_consolidate_inward"); ?>">
|
||||||
|
<div class="form-group">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-3">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Supplier'; ?>
|
<?php echo 'Supplier'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($cust as $item):
|
foreach ($cust as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option
|
||||||
|
<?php if (isset($client_name) && ($client_name == $item->SupplierName)) {
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
echo 'selected';
|
||||||
|
} ?>
|
||||||
|
value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-3">
|
||||||
<label for="to_date">
|
<label for="financialyear">
|
||||||
<?php echo 'year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-3">
|
||||||
<br>
|
<br>
|
||||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
<label class="mr-2"><input type="radio" class="mt-2" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
||||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
<label><input type="radio" class="mt-2" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-3 text-right">
|
||||||
|
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_consolidate_inward') ?>';">
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success m-2" name="btn_submit" value="View Report">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2 "><br>
|
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<div id="a" style="display:block">
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box-body" style="display:block" id="a">
|
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
@ -182,14 +178,18 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
$qfeb = 0;
|
$qfeb = 0;
|
||||||
$qmar = 0;
|
$qmar = 0;
|
||||||
$qtot = 0;
|
$qtot = 0;
|
||||||
$ab=$this->input->post('financialyear');
|
$ab = $financialyear;
|
||||||
foreach ($spurchse as $index => $result) { ?>
|
foreach ($spurchse as $index => $result) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;">
|
<td style="text-align:left;">
|
||||||
<a href="<?= base_url() ?>report/ilink_purchase?sid=<?php echo $result->sid; ?>&mid=<?php echo $result->mid; ?>&ab=<?php echo $ab; ?>"><?php echo $result->supplier_name; ?> </a>
|
<a href="<?= base_url() ?>report/ilink_purchase?sid=<?php echo $result->sid; ?>&mid=<?php echo $result->mid; ?>&ab=<?php echo $ab; ?>"><?php echo $result->supplier_name; ?> </a>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:left;"><?php
|
<td style="text-align:left;"><?php
|
||||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
if (!empty($result->material_name)) {
|
||||||
|
echo $result->material_name;
|
||||||
|
} else {
|
||||||
|
echo "-";
|
||||||
|
}
|
||||||
?></td>
|
?></td>
|
||||||
<td style="text-align:right;"><span id="april_qty<?php echo $index ?>"><?php
|
<td style="text-align:right;"><span id="april_qty<?php echo $index ?>"><?php
|
||||||
$qapr = $qapr + round($result->April);
|
$qapr = $qapr + round($result->April);
|
||||||
@ -268,130 +268,104 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
<td style="text-align:right;"><strong><?php
|
<td style="text-align:right;"><strong><?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong><?php
|
<td style="text-align:right;"><strong><?php {
|
||||||
{
|
|
||||||
echo $qapr;
|
echo $qapr;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qmay;
|
echo $qmay;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qjun;
|
echo $qjun;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qjul;
|
echo $qjul;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qaug;
|
echo $qaug;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qsep;
|
echo $qsep;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qoct;
|
echo $qoct;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qnov;
|
echo $qnov;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qdec;
|
echo $qdec;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qjan;
|
echo $qjan;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qfeb;
|
echo $qfeb;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qmar;
|
echo $qmar;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qtot;
|
echo $qtot;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -407,7 +381,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body" id="b" style="display:none">
|
<div id="b" style="display:none">
|
||||||
|
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" style="font-size:13px!important;" id="ta">
|
<table class="table table-bordered table-hover" style="font-size:13px!important;" id="ta">
|
||||||
@ -415,19 +389,19 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center;">Supplier Name</th>
|
<th style="text-align:center;">Supplier Name</th>
|
||||||
<th style="text-align:center;">Material Name</th>
|
<th style="text-align:center;">Material Name</th>
|
||||||
<th style="text-align:center;">Apr (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Apr (₹)</th>
|
||||||
<th style="text-align:center;">May (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">May (₹)</th>
|
||||||
<th style="text-align:center;">Jun (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center;">Jun (₹)</th>
|
||||||
<th style="text-align:center;">Jul (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Jul (₹)</th>
|
||||||
<th style="text-align:center;">Aug (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center;">Aug (₹)</th>
|
||||||
<th style="text-align:center;">Sep (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Sep (₹)</th>
|
||||||
<th style="text-align:center;">Oct (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Oct (₹)</th>
|
||||||
<th style="text-align:center;">Nov (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Nov (₹)</th>
|
||||||
<th style="text-align:center;">Dec (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Dec (₹)</th>
|
||||||
<th style="text-align:center;">Jan (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Jan (₹)</th>
|
||||||
<th style="text-align: center;">Feb (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Feb (₹)</th>
|
||||||
<th style="text-align: center;">Mar (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Mar (₹)</th>
|
||||||
<th style="text-align: center;">Total (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center;">Total (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -454,7 +428,11 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<a href="<?= base_url() ?>report/ilink_purchase?ab=<?php echo $ab; ?>&sid=<?php echo $result->sid; ?>&mid=<?php echo $result->mid; ?>"><?php echo $result->supplier_name; ?> </a>
|
<a href="<?= base_url() ?>report/ilink_purchase?ab=<?php echo $ab; ?>&sid=<?php echo $result->sid; ?>&mid=<?php echo $result->mid; ?>"><?php echo $result->supplier_name; ?> </a>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:left;"><?php
|
<td style="text-align:left;"><?php
|
||||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
if (!empty($result->material_name)) {
|
||||||
|
echo $result->material_name;
|
||||||
|
} else {
|
||||||
|
echo "-";
|
||||||
|
}
|
||||||
?></td>
|
?></td>
|
||||||
<td style="text-align:right;"><span id="aprilval<?php echo $index ?>"><?php
|
<td style="text-align:right;"><span id="aprilval<?php echo $index ?>"><?php
|
||||||
$vapr = $vapr + number_format($result->vApril, 2, '.', '');
|
$vapr = $vapr + number_format($result->vApril, 2, '.', '');
|
||||||
@ -533,130 +511,104 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
<td><strong><?php
|
<td><strong><?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong><?php
|
<td style="text-align:right;"><strong><?php {
|
||||||
{
|
|
||||||
echo number_format($vapr, 2, '.', '');
|
echo number_format($vapr, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vmay, 2, '.', '');
|
echo number_format($vmay, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vjun, 2, '.', '');
|
echo number_format($vjun, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vjul, 2, '.', '');
|
echo number_format($vjul, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vaug, 2, '.', '');
|
echo number_format($vaug, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vsep, 2, '.', '');
|
echo number_format($vsep, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($voct, 2, '.', '');
|
echo number_format($voct, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vnov, 2, '.', '');
|
echo number_format($vnov, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vdec, 2, '.', '');
|
echo number_format($vdec, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vjan, 2, '.', '');
|
echo number_format($vjan, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vfeb, 2, '.', '');
|
echo number_format($vfeb, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vmar, 2, '.', '');
|
echo number_format($vmar, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vtot, 2, '.', '');
|
echo number_format($vtot, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -672,15 +624,14 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -689,48 +640,46 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// Initialize the DataTable with only pagination enabled
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip',
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
extend: 'excel',
|
||||||
|
text: 'Excel',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
paging: true, // Enable pagination
|
||||||
|
searching: true, // Disable search
|
||||||
|
ordering: false, // Disable column sorting
|
||||||
|
info: false, // Disable table information
|
||||||
|
lengthChange: false, // Disable page length options
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
responsive: true, // Keep responsive design
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.DataTables_sort_icon').remove();
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var txt_count = 0;
|
var txt_count = 0;
|
||||||
var qapril_sum = "<?php echo json_encode($qapr)?>";
|
|
||||||
var qmay_sum="<?php echo json_encode($qmay)?>";
|
|
||||||
var qjune_sum = "<?php echo json_encode($qjun)?>";
|
|
||||||
var qjuly_sum = "<?php echo json_encode($qjul)?>";
|
|
||||||
var qaug_sum = "<?php echo json_encode($qaug)?>";
|
|
||||||
var qsep_sum= "<?php echo json_encode($qsep)?>";
|
|
||||||
var qoct_sum = "<?php echo json_encode($qoct)?>";
|
|
||||||
var qnov_sum = "<?php echo json_encode($qnov)?>";
|
|
||||||
var qdec_sum= "<?php echo json_encode($qdec)?>";
|
|
||||||
var qjan_sum= "<?php echo json_encode($qjan)?>";
|
|
||||||
var qfeb_sum= "<?php echo json_encode($qfeb)?>";
|
|
||||||
var qmar_sum= "<?php echo json_encode($qmar)?>";
|
|
||||||
var qtotal_sum= "<?php echo json_encode($qtot)?>";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var vaprilval_sum = "<?php echo json_encode($vapr)?>";
|
|
||||||
var vmayval_sum = "<?php echo json_encode($vmay)?>";
|
|
||||||
var vjuneval_sum = "<?php echo json_encode($vjun)?>";
|
|
||||||
var vjulyval_sum = "<?php echo json_encode($vjul)?>";
|
|
||||||
var vaugval_sum = "<?php echo json_encode($vaug)?>";
|
|
||||||
var vsepval_sum = "<?php echo json_encode($vsep)?>";
|
|
||||||
var voctval_sum = "<?php echo json_encode($voct)?>";
|
|
||||||
var vnovval_sum = "<?php echo json_encode($vnov)?>";
|
|
||||||
var vdecval_sum = "<?php echo json_encode($vdec)?>";
|
|
||||||
var vjanval_sum = "<?php echo json_encode($vjan)?>";
|
|
||||||
var vfebval_sum = "<?php echo json_encode($vfeb)?>";
|
|
||||||
var vmarval_sum = "<?php echo json_encode($vmar)?>";
|
|
||||||
var vtotalval_sum = "<?php echo json_encode($vtot)?>";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#tab').on('search.dt', function() {
|
$('#tab').on('search.dt', function() {
|
||||||
var value = $('.dataTables_filter input').val();
|
var value = $('.dataTables_filter input').val();
|
||||||
//console.log(value);
|
//console.log(value);
|
||||||
@ -742,9 +691,28 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
var qapril_sum = "<?php echo json_encode($qapr??0)?>";
|
||||||
|
var qmay_sum="<?php echo json_encode($qmay??0)?>";
|
||||||
|
var qjune_sum = "<?php echo json_encode($qjun??0)?>";
|
||||||
|
var qjuly_sum = "<?php echo json_encode($qjul??0)?>";
|
||||||
|
var qaug_sum = "<?php echo json_encode($qaug??0)?>";
|
||||||
|
var qsep_sum= "<?php echo json_encode($qsep??0)?>";
|
||||||
|
var qoct_sum = "<?php echo json_encode($qoct??0)?>";
|
||||||
|
var qnov_sum = "<?php echo json_encode($qnov??0)?>";
|
||||||
|
var qdec_sum= "<?php echo json_encode($qdec??0)?>";
|
||||||
|
var qjan_sum= "<?php echo json_encode($qjan??0)?>";
|
||||||
|
var qfeb_sum= "<?php echo json_encode($qfeb??0)?>";
|
||||||
|
var qmar_sum= "<?php echo json_encode($qmar??0)?>";
|
||||||
|
var qtotal_sum= "<?php echo json_encode($qtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
table = $('#tab').DataTable( {
|
table = $('#tab').DataTable( {
|
||||||
"responsive": true,
|
|
||||||
"bAutoWidth": true,
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -764,9 +732,11 @@ $(document).ready(function() {
|
|||||||
'colvis'
|
'colvis'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
"footerCallback": function ( row, data, start, end, display )
|
"footerCallback": function ( row, data, start, end, display )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var april_sum=0;
|
var april_sum=0;
|
||||||
var may_sum=0;
|
var may_sum=0;
|
||||||
var june_sum = 0;
|
var june_sum = 0;
|
||||||
@ -780,9 +750,10 @@ $(document).ready(function() {
|
|||||||
var feb_sum=0;
|
var feb_sum=0;
|
||||||
var mar_sum=0;
|
var mar_sum=0;
|
||||||
var total_sum=0;
|
var total_sum=0;
|
||||||
if(txt_count !=0){
|
|
||||||
|
|
||||||
//console.log(display);
|
if(txt_count !=0)
|
||||||
|
{
|
||||||
|
|
||||||
for(var j = 0;j<=display.length-1;j++)
|
for(var j = 0;j<=display.length-1;j++)
|
||||||
{
|
{
|
||||||
var count = display[j];
|
var count = display[j];
|
||||||
@ -831,7 +802,7 @@ $(document).ready(function() {
|
|||||||
var Final_feb_total = parseInt(feb_sum);
|
var Final_feb_total = parseInt(feb_sum);
|
||||||
var Final_mar_total = parseInt(mar_sum);
|
var Final_mar_total = parseInt(mar_sum);
|
||||||
var Final_tot = parseInt(total_sum);
|
var Final_tot = parseInt(total_sum);
|
||||||
//console.log(Final_april_total);
|
|
||||||
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
||||||
@ -845,9 +816,13 @@ $(document).ready(function() {
|
|||||||
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
||||||
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
||||||
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
||||||
}else{
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
var api = this.api(), data;
|
var api = this.api(), data;
|
||||||
var Final_april_total =parseInt(qapril_sum);
|
var Final_april_total =parseInt(qapril_sum);
|
||||||
var Final_may_total = parseInt(qmay_sum);
|
var Final_may_total = parseInt(qmay_sum);
|
||||||
@ -862,7 +837,7 @@ $(document).ready(function() {
|
|||||||
var Final_feb_total = parseInt(qfeb_sum);
|
var Final_feb_total = parseInt(qfeb_sum);
|
||||||
var Final_mar_total = parseInt(qmar_sum);
|
var Final_mar_total = parseInt(qmar_sum);
|
||||||
var Final_tot = parseInt(qtotal_sum);
|
var Final_tot = parseInt(qtotal_sum);
|
||||||
// //console.log(Final_april_total);
|
|
||||||
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
||||||
@ -876,17 +851,16 @@ $(document).ready(function() {
|
|||||||
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
||||||
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
||||||
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
var vtxt_count = 0;
|
var vtxt_count = 0;
|
||||||
|
|
||||||
$('#ta').on('search.dt', function() {
|
$('#ta').on('search.dt', function() {
|
||||||
@ -902,22 +876,22 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// console.log(vtxt_count);
|
|
||||||
|
var vaprilval_sum = "<?php echo json_encode($vapr??0)?>";
|
||||||
|
var vmayval_sum = "<?php echo json_encode($vmay??0)?>";
|
||||||
|
var vjuneval_sum = "<?php echo json_encode($vjun??0)?>";
|
||||||
|
var vjulyval_sum = "<?php echo json_encode($vjul??0)?>";
|
||||||
|
var vaugval_sum = "<?php echo json_encode($vaug??0)?>";
|
||||||
|
var vsepval_sum = "<?php echo json_encode($vsep??0)?>";
|
||||||
|
var voctval_sum = "<?php echo json_encode($voct??0)?>";
|
||||||
|
var vnovval_sum = "<?php echo json_encode($vnov??0)?>";
|
||||||
|
var vdecval_sum = "<?php echo json_encode($vdec??0)?>";
|
||||||
|
var vjanval_sum = "<?php echo json_encode($vjan??0)?>";
|
||||||
|
var vfebval_sum = "<?php echo json_encode($vfeb??0)?>";
|
||||||
|
var vmarval_sum = "<?php echo json_encode($vmar??0)?>";
|
||||||
|
var vtotalval_sum = "<?php echo json_encode($vtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
var vaprilval_sum = "<?php echo json_encode($vapr)?>";
|
|
||||||
var vmayval_sum = "<?php echo json_encode($vmay)?>";
|
|
||||||
var vjuneval_sum = "<?php echo json_encode($vjun)?>";
|
|
||||||
var vjulyval_sum = "<?php echo json_encode($vjul)?>";
|
|
||||||
var vaugval_sum = "<?php echo json_encode($vaug)?>";
|
|
||||||
var vsepval_sum = "<?php echo json_encode($vsep)?>";
|
|
||||||
var voctval_sum = "<?php echo json_encode($voct)?>";
|
|
||||||
var vnovval_sum = "<?php echo json_encode($vnov)?>";
|
|
||||||
var vdecval_sum = "<?php echo json_encode($vdec)?>";
|
|
||||||
var vjanval_sum = "<?php echo json_encode($vjan)?>";
|
|
||||||
var vfebval_sum = "<?php echo json_encode($vfeb)?>";
|
|
||||||
var vmarval_sum = "<?php echo json_encode($vmar)?>";
|
|
||||||
var vtotalval_sum = "<?php echo json_encode($vtot)?>";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -957,12 +931,8 @@ $(document).ready(function() {
|
|||||||
var febval_sum =0;
|
var febval_sum =0;
|
||||||
var marval_sum =0;
|
var marval_sum =0;
|
||||||
var totalval_sum =0;
|
var totalval_sum =0;
|
||||||
|
if(vtxt_count !=0)
|
||||||
// console.log(vtxt_count);
|
{
|
||||||
|
|
||||||
if(vtxt_count !=0){
|
|
||||||
|
|
||||||
//console.log('if')
|
|
||||||
for(var j = 0;j<=display.length-1;j++)
|
for(var j = 0;j<=display.length-1;j++)
|
||||||
{
|
{
|
||||||
var count = display[j];
|
var count = display[j];
|
||||||
@ -1030,10 +1000,10 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//console.log('else');
|
|
||||||
|
|
||||||
var api = this.api(), data;
|
var api = this.api(), data;
|
||||||
var Final_april_total =parseInt(vaprilval_sum);
|
var Final_april_total =parseInt(vaprilval_sum);
|
||||||
var Final_may_total = parseInt(vmayval_sum);
|
var Final_may_total = parseInt(vmayval_sum);
|
||||||
@ -1067,13 +1037,6 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// columns:[
|
|
||||||
// { id:"col1", width:2 }
|
|
||||||
// ]
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
@ -1094,6 +1057,3 @@ function toggleTables(which)
|
|||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,47 +1,75 @@
|
|||||||
|
<!-- Report_consolidate_m -->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate(<?php
|
|
||||||
$m = $this->input->get('m');
|
|
||||||
echo $m;
|
|
||||||
?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Report - Purchase Consolidate <?php echo isset($month) ? $month : ''; ?> </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||||
@ -61,12 +89,12 @@
|
|||||||
if (!empty($spurchse)) {
|
if (!empty($spurchse)) {
|
||||||
$tqt = 0;
|
$tqt = 0;
|
||||||
$tvt = 0;
|
$tvt = 0;
|
||||||
$ab=$this->input->get('ab');
|
$ab = $financialyear;
|
||||||
$month=date('F');
|
$m = $month;
|
||||||
$m = $this->input->get('m');
|
|
||||||
//echo $month;
|
//echo $month;
|
||||||
foreach($spurchse as $rel)
|
$month = date('F');
|
||||||
{
|
//echo $month;
|
||||||
|
foreach ($spurchse as $rel) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -94,30 +122,24 @@
|
|||||||
|
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -133,17 +155,14 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -152,80 +171,48 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
// Initialize the DataTable with only pagination enabled
|
||||||
"language": {
|
var table = $('#cc').DataTable({
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
dom: 'Blfrtip',
|
||||||
},
|
buttons: [{
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
extend: 'excel',
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
text: 'Excel',
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
}],
|
||||||
buttons: [
|
paging: true, // Enable pagination
|
||||||
|
searching: true, // Disable search
|
||||||
{
|
ordering: false, // Disable column sorting
|
||||||
extend: 'excelHtml5',
|
info: false, // Disable table information
|
||||||
footer: 'true',
|
lengthChange: false, // Disable page length options
|
||||||
//messageTop: $('h3').text(),
|
pageLength: 10, // Default rows per page
|
||||||
title: $('h3').text(),
|
responsive: true, // Keep responsive design
|
||||||
exportOptions: {
|
language: {
|
||||||
columns: ':visible'
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function toggleTables(which) {
|
||||||
|
|
||||||
|
if (which == "1") {
|
||||||
|
document.getElementById('a').style.display = "block";
|
||||||
|
document.getElementById('b').style.display = "none";
|
||||||
|
|
||||||
|
}
|
||||||
|
if (which == "2") {
|
||||||
|
document.getElementById('b').style.display = "block";
|
||||||
|
document.getElementById('a').style.display = "none";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -1,46 +1,38 @@
|
|||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<!-- Report_consolidate_month -->
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate Category-Wise(<?php
|
|
||||||
$m = $this->input->get('m');
|
|
||||||
echo $m;
|
|
||||||
?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Consolidate Category-Wise <?php echo isset($month) ? '(' . $month . ')' : '' ?> </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Category</th>
|
<th style="text-align:center" rowspan="2">Category</th>
|
||||||
@ -61,12 +53,12 @@
|
|||||||
if (!empty($spurchse)) {
|
if (!empty($spurchse)) {
|
||||||
$tqt = 0;
|
$tqt = 0;
|
||||||
$tvt = 0;
|
$tvt = 0;
|
||||||
$ab=$this->input->get('ab');
|
$ab = isset($financialyear) ? $financialyear : '';
|
||||||
|
|
||||||
$month = date('F');
|
$month = date('F');
|
||||||
$m = $this->input->get('m');
|
$m = $month;
|
||||||
//echo $month;
|
//echo $month;
|
||||||
foreach($spurchse as $rel)
|
foreach ($spurchse as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;">
|
<td style="text-align:left;">
|
||||||
@ -95,39 +87,31 @@
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -143,15 +127,13 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -161,79 +143,66 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 3, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
// "footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
// var api = this.api(), data;
|
||||||
|
|
||||||
|
// // Remove the formatting to get integer data for summation
|
||||||
|
// var intVal = function ( i ) {
|
||||||
|
// return typeof i === 'string' ?
|
||||||
|
// parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
// typeof i === 'number' ?
|
||||||
|
// parseFloat(i) : 0;
|
||||||
|
// };
|
||||||
|
|
||||||
|
// TotalQTY = api
|
||||||
|
// .column( 3, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
// TotalVALUE = api
|
||||||
|
// .column( 4, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
</script>
|
||||||
@ -1,48 +1,50 @@
|
|||||||
|
<!-- Report_consolidate_month_inward.php -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate-Inward(<?php
|
|
||||||
$m = $this->input->get('m');
|
|
||||||
echo $m;
|
|
||||||
?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Consolidate ( <?php echo $month; ?> ) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||||
@ -62,12 +64,11 @@
|
|||||||
if (!empty($spurchse)) {
|
if (!empty($spurchse)) {
|
||||||
$tqt = 0;
|
$tqt = 0;
|
||||||
$tvt = 0;
|
$tvt = 0;
|
||||||
$ab=$this->input->get('ab');
|
$ab = $financialyear;
|
||||||
$month=date('F');
|
$month_letter = date('F');
|
||||||
$m = $this->input->get('m');
|
$m = $month;
|
||||||
//echo $month;
|
//echo $month_letter;
|
||||||
foreach($spurchse as $rel)
|
foreach ($spurchse as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -95,30 +96,24 @@
|
|||||||
|
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -135,15 +130,13 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -153,80 +146,33 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
lengthMenu: [
|
||||||
var api = this.api(), data;
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
// Remove the formatting to get integer data for summation
|
], // Rows per page options
|
||||||
var intVal = function ( i ) {
|
responsive: true, // Responsive table
|
||||||
return typeof i === 'string' ?
|
ordering: false,
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
language: {
|
||||||
typeof i === 'number' ?
|
paginate: {
|
||||||
parseFloat(i) : 0;
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
};
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
TotalQTY = api
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,148 +1,147 @@
|
|||||||
|
<!-- Report_consolidate_raw Report_consolidate_category -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
$("#client_name").select2();
|
$("#month").select2();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<?
|
||||||
|
$qapr = 0;
|
||||||
|
$qmay = 0;
|
||||||
|
$qjun = 0;
|
||||||
|
$qjul = 0;
|
||||||
|
$qaug = 0;
|
||||||
|
$qsep = 0;
|
||||||
|
$qoct = 0;
|
||||||
|
$qnov = 0;
|
||||||
|
$qdec = 0;
|
||||||
|
$qjan = 0;
|
||||||
|
$qfeb = 0;
|
||||||
|
$qmar = 0;
|
||||||
|
$qtot = 0;
|
||||||
|
$vapr = 0;
|
||||||
|
$vmay = 0;
|
||||||
|
$vjun = 0;
|
||||||
|
$vjul = 0;
|
||||||
|
$vaug = 0;
|
||||||
|
$vsep = 0;
|
||||||
|
$voct = 0;
|
||||||
|
$vnov = 0;
|
||||||
|
$vdec = 0;
|
||||||
|
$vjan = 0;
|
||||||
|
$vfeb = 0;
|
||||||
|
$vmar = 0;
|
||||||
|
$vtot = 0;
|
||||||
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
th{ white-space: nowrap; }
|
|
||||||
td{ white-space: wrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
|
||||||
table.dataTable thead > tr > th.sorting,
|
|
||||||
table.dataTable thead > tr > td.sorting_asc,
|
|
||||||
table.dataTable thead > tr > td.sorting_desc,
|
|
||||||
table.dataTable thead > tr > td.sorting {
|
|
||||||
padding-right: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="content-wrapper">
|
<div class="content-page">
|
||||||
<section class="content">
|
<div class="content">
|
||||||
<div class="row" style="min-height: 600px;">
|
<!-- Start Content-->
|
||||||
<!-- Left col -->
|
<div class="container-fluid">
|
||||||
<div class="col-md-12">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<div>
|
||||||
<div class="box box-info">
|
<div class="row">
|
||||||
<div class="box-header with-border">
|
<div class="col-12">
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate (Category-Wise)</b><br><br>
|
<div class="page-title-box page-title-box-alt">
|
||||||
<?php
|
<div class="page-title-right">
|
||||||
if($this->input->post('client_name')){
|
<ol class="breadcrumb m-0">
|
||||||
$cl=$this->input->post('client_name');
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
echo $cl;
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Material Master</a></li>
|
||||||
}
|
<li class="breadcrumb-item active">
|
||||||
if($this->input->post('financialyear')){
|
<h4 class="page-title"><b> Consolidate (Category-Wise) <?php echo isset($client_name) ? $client_name : ''; ?> <?php echo isset($financialyear) ? "(" . $financialyear . ")" : ''; ?> </b></h4>
|
||||||
$ab=$this->input->post('financialyear');
|
</li>
|
||||||
echo '('.$ab.')';
|
</ol>
|
||||||
}
|
|
||||||
|
|
||||||
?></p></h3></center>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url("Report_consolidate_category"); ?>">
|
||||||
<div class="col-md-4">
|
<div class="form-group">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Category'; ?>
|
<?php echo 'Category'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<option value="">Select Category</option>
|
<option value="">Select Category</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($material as $item):
|
foreach ($material as $item): { ?>
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->Category; ?>"><?php echo $item->Category; ?></option>
|
<option value="<?php echo $item->Category; ?>"><?php echo $item->Category; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div class="col-3">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'year'; ?>
|
<?php echo 'year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
|
</div>
|
||||||
|
<div class="col-3">
|
||||||
<br>
|
<br>
|
||||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
|
||||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
<label class="mr-2"><input type="radio" class="mt-2" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
||||||
|
<label><input type="radio" class="mt-2" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2 "><br>
|
<div class="col-3 text-right">
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_consolidate_inward') ?>';">
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success m-2" name="btn_submit" value="View Report">
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box-body" style="display:block" id="a">
|
<div class="box-body" style="display:block" id="a">
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
||||||
@ -182,7 +181,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
$qfeb = 0;
|
$qfeb = 0;
|
||||||
$qmar = 0;
|
$qmar = 0;
|
||||||
$qtot = 0;
|
$qtot = 0;
|
||||||
$ab=$this->input->post('financialyear');
|
$ab = $financialyear;
|
||||||
foreach ($spurchse as $index => $result) { ?>
|
foreach ($spurchse as $index => $result) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;">
|
<td style="text-align:left;">
|
||||||
@ -279,123 +278,99 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right;"><strong><?php
|
<td style="text-align:right;"><strong><?php {
|
||||||
{
|
|
||||||
echo $qapr;
|
echo $qapr;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qmay;
|
echo $qmay;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qjun;
|
echo $qjun;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qjul;
|
echo $qjul;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qaug;
|
echo $qaug;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qsep;
|
echo $qsep;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qoct;
|
echo $qoct;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qnov;
|
echo $qnov;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qdec;
|
echo $qdec;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qjan;
|
echo $qjan;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qfeb;
|
echo $qfeb;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qmar;
|
echo $qmar;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $qtot;
|
echo $qtot;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -546,123 +521,99 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
<td style="text-align:right;"><strong><?php
|
<td style="text-align:right;"><strong><?php {
|
||||||
{
|
|
||||||
echo number_format($vapr, 2, '.', '');
|
echo number_format($vapr, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vmay, 2, '.', '');
|
echo number_format($vmay, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vjun, 2, '.', '');
|
echo number_format($vjun, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vjul, 2, '.', '');
|
echo number_format($vjul, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vaug, 2, '.', '');
|
echo number_format($vaug, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vsep, 2, '.', '');
|
echo number_format($vsep, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;"><strong>
|
<td style="text-align:right;"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($voct, 2, '.', '');
|
echo number_format($voct, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vnov, 2, '.', '');
|
echo number_format($vnov, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vdec, 2, '.', '');
|
echo number_format($vdec, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vjan, 2, '.', '');
|
echo number_format($vjan, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vfeb, 2, '.', '');
|
echo number_format($vfeb, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vmar, 2, '.', '');
|
echo number_format($vmar, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($vtot, 2, '.', '');
|
echo number_format($vtot, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -678,15 +629,14 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -695,6 +645,37 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// Initialize the DataTable with only pagination enabled
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip',
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
extend: 'excel',
|
||||||
|
text: 'Excel',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
paging: true, // Enable pagination
|
||||||
|
searching: true, // Disable search
|
||||||
|
ordering: false, // Disable column sorting
|
||||||
|
info: false, // Disable table information
|
||||||
|
lengthChange: false, // Disable page length options
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
responsive: true, // Keep responsive design
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -717,20 +698,21 @@ $('#tab').on('search.dt', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
var qapril_sum = "<?php echo json_encode($qapr??0)?>";
|
||||||
|
var qmay_sum="<?php echo json_encode($qmay??0)?>";
|
||||||
|
var qjune_sum = "<?php echo json_encode($qjun??0)?>";
|
||||||
|
var qjuly_sum = "<?php echo json_encode($qjul??0)?>";
|
||||||
|
var qaug_sum = "<?php echo json_encode($qaug??0)?>";
|
||||||
|
var qsep_sum= "<?php echo json_encode($qsep??0)?>";
|
||||||
|
var qoct_sum = "<?php echo json_encode($qoct??0)?>";
|
||||||
|
var qnov_sum = "<?php echo json_encode($qnov??0)?>";
|
||||||
|
var qdec_sum= "<?php echo json_encode($qdec??0)?>";
|
||||||
|
var qjan_sum= "<?php echo json_encode($qjan??0)?>";
|
||||||
|
var qfeb_sum= "<?php echo json_encode($qfeb??0)?>";
|
||||||
|
var qmar_sum= "<?php echo json_encode($qmar??0)?>";
|
||||||
|
var qtotal_sum= "<?php echo json_encode($qtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
var qapril_sum = "<?php echo json_encode($qapr)?>";
|
|
||||||
var qmay_sum="<?php echo json_encode($qmay)?>";
|
|
||||||
var qjune_sum = "<?php echo json_encode($qjun)?>";
|
|
||||||
var qjuly_sum = "<?php echo json_encode($qjul)?>";
|
|
||||||
var qaug_sum = "<?php echo json_encode($qaug)?>";
|
|
||||||
var qsep_sum= "<?php echo json_encode($qsep)?>";
|
|
||||||
var qoct_sum = "<?php echo json_encode($qoct)?>";
|
|
||||||
var qnov_sum = "<?php echo json_encode($qnov)?>";
|
|
||||||
var qdec_sum= "<?php echo json_encode($qdec)?>";
|
|
||||||
var qjan_sum= "<?php echo json_encode($qjan)?>";
|
|
||||||
var qfeb_sum= "<?php echo json_encode($qfeb)?>";
|
|
||||||
var qmar_sum= "<?php echo json_encode($qmar)?>";
|
|
||||||
var qtotal_sum= "<?php echo json_encode($qtot)?>";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -756,10 +738,10 @@ $('#tab').on('search.dt', function() {
|
|||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"footerCallback": function ( row, data, start, end, display )
|
"footerCallback": function ( row, data, start, end, display )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var april_sum=0;
|
var april_sum=0;
|
||||||
var may_sum=0;
|
var may_sum=0;
|
||||||
var june_sum = 0;
|
var june_sum = 0;
|
||||||
@ -774,7 +756,8 @@ $('#tab').on('search.dt', function() {
|
|||||||
var mar_sum=0;
|
var mar_sum=0;
|
||||||
var total_sum=0;
|
var total_sum=0;
|
||||||
|
|
||||||
if(txt_count !=0){
|
if(txt_count !=0)
|
||||||
|
{
|
||||||
|
|
||||||
for(var j = 0;j<=display.length-1;j++)
|
for(var j = 0;j<=display.length-1;j++)
|
||||||
{
|
{
|
||||||
@ -825,21 +808,21 @@ $('#tab').on('search.dt', function() {
|
|||||||
var Final_mar_total = parseInt(mar_sum);
|
var Final_mar_total = parseInt(mar_sum);
|
||||||
var Final_tot = parseInt(total_sum);
|
var Final_tot = parseInt(total_sum);
|
||||||
|
|
||||||
// console.log(Final_jan_total);
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 5 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 6 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 7 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 8 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 9 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 10 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 11 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 2 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 3 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 4 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 5 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 6 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 7 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 8 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 9 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 10 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 11 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 12 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 13 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -860,32 +843,29 @@ $('#tab').on('search.dt', function() {
|
|||||||
var Final_mar_total = parseInt(qmar_sum);
|
var Final_mar_total = parseInt(qmar_sum);
|
||||||
var Final_tot = parseInt(qtotal_sum);
|
var Final_tot = parseInt(qtotal_sum);
|
||||||
|
|
||||||
// console.log(Final_jan_total);
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
$( api.column( 1 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
||||||
$( api.column( 2 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
$( api.column( 5 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
||||||
$( api.column( 3 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
$( api.column( 6 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
||||||
$( api.column( 4 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
$( api.column( 7 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
||||||
$( api.column( 5 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
$( api.column( 8 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
||||||
$( api.column( 6 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
$( api.column( 9 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
||||||
$( api.column( 7 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
$( api.column( 10 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
||||||
$( api.column( 8 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
$( api.column( 11 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
||||||
$( api.column( 9 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
||||||
$( api.column( 10 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
||||||
$( api.column( 11 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
||||||
$( api.column( 12 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
|
||||||
$( api.column( 13 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
var vtxt_count = 0;
|
var vtxt_count = 0;
|
||||||
|
|
||||||
$('#ta').on('search.dt', function() {
|
$('#ta').on('search.dt', function() {
|
||||||
@ -901,19 +881,22 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var vaprilval_sum = "<?php echo json_encode($vapr)?>";
|
|
||||||
var vmayval_sum = "<?php echo json_encode($vmay)?>";
|
var vaprilval_sum = "<?php echo json_encode($vapr??0)?>";
|
||||||
var vjuneval_sum = "<?php echo json_encode($vjun)?>";
|
var vmayval_sum = "<?php echo json_encode($vmay??0)?>";
|
||||||
var vjulyval_sum = "<?php echo json_encode($vjul)?>";
|
var vjuneval_sum = "<?php echo json_encode($vjun??0)?>";
|
||||||
var vaugval_sum = "<?php echo json_encode($vaug)?>";
|
var vjulyval_sum = "<?php echo json_encode($vjul??0)?>";
|
||||||
var vsepval_sum = "<?php echo json_encode($vsep)?>";
|
var vaugval_sum = "<?php echo json_encode($vaug??0)?>";
|
||||||
var voctval_sum = "<?php echo json_encode($voct)?>";
|
var vsepval_sum = "<?php echo json_encode($vsep??0)?>";
|
||||||
var vnovval_sum = "<?php echo json_encode($vnov)?>";
|
var voctval_sum = "<?php echo json_encode($voct??0)?>";
|
||||||
var vdecval_sum = "<?php echo json_encode($vdec)?>";
|
var vnovval_sum = "<?php echo json_encode($vnov??0)?>";
|
||||||
var vjanval_sum = "<?php echo json_encode($vjan)?>";
|
var vdecval_sum = "<?php echo json_encode($vdec??0)?>";
|
||||||
var vfebval_sum = "<?php echo json_encode($vfeb)?>";
|
var vjanval_sum = "<?php echo json_encode($vjan??0)?>";
|
||||||
var vmarval_sum = "<?php echo json_encode($vmar)?>";
|
var vfebval_sum = "<?php echo json_encode($vfeb??0)?>";
|
||||||
var vtotalval_sum = "<?php echo json_encode($vtot)?>";
|
var vmarval_sum = "<?php echo json_encode($vmar??0)?>";
|
||||||
|
var vtotalval_sum = "<?php echo json_encode($vtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -953,9 +936,8 @@ $(document).ready(function() {
|
|||||||
var febval_sum =0;
|
var febval_sum =0;
|
||||||
var marval_sum =0;
|
var marval_sum =0;
|
||||||
var totalval_sum =0;
|
var totalval_sum =0;
|
||||||
|
if(vtxt_count !=0)
|
||||||
if(vtxt_count !=0){
|
{
|
||||||
|
|
||||||
for(var j = 0;j<=display.length-1;j++)
|
for(var j = 0;j<=display.length-1;j++)
|
||||||
{
|
{
|
||||||
var count = display[j];
|
var count = display[j];
|
||||||
@ -1007,24 +989,26 @@ $(document).ready(function() {
|
|||||||
var Final_mar_total = parseInt(marval_sum);
|
var Final_mar_total = parseInt(marval_sum);
|
||||||
var Final_tot = parseInt(totalval_sum);
|
var Final_tot = parseInt(totalval_sum);
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
$( api.column( 2 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
$( api.column( 3 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
||||||
$( api.column( 4 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
$( api.column( 5 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
||||||
$( api.column( 5 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
$( api.column( 6 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
||||||
$( api.column( 6 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
$( api.column( 7 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
||||||
$( api.column( 7 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
$( api.column( 8 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
||||||
$( api.column( 8 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
$( api.column( 9 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
||||||
$( api.column( 9 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
$( api.column( 10 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
||||||
$( api.column( 10 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
$( api.column( 11 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
||||||
$( api.column( 11 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
||||||
$( api.column( 12 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
||||||
$( api.column( 13 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var api = this.api(), data;
|
var api = this.api(), data;
|
||||||
var Final_april_total =parseInt(vaprilval_sum);
|
var Final_april_total =parseInt(vaprilval_sum);
|
||||||
var Final_may_total = parseInt(vmayval_sum);
|
var Final_may_total = parseInt(vmayval_sum);
|
||||||
@ -1040,26 +1024,24 @@ $(document).ready(function() {
|
|||||||
var Final_mar_total = parseInt(vmarval_sum);
|
var Final_mar_total = parseInt(vmarval_sum);
|
||||||
var Final_tot = parseInt(vtotalval_sum);
|
var Final_tot = parseInt(vtotalval_sum);
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
$( api.column( 2 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
$( api.column( 3 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
$( api.column( 4 ).footer() ).html( Final_june_total.toFixed(2).bold() );
|
||||||
$( api.column( 4 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
$( api.column( 5 ).footer() ).html( Final_july_total.toFixed(2).bold() );
|
||||||
$( api.column( 5 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
$( api.column( 6 ).footer() ).html( Final_aug_total.toFixed(2).bold() );
|
||||||
$( api.column( 6 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
$( api.column( 7 ).footer() ).html( Final_sep_total.toFixed(2).bold() );
|
||||||
$( api.column( 7 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
$( api.column( 8 ).footer() ).html( Final_oct_total.toFixed(2).bold() );
|
||||||
$( api.column( 8 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
$( api.column( 9 ).footer() ).html( Final_nov_total.toFixed(2).bold() );
|
||||||
$( api.column( 9 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
$( api.column( 10 ).footer() ).html( Final_dec_total.toFixed(2).bold() );
|
||||||
$( api.column( 10 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
$( api.column( 11 ).footer() ).html( Final_jan_total.toFixed(2).bold() );
|
||||||
$( api.column( 11 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
$( api.column( 12 ).footer() ).html( Final_feb_total.toFixed(2).bold() );
|
||||||
$( api.column( 12 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
$( api.column( 13 ).footer() ).html( Final_mar_total.toFixed(2).bold() );
|
||||||
$( api.column( 13 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
$( api.column( 14 ).footer() ).html( Final_tot.toFixed(2).bold() );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
@ -1082,4 +1064,3 @@ function toggleTables(which)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,48 +1,77 @@
|
|||||||
|
<!-- Report_consolidate_y -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php $ab = isset($financialyear) ? $financialyear : '';
|
||||||
|
$m = isset($month) ? $month : '';
|
||||||
|
?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate(<?php
|
|
||||||
$m = $this->input->get('ab');
|
|
||||||
echo $m;
|
|
||||||
?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Report - Purchase Consolidate <?php echo isset($month) ? $month : ''; ?> </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||||
@ -62,18 +91,12 @@
|
|||||||
if (!empty($spurchse)) {
|
if (!empty($spurchse)) {
|
||||||
$tqt = 0;
|
$tqt = 0;
|
||||||
$tvt = 0;
|
$tvt = 0;
|
||||||
$ab=$this->input->get('ab');
|
foreach ($spurchse as $rel) {
|
||||||
|
|
||||||
$month=date('F');
|
|
||||||
//echo $month;
|
|
||||||
foreach($spurchse as $rel)
|
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td><span>
|
<td><span>
|
||||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&mid=<?php echo $rel->mid;?>"><?php echo $rel->supplier_name;?> </a>
|
<a href="<?= base_url() ?>report/link_purchase?ab=<?php echo $ab; ?>&sid=<?php echo $rel->sid; ?>&mid=<?php echo $rel->mid; ?>&month=<?php echo $m; ?>"><?php echo $rel->supplier_name; ?> </a>
|
||||||
|
|
||||||
</span></td>
|
</span></td>
|
||||||
<td><span><?php echo $rel->material_name; ?></span></td>
|
<td><span><?php echo $rel->material_name; ?></span></td>
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
@ -96,30 +119,24 @@
|
|||||||
|
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -135,15 +152,13 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -153,79 +168,48 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
// Initialize the DataTable with only pagination enabled
|
||||||
"language": {
|
var table = $('#cc').DataTable({
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
dom: 'Blfrtip',
|
||||||
},
|
buttons: [{
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
extend: 'excel',
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
text: 'Excel',
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
}],
|
||||||
buttons: [
|
paging: true, // Enable pagination
|
||||||
|
searching: true, // Disable search
|
||||||
{
|
ordering: false, // Disable column sorting
|
||||||
extend: 'excelHtml5',
|
info: false, // Disable table information
|
||||||
footer: 'true',
|
lengthChange: false, // Disable page length options
|
||||||
//messageTop: $('h3').text(),
|
pageLength: 10, // Default rows per page
|
||||||
title: $('h3').text(),
|
responsive: true, // Keep responsive design
|
||||||
exportOptions: {
|
language: {
|
||||||
columns: ':visible'
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function toggleTables(which) {
|
||||||
|
|
||||||
|
if (which == "1") {
|
||||||
|
document.getElementById('a').style.display = "block";
|
||||||
|
document.getElementById('b').style.display = "none";
|
||||||
|
|
||||||
|
}
|
||||||
|
if (which == "2") {
|
||||||
|
document.getElementById('b').style.display = "block";
|
||||||
|
document.getElementById('a').style.display = "none";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -1,55 +1,38 @@
|
|||||||
|
<!-- Report_consolidate_month -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate Category-Wise(<?php
|
|
||||||
$m = $this->input->get('ab');
|
|
||||||
echo $m;
|
|
||||||
?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Consolidate Category-Wise <?php echo isset($financialyear) ? '(' . $financialyear . ')' : '' ?> </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Category</th>
|
<th style="text-align:center" rowspan="2">Category</th>
|
||||||
@ -70,12 +53,11 @@ if(!empty($mms))
|
|||||||
if (!empty($spurchse)) {
|
if (!empty($spurchse)) {
|
||||||
$tqt = 0;
|
$tqt = 0;
|
||||||
$tvt = 0;
|
$tvt = 0;
|
||||||
$ab=$this->input->get('ab');
|
$ab = isset($financialyear) ? $financialyear : '';
|
||||||
|
|
||||||
$month=date('F');
|
// $month=date('F');
|
||||||
//echo $month;
|
//echo $month;
|
||||||
foreach($spurchse as $rel)
|
foreach ($spurchse as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;">
|
<td style="text-align:left;">
|
||||||
@ -105,39 +87,31 @@ if(!empty($mms))
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -153,15 +127,13 @@ if(!empty($mms))
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -171,79 +143,65 @@ if(!empty($mms))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 3, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// "footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
// var api = this.api(), data;
|
||||||
|
|
||||||
|
// // Remove the formatting to get integer data for summation
|
||||||
|
// var intVal = function ( i ) {
|
||||||
|
// return typeof i === 'string' ?
|
||||||
|
// parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
// typeof i === 'number' ?
|
||||||
|
// parseFloat(i) : 0;
|
||||||
|
// };
|
||||||
|
|
||||||
|
// TotalQTY = api
|
||||||
|
// .column( 3, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
// TotalVALUE = api
|
||||||
|
// .column( 4, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
</script>
|
||||||
@ -1,49 +1,54 @@
|
|||||||
|
<!-- Report_consolidate_year_inward -->
|
||||||
|
<!-- Report_consolidate_month_inward.php -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate-Inward<?php
|
|
||||||
if ($this->input->get('ab')){
|
|
||||||
$ab = $this->input->get('ab');
|
|
||||||
echo '('.$ab.')';
|
|
||||||
}
|
|
||||||
?></b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Consolidate <!-- ( <?php echo $financialyear; ?> ) --> </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||||
@ -63,12 +68,11 @@
|
|||||||
if (!empty($spurchse)) {
|
if (!empty($spurchse)) {
|
||||||
$tqt = 0;
|
$tqt = 0;
|
||||||
$tvt = 0;
|
$tvt = 0;
|
||||||
$ab=$this->input->get('ab');
|
$ab = $financialyear;
|
||||||
$month=date('F');
|
$month_word = date('F');
|
||||||
$m = $this->input->get('m');
|
$m = isset($month) ? $month : '';
|
||||||
//echo $month;
|
//echo $month_word;
|
||||||
foreach($spurchse as $rel)
|
foreach ($spurchse as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -96,30 +100,24 @@
|
|||||||
|
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -136,17 +134,15 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -155,79 +151,33 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 2, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,51 +1,39 @@
|
|||||||
|
<!-- Report_cumulative_day_inward -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
<div class="content-page">
|
||||||
<section class="content">
|
<div class="content">
|
||||||
<div class="row" style="min-height: 600px;">
|
<!-- Start Content-->
|
||||||
<!-- Left col -->
|
<div class="container-fluid">
|
||||||
<div class="col-md-12">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative - Inward(<?php echo date('d-m-Y'); ?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative Month (<?php echo date('F'); ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -67,8 +55,7 @@ if(!empty($mms))
|
|||||||
$tvt = 0.00;
|
$tvt = 0.00;
|
||||||
|
|
||||||
$d = date('Y-m-d');
|
$d = date('Y-m-d');
|
||||||
foreach($cum_day as $rel)
|
foreach ($cum_day as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -94,10 +81,8 @@ if(!empty($mms))
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -105,20 +90,16 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -135,15 +116,16 @@ if(!empty($mms))
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -152,78 +134,32 @@ if(!empty($mms))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 3, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,45 +1,42 @@
|
|||||||
|
<!-- Report_cumulative_day_raw -->
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
<div class="content-page">
|
||||||
<section class="content">
|
<div class="content">
|
||||||
<div class="row" style="min-height: 600px;">
|
<!-- Start Content-->
|
||||||
<!-- Left col -->
|
<div class="container-fluid">
|
||||||
<div class="col-md-12">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative-Category-Wise(<?php echo date('d-m-Y'); ?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative-Category-Wise(<?php echo date('d-m-Y'); ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center" rowspan="2">Category</th>
|
<th style="text-align:center" rowspan="2">Category</th>
|
||||||
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
<th style="text-align:center" rowspan="2">Supplier Name</th>
|
||||||
@ -59,8 +56,7 @@
|
|||||||
$tvt = 0.00;
|
$tvt = 0.00;
|
||||||
|
|
||||||
$d = date('Y-m-d');
|
$d = date('Y-m-d');
|
||||||
foreach($cum_day as $rel)
|
foreach ($cum_day as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span><?php echo $rel->category; ?></span></td>
|
<td><span><?php echo $rel->category; ?></span></td>
|
||||||
@ -87,40 +83,32 @@
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -137,15 +125,16 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -154,78 +143,32 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 3, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,60 +1,47 @@
|
|||||||
|
<!-- Report_cumulative_inward -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative - Inward</b>(<i>
|
|
||||||
<?php
|
<?php
|
||||||
if (date('m') >= 4) {
|
if (date('m') >= 4) {
|
||||||
$yearl = date('Y') . '-' . (date('Y') + 1);
|
$yearl = date('Y') . '-' . (date('Y') + 1);
|
||||||
} else {
|
} else {
|
||||||
$yearl = (date('Y') - 1) . '-' . date('Y');
|
$yearl = (date('Y') - 1) . '-' . date('Y');
|
||||||
}
|
}
|
||||||
echo $yearl;
|
|
||||||
?>
|
?>
|
||||||
</i>)</p></h3></center>
|
<div class="content-page">
|
||||||
</div>
|
<div class="content">
|
||||||
<!-- /.box-header -->
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="box-body">
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative ( <?php echo $yearl; ?> ) </b></h4>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -74,11 +61,11 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -98,8 +85,7 @@ if(!empty($mms))
|
|||||||
}
|
}
|
||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
|
|
||||||
foreach($cum as $index=>$rel)
|
foreach ($cum as $index => $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -138,10 +124,8 @@ if(!empty($mms))
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -149,60 +133,48 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $mqt;
|
echo $mqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($mvt, 2, '.', '');
|
echo number_format($mvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $yqt;
|
echo $yqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($yvt, 2, '.', '');
|
echo number_format($yvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -218,15 +190,15 @@ if(!empty($mms))
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -236,10 +208,74 @@ if(!empty($mms))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
|
// Initialize the DataTable
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
|
],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
|
], // Rows per page options
|
||||||
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $("#min-date")
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on("change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate(this));
|
||||||
|
}),
|
||||||
|
to = $("#max-date").datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on("change", function() {
|
||||||
|
from.datepicker("option", "maxDate", getDate(this));
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate(element) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate(dateFormat, element.value);
|
||||||
|
|
||||||
|
} catch (error) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
@ -297,8 +333,7 @@ $(document).ready(function() {
|
|||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
"footerCallback": function ( row, data, start, end, display )
|
"footerCallback": function(row, data, start, end, display) {
|
||||||
{
|
|
||||||
|
|
||||||
var m_qsum = 0;
|
var m_qsum = 0;
|
||||||
var d_qsum = 0;
|
var d_qsum = 0;
|
||||||
@ -308,10 +343,8 @@ $(document).ready(function() {
|
|||||||
var year_value = 0;
|
var year_value = 0;
|
||||||
|
|
||||||
|
|
||||||
if(vtxt_count !=0)
|
if (vtxt_count != 0) {
|
||||||
{
|
for (var j = 0; j <= display.length - 1; j++) {
|
||||||
for(var j = 0;j<=display.length-1;j++)
|
|
||||||
{
|
|
||||||
|
|
||||||
var count = display[j];
|
var count = display[j];
|
||||||
var te = $('#m_quty' + count).text();
|
var te = $('#m_quty' + count).text();
|
||||||
@ -340,19 +373,15 @@ $(document).ready(function() {
|
|||||||
var yearlyFinalQty = parseInt(y_quty);
|
var yearlyFinalQty = parseInt(y_quty);
|
||||||
var yearlyValueFinal = parseInt(year_value);
|
var yearlyValueFinal = parseInt(year_value);
|
||||||
|
|
||||||
var api = this.api(), data;
|
var api = this.api(),
|
||||||
|
data;
|
||||||
$(api.column(4).footer()).html(FinalTotal.toFixed(2).bold());
|
$(api.column(4).footer()).html(FinalTotal.toFixed(2).bold());
|
||||||
$(api.column(2).footer()).html(DailyFinalToatal.toFixed(2).bold());
|
$(api.column(2).footer()).html(DailyFinalToatal.toFixed(2).bold());
|
||||||
$(api.column(3).footer()).html(DailyvalueFinalTotal.toFixed(2).bold());
|
$(api.column(3).footer()).html(DailyvalueFinalTotal.toFixed(2).bold());
|
||||||
$(api.column(5).footer()).html(MonthlyValueFinal.toFixed(2).bold());
|
$(api.column(5).footer()).html(MonthlyValueFinal.toFixed(2).bold());
|
||||||
$(api.column(6).footer()).html(yearlyFinalQty.toFixed(2).bold());
|
$(api.column(6).footer()).html(yearlyFinalQty.toFixed(2).bold());
|
||||||
$(api.column(7).footer()).html(yearlyValueFinal.toFixed(2).bold());
|
$(api.column(7).footer()).html(yearlyValueFinal.toFixed(2).bold());
|
||||||
}
|
} else {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
var FinalTotal = parseInt(Fm_qsum);
|
var FinalTotal = parseInt(Fm_qsum);
|
||||||
var DailyFinalToatal = parseInt(Fd_qsum);
|
var DailyFinalToatal = parseInt(Fd_qsum);
|
||||||
@ -361,7 +390,8 @@ $(document).ready(function() {
|
|||||||
var yearlyFinalQty = parseInt(Fy_quty);
|
var yearlyFinalQty = parseInt(Fy_quty);
|
||||||
var yearlyValueFinal = parseInt(Fyear_value);
|
var yearlyValueFinal = parseInt(Fyear_value);
|
||||||
|
|
||||||
var api = this.api(), data;
|
var api = this.api(),
|
||||||
|
data;
|
||||||
$(api.column(4).footer()).html(FinalTotal.toFixed(2).bold());
|
$(api.column(4).footer()).html(FinalTotal.toFixed(2).bold());
|
||||||
$(api.column(2).footer()).html(DailyFinalToatal.toFixed(2).bold());
|
$(api.column(2).footer()).html(DailyFinalToatal.toFixed(2).bold());
|
||||||
$(api.column(3).footer()).html(DailyvalueFinalTotal.toFixed(2).bold());
|
$(api.column(3).footer()).html(DailyvalueFinalTotal.toFixed(2).bold());
|
||||||
@ -381,10 +411,4 @@ $(document).ready(function() {
|
|||||||
.search(this.value)
|
.search(this.value)
|
||||||
.draw();
|
.draw();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,42 +1,39 @@
|
|||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<!-- Report_cumulative_inward -->
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
<div class="content-page">
|
||||||
<section class="content">
|
<div class="content">
|
||||||
<div class="row" style="min-height: 600px;">
|
<!-- Start Content-->
|
||||||
<!-- Left col -->
|
<div class="container-fluid">
|
||||||
<div class="col-md-12">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative Month - Inward(<?php echo date('F'); ?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative Month (<?php echo date('F'); ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -63,8 +60,7 @@
|
|||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
$month = date('F');
|
$month = date('F');
|
||||||
//echo $month;
|
//echo $month;
|
||||||
foreach($cum_month as $rel)
|
foreach ($cum_month as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -90,10 +86,8 @@
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -101,20 +95,16 @@
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -131,15 +121,16 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -148,81 +139,31 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
lengthMenu: [
|
||||||
var api = this.api(), data;
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
// Remove the formatting to get integer data for summation
|
], // Rows per page options
|
||||||
var intVal = function ( i ) {
|
responsive: true, // Responsive table
|
||||||
return typeof i === 'string' ?
|
ordering: false,
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
language: {
|
||||||
typeof i === 'number' ?
|
paginate: {
|
||||||
parseFloat(i) : 0;
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
};
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
TotalQTY = api
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,43 +1,39 @@
|
|||||||
|
<!-- Report_cumulative_month_raw -->
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
<div class="content-page">
|
||||||
<section class="content">
|
<div class="content">
|
||||||
<div class="row" style="min-height: 600px;">
|
<!-- Start Content-->
|
||||||
<!-- Left col -->
|
<div class="container-fluid">
|
||||||
<div class="col-md-12">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative Month-Category-Wise(<?php echo date('F'); ?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative Month-Category-Wise(<?php echo date('F'); ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -64,8 +60,7 @@
|
|||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
$month = date('F');
|
$month = date('F');
|
||||||
//echo $month;
|
//echo $month;
|
||||||
foreach($cum_month as $rel)
|
foreach ($cum_month as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span><?php echo $rel->category; ?></span></td>
|
<td><span><?php echo $rel->category; ?></span></td>
|
||||||
@ -92,20 +87,16 @@
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -113,20 +104,16 @@
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -143,15 +130,16 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -160,78 +148,64 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 3, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
// "footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
// var api = this.api(), data;
|
||||||
|
|
||||||
|
// // Remove the formatting to get integer data for summation
|
||||||
|
// var intVal = function ( i ) {
|
||||||
|
// return typeof i === 'string' ?
|
||||||
|
// parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
// typeof i === 'number' ?
|
||||||
|
// parseFloat(i) : 0;
|
||||||
|
// };
|
||||||
|
|
||||||
|
// TotalQTY = api
|
||||||
|
// .column( 3, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
// TotalVALUE = api
|
||||||
|
// .column( 4, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
// }
|
||||||
|
</script>
|
||||||
@ -1,61 +1,50 @@
|
|||||||
|
<!-- Report_cumulative_raw -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.dataTables_filter {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative-Category-Wise</b>(<i>
|
|
||||||
<?php
|
<?php
|
||||||
if (date('m') >= 4) {
|
if (date('m') >= 4) {
|
||||||
$yearl = date('Y') . '-' . (date('Y') + 1);
|
$yearl = date('Y') . '-' . (date('Y') + 1);
|
||||||
} else {
|
} else {
|
||||||
$yearl = (date('Y') - 1) . '-' . date('Y');
|
$yearl = (date('Y') - 1) . '-' . date('Y');
|
||||||
}
|
}
|
||||||
echo $yearl;
|
|
||||||
?>
|
|
||||||
</i>)</p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="box-body">
|
?>
|
||||||
|
<style>
|
||||||
|
table {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative-Category-Wise (<?php echo $yearl; ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<?php
|
<?php
|
||||||
@ -73,11 +62,11 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -98,13 +87,16 @@ if(!empty($mms))
|
|||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
|
|
||||||
|
|
||||||
foreach($cum as $index=>$rel)
|
foreach ($cum as $index => $rel) {
|
||||||
{
|
|
||||||
$cat = $rel->category;
|
$cat = $rel->category;
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<!-- <td><span>
|
<!-- <td><span>
|
||||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php //echo $rel->sid;?>&ab=<?php //echo $ab;?>&mid=<?php //echo $rel->mid;?>"><?php //echo $rel->supplier_name;?></a>
|
<a href="<?= base_url() ?>report/link_purchase?sid=<?php //echo $rel->sid;
|
||||||
|
?>&ab=<?php //echo $ab;
|
||||||
|
?>&mid=<?php //echo $rel->mid;
|
||||||
|
?>"><?php //echo $rel->supplier_name;
|
||||||
|
?></a>
|
||||||
</span></td>-->
|
</span></td>-->
|
||||||
<td><span>
|
<td><span>
|
||||||
<a href="<?= base_url() ?>report/ilink_purchase?ab=<?php echo $ab; ?>&cat=<?php echo $rel->category; ?>"><?php echo $rel->category; ?></a>
|
<a href="<?= base_url() ?>report/ilink_purchase?ab=<?php echo $ab; ?>&cat=<?php echo $rel->category; ?>"><?php echo $rel->category; ?></a>
|
||||||
@ -157,60 +149,48 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $mqt;
|
echo $mqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($mvt, 2, '.', '');
|
echo number_format($mvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $yqt;
|
echo $yqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($yvt, 2, '.', '');
|
echo number_format($yvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -226,15 +206,15 @@ if(!empty($mms))
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -244,58 +224,37 @@ if(!empty($mms))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var vtxt_count = 0;
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
$('#cc').on('search.dt', function() {
|
// Initialize the DataTable
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
var vvalue = $('#cc_filter input').val();
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
|
|
||||||
if(vvalue !=''){
|
|
||||||
vtxt_count = 1;
|
|
||||||
}else{
|
|
||||||
vtxt_count = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
var Fm_qsum ="<?php echo json_encode($mqt)?>";
|
|
||||||
var Fd_qsum= "<?php echo json_encode($tqt)?>";
|
|
||||||
var Fd_valuesum="<?php echo json_encode($tvt)?>";
|
|
||||||
var Fm_valuesum= "<?php echo json_encode($mvt)?>";
|
|
||||||
var Fy_quty="<?php echo json_encode($yqt)?>";
|
|
||||||
var Fyear_value = "<?php echo json_encode($yvt)?>";
|
|
||||||
|
|
||||||
console.log(Fm_qsum);
|
|
||||||
|
|
||||||
|
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
],
|
||||||
extend: 'excelHtml5',
|
pageLength: 10, // Default rows per page
|
||||||
footer: 'true',
|
lengthMenu: [
|
||||||
//messageTop: $('h3').text(),
|
[10, 20, 30, 50, -1],
|
||||||
title: $('h3').text(),
|
[10, 20, 30, 50, "All"]
|
||||||
exportOptions: {
|
], // Rows per page options
|
||||||
columns: ':visible'
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
|
});
|
||||||
'colvis'
|
</script>
|
||||||
],
|
|
||||||
|
|
||||||
|
<!--
|
||||||
"footerCallback": function ( row, data, start, end, display )
|
"footerCallback": function ( row, data, start, end, display )
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -373,21 +332,4 @@ console.log(Fm_qsum);
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
-->
|
||||||
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,60 +1,47 @@
|
|||||||
|
<!-- Report_cumulative_year_inward -->
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.dataTables_filter {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative Year - Inward</b>(<i>
|
|
||||||
<?php
|
<?php
|
||||||
if (date('m') >= 4) {
|
if (date('m') >= 4) {
|
||||||
$yearl = date('Y') . '-' . (date('Y') + 1);
|
$yearl = date('Y') . '-' . (date('Y') + 1);
|
||||||
} else {
|
} else {
|
||||||
$yearl = (date('Y') - 1) . '-' . date('Y');
|
$yearl = (date('Y') - 1) . '-' . date('Y');
|
||||||
}
|
}
|
||||||
echo $yearl;
|
$yearl;
|
||||||
?>
|
?>
|
||||||
</i>)</p></h3></center>
|
<style>
|
||||||
</div>
|
table {
|
||||||
<!-- /.box-header -->
|
width: auto;
|
||||||
|
}
|
||||||
<div class="box-body">
|
</style>
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative Year (<?php echo $yearl; ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -72,7 +59,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -88,8 +75,7 @@ if(!empty($mms))
|
|||||||
$yearl = (date('Y') - 1) . '-' . date('Y');
|
$yearl = (date('Y') - 1) . '-' . date('Y');
|
||||||
}
|
}
|
||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
foreach($cum_year as $rel)
|
foreach ($cum_year as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -115,10 +101,8 @@ if(!empty($mms))
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -126,20 +110,16 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -156,15 +136,16 @@ if(!empty($mms))
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -173,78 +154,62 @@ if(!empty($mms))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
// Initialize the DataTable
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 2, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
// "footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
// var api = this.api(), data;
|
||||||
|
|
||||||
|
// // Remove the formatting to get integer data for summation
|
||||||
|
// var intVal = function ( i ) {
|
||||||
|
// return typeof i === 'string' ?
|
||||||
|
// parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
// typeof i === 'number' ?
|
||||||
|
// parseFloat(i) : 0;
|
||||||
|
// };
|
||||||
|
|
||||||
|
// TotalQTY = api
|
||||||
|
// .column( 2, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
// TotalVALUE = api
|
||||||
|
// .column( 3, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
</script>
|
||||||
@ -1,52 +1,47 @@
|
|||||||
|
<!-- Report_cumulative_year_raw -->
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.dataTables_filter {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cumulative Year-Category-Wise</b>(<i>
|
|
||||||
<?php
|
<?php
|
||||||
if (date('m') >= 4) {
|
if (date('m') >= 4) {
|
||||||
$yearl = date('Y') . '-' . (date('Y') + 1);
|
$yearl = date('Y') . '-' . (date('Y') + 1);
|
||||||
} else {
|
} else {
|
||||||
$yearl = (date('Y') - 1) . '-' . date('Y');
|
$yearl = (date('Y') - 1) . '-' . date('Y');
|
||||||
}
|
}
|
||||||
echo $yearl;
|
$yearl;
|
||||||
?>
|
?>
|
||||||
</i>)</p></h3></center>
|
<style>
|
||||||
</div>
|
table {
|
||||||
<!-- /.box-header -->
|
width: auto;
|
||||||
|
}
|
||||||
<div class="box-body">
|
</style>
|
||||||
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Cumulative Year-Category-Wise (<?php echo $yearl; ?>) </b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -81,8 +76,7 @@
|
|||||||
$yearl = (date('Y') - 1) . '-' . date('Y');
|
$yearl = (date('Y') - 1) . '-' . date('Y');
|
||||||
}
|
}
|
||||||
$ab = $yearl;
|
$ab = $yearl;
|
||||||
foreach($cum_year as $rel)
|
foreach ($cum_year as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span><?php echo $rel->category; ?></span></td>
|
<td><span><?php echo $rel->category; ?></span></td>
|
||||||
@ -109,40 +103,32 @@
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td style="text-align:right"><strong>
|
<td style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo '';
|
echo '';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tqt;
|
echo $tqt;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tvt, 2, '.', '');
|
echo number_format($tvt, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -159,95 +145,79 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 3, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
// "footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
// var api = this.api(), data;
|
||||||
|
|
||||||
|
// // Remove the formatting to get integer data for summation
|
||||||
|
// var intVal = function ( i ) {
|
||||||
|
// return typeof i === 'string' ?
|
||||||
|
// parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
// typeof i === 'number' ?
|
||||||
|
// parseFloat(i) : 0;
|
||||||
|
// };
|
||||||
|
|
||||||
|
// TotalQTY = api
|
||||||
|
// .column( 2, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
// TotalVALUE = api
|
||||||
|
// .column( 3, { search:'applied' } )
|
||||||
|
// .data()
|
||||||
|
// .reduce( function (a, b) {
|
||||||
|
// return intVal(a) + intVal(b);
|
||||||
|
// }, 0 );
|
||||||
|
|
||||||
|
// $( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
</script>
|
||||||
@ -1,51 +1,41 @@
|
|||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<!-- Report_month_wise_inward.php -->
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {
|
table {
|
||||||
padding: 4px;
|
width: auto;
|
||||||
}
|
|
||||||
|
|
||||||
.dataTables_filter {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;
|
|
||||||
;
|
|
||||||
border-color: #00d976;
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
<div class="content-page">
|
||||||
<div class="row" style="min-height: 600px;">
|
<div class="content">
|
||||||
<!-- Left col -->
|
<!-- Start Content-->
|
||||||
<div class="col-md-12">
|
<div class="container-fluid">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- start page title -->
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center>
|
|
||||||
<h3 class="box-title">
|
|
||||||
<p style="color: #00d976;"><b>Report - Month-wise-Inward(<?php echo $mont; ?>)</b></p>
|
|
||||||
</h3>
|
|
||||||
</center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Month-wise ( <?php echo $mont; ?> )
|
||||||
|
</b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -53,16 +43,14 @@
|
|||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (₹)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (!empty($month)) {
|
<?php if (!empty($month)) {
|
||||||
$tr3 = 0;
|
$tr3 = 0;
|
||||||
$tr4 = 0;
|
$tr4 = 0;
|
||||||
$ab = $this->input->get('ab');
|
$ab = isset($_GET['ab']) ? $_GET['ab'] : '';
|
||||||
$last = $this->input->get('dat');
|
$last = isset($_GET['dat']) ? $_GET['dat'] : '';
|
||||||
$new = date("F", strtotime($last)) . "\n";
|
$new = date("F", strtotime($last)) . "\n";
|
||||||
foreach ($month as $rel) {
|
foreach ($month as $rel) {
|
||||||
?>
|
?>
|
||||||
@ -118,14 +106,14 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -134,78 +122,33 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable({
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
,
|
pageLength: 10, // Default rows per page
|
||||||
"footerCallback": function(row, data, start, end, display) {
|
lengthMenu: [
|
||||||
var api = this.api(),
|
[10, 20, 30, 50, -1],
|
||||||
data;
|
[10, 20, 30, 50, "All"]
|
||||||
|
], // Rows per page options
|
||||||
// Remove the formatting to get integer data for summation
|
responsive: true, // Responsive table
|
||||||
var intVal = function(i) {
|
ordering: false,
|
||||||
return typeof i === 'string' ?
|
language: {
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g, "") * 1) :
|
paginate: {
|
||||||
typeof i === 'number' ?
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
parseFloat(i) : 0;
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
};
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
TotalQTY = api
|
|
||||||
.column(2, {
|
|
||||||
search: 'applied'
|
|
||||||
})
|
|
||||||
.data()
|
|
||||||
.reduce(function(a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0);
|
|
||||||
|
|
||||||
$(api.column(2).footer()).html(TotalQTY.toFixed().bold());
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column(3, {
|
|
||||||
search: 'applied'
|
|
||||||
})
|
|
||||||
.data()
|
|
||||||
.reduce(function(a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0);
|
|
||||||
|
|
||||||
$(api.column(3).footer()).html(TotalVALUE.toFixed(2).bold());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change', function() {
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
@ -244,9 +187,4 @@
|
|||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function Reset() {
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
@ -1,120 +1,74 @@
|
|||||||
|
<!-- Report_purchase_inward.php -->
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
$("#item_name").select2();
|
$("#item_name").select2();
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
th, td { white-space: nowrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
|
|
||||||
}
|
|
||||||
#cc_info{
|
|
||||||
width: 250%;
|
|
||||||
}
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
|
||||||
table.dataTable thead > tr > th.sorting,
|
|
||||||
table.dataTable thead > tr > td.sorting_asc,
|
|
||||||
table.dataTable thead > tr > td.sorting_desc,
|
|
||||||
table.dataTable thead > tr > td.sorting {
|
|
||||||
padding-right: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Inward Details</b><br><br>
|
|
||||||
<?php
|
|
||||||
if($this->input->post('client_name')){
|
|
||||||
$cl=$this->input->post('client_name');
|
|
||||||
echo $cl;
|
|
||||||
echo ' '.' ';
|
|
||||||
}
|
|
||||||
if($this->input->post('item_name')){
|
|
||||||
$it=$this->input->post('item_name');
|
|
||||||
echo $it;
|
|
||||||
echo ' '.' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
$t = $this->input->post('to_date');
|
<li class="breadcrumb-item active">
|
||||||
echo $frm.'-to-'.$t;
|
<h4 class="page-title"><b>Inward Details</b></h4>
|
||||||
}
|
</li>
|
||||||
|
</ol>
|
||||||
?></p></h3></center>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url("Report_purchase_inward"); ?>">
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Supplier'; ?>
|
<?php echo 'Supplier'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($cust as $item):
|
foreach ($cust as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option
|
||||||
|
<?php if (isset($client_name) && ($client_name == $item->SupplierName)) {
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
echo 'selected';
|
||||||
|
} ?>
|
||||||
|
value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
@ -126,14 +80,16 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($material as $it):
|
foreach ($material as $it): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $it->MaterialName; ?>"
|
||||||
|
<?php if (isset($item_name) && ($item_name == $it->MaterialName)) {
|
||||||
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
|
echo 'selected';
|
||||||
|
} ?>><?php echo $it->MaterialName; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -148,15 +104,15 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -167,104 +123,88 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<option value="January" <?php if (isset($month) && ($month == "January")) {
|
||||||
<option value="February">February</option>
|
echo 'selected';
|
||||||
<option value="March">March</option>
|
} ?>>January</option>
|
||||||
<option value="April">April</option>
|
<option value="February" <?php if (isset($month) && ($month == "February")) {
|
||||||
<option value="May">May</option>
|
echo 'selected';
|
||||||
<option value="June">June</option>
|
} ?>>February</option>
|
||||||
<option value="July">July</option>
|
<option value="March" <?php if (isset($month) && ($month == "March")) {
|
||||||
<option value="August">August</option>
|
echo 'selected';
|
||||||
<option value="September">September</option>
|
} ?>>March</option>
|
||||||
<option value="October">October</option>
|
<option value="April" <?php if (isset($month) && ($month == "April")) {
|
||||||
<option value="November">November</option>
|
echo 'selected';
|
||||||
<option value="December">December</option>
|
} ?>>April</option>
|
||||||
|
<option value="May" <?php if (isset($month) && ($month == "May")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>May</option>
|
||||||
|
<option value="June" <?php if (isset($month) && ($month == "June")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>June</option>
|
||||||
|
<option value="July" <?php if (isset($month) && ($month == "July")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>July</option>
|
||||||
|
<option value="August" <?php if (isset($month) && ($month == "August")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>August</option>
|
||||||
|
<option value="September" <?php if (isset($month) && ($month == "September")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>September</option>
|
||||||
|
<option value="October" <?php if (isset($month) && ($month == "October")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>October</option>
|
||||||
|
<option value="November" <?php if (isset($month) && ($month == "November")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>November</option>
|
||||||
|
<option value="December" <?php if (isset($month) && ($month == "December")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>December</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
</div>
|
||||||
|
<div class="row mt-2">
|
||||||
|
<div class="col-md-2 ">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input name="from_date" id="max-date" class="form-control" autocomplete="off" value="<?php if (isset($from_date)) {
|
||||||
<span class="input-group-addon">
|
echo $from_date;
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
} ?>">
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
|
||||||
<div class="col-md-4">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker" autocomplete="off" value="<?php if (isset($to_date)) {
|
||||||
<span class="input-group-addon">
|
echo $to_date;
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
} ?>">
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-2"> <br>
|
<div class="col-md-8 mt-2 text-right">
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="button" class="btn btn-danger" value="Reset" onclick="window.location.href='<?= base_url('Report_purchase_inward') ?>';">
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success ml-2" name="btn_submit" value="View Report">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="modal fade" id="Fileshow" role="dialog">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<!-- Modal content-->
|
|
||||||
<form>
|
|
||||||
<div class="modal-content" style="width:800px;">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Table to show the line item of po -->
|
|
||||||
<div id="content" > </div>
|
|
||||||
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
|
|
||||||
<!-- <thead style="background-color:#ffffff;"> -->
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>SNo</th>
|
|
||||||
<th>BillNO</th>
|
|
||||||
<th>PONO</th>
|
|
||||||
<th>FileName</th>
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody id="tbleAppend1">
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div class="modal-footer">
|
|
||||||
<a class="btn btn-success" data-dismiss="modal" value="Cancel">Cancel</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<span style="color:red;">*Insurance field not included </span>
|
<span style="color:red;">*Insurance field not included </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="cc" class="table table-bordered" cellspacing="0" style="font-size:12px !important;">
|
<table id="cc" class="table table-bordered" cellspacing="0" style="font-size:12px !important;">
|
||||||
<thead>
|
<thead>
|
||||||
@ -288,7 +228,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<th>Freight (₹)</th>
|
<th>Freight (₹)</th>
|
||||||
<th>Package (₹)</th>
|
<th>Package (₹)</th>
|
||||||
<th>Total (₹)</th>
|
<th>Total (₹)</th>
|
||||||
<th>Attachments</th>
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -333,7 +273,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
$tot_value = $tot_value + $rel->value;
|
$tot_value = $tot_value + $rel->value;
|
||||||
echo $rel->value; ?></span></td>
|
echo $rel->value; ?></span></td>
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tot_ex= $tot_ex + $rel->exchange_rate;
|
$tot_ex = $tot_ex + (int)$rel->exchange_rate;
|
||||||
echo $rel->exchange_rate; ?></span></td>
|
echo $rel->exchange_rate; ?></span></td>
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tot_SCGT = $tot_SCGT + $rel->sgst;
|
$tot_SCGT = $tot_SCGT + $rel->sgst;
|
||||||
@ -353,88 +293,15 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tot_pac = $tot_pac + $rel->Package;
|
$tot_pac = $tot_pac + $rel->Package;
|
||||||
echo $rel->Package; ?></span></td>
|
echo $rel->Package; ?></span></td>
|
||||||
|
|
||||||
|
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tot_tot = $tot_tot + round($rel->total, 2);
|
$tot_tot = $tot_tot + round($rel->total, 2);
|
||||||
echo number_format($rel->total, 2, '.', '');
|
echo number_format($rel->total, 2, '.', '');
|
||||||
?></span></td>
|
?></span></td>
|
||||||
|
|
||||||
|
|
||||||
<td id="download<?php echo $key?>" style="text-align:center"><span>
|
|
||||||
<?php
|
|
||||||
if(!empty($rel->file)){ ?><!-- if for Inward po file -->
|
|
||||||
<a target="_blank" class="yourlink" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button class="btn btn-info btn-sm splpofile" id="<?php echo $rel->igrn.'-'.$rel->pono;?>">Download</button></a>
|
|
||||||
<?php }
|
|
||||||
else if(!empty($rel->ifile )) { ?><!-- else if for igr file -->
|
|
||||||
<a target="_blank" class="yourlink" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View">
|
|
||||||
<button class="btn btn-info btn-sm IGRfile" id="<?php echo $rel->igrn.'-'.$rel->pono;?>">Download</button>
|
|
||||||
</a>
|
|
||||||
<?php } else if (!empty($rel->Infiles)){ ?><!-- if for Inward po file -->
|
|
||||||
<a target="_blank" class="yourlink" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button class="btn btn-info btn-sm IGRfile" id="<?php echo $rel->igrn.'-'.$rel->pono;?>">Download</button></a>
|
|
||||||
<?php } else { echo 'N/A'; } ?><!-- both inwardpo file and Igr file empty means -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</span></td>
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}}
|
}
|
||||||
?>
|
|
||||||
<?php if(!empty($cashbookdatas)){
|
|
||||||
foreach($cashbookdatas as $cb)
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left"><span><?php echo $cb->AccountCode;?></span></td>
|
|
||||||
<td style="text-align:center"><span><?php echo $cb->CreatedDate;?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:center"><span><?php echo $cb->Date;?></span></td>
|
|
||||||
<td><span><?php echo $cb->AccountName;?></span></td>
|
|
||||||
<td><span><?php echo $cb->type.'-'.$cb->category;?></span></td>
|
|
||||||
<td><span><?php echo $cb->Suppliername;?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:left"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php
|
|
||||||
$tot_value= $tot_value + $cb->Value;
|
|
||||||
echo $cb->Value;?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php
|
|
||||||
$tot_SCGT= $tot_SCGT + $cb->sgst;
|
|
||||||
echo $cb->sgst;?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php
|
|
||||||
$tot_CGST= $tot_CGST + $cb->cgst;
|
|
||||||
echo $cb->cgst;?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php
|
|
||||||
$tot_ICGT= $tot_ICGT + $cb->igst;
|
|
||||||
echo $cb->igst;?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<td style="text-align:right"><span><?php echo '-';?></span></td>
|
|
||||||
<!-- <td style="text-align:right"><span>
|
|
||||||
//$tot_tot= $tot_tot + round($cb->Total,2);
|
|
||||||
//echo number_format($cb->Total,2,'.','');
|
|
||||||
</span></td> -->
|
|
||||||
<td style="text-align:right"><span><?php
|
|
||||||
$tot_tot= $tot_tot + round($cb->Total,2);
|
|
||||||
echo number_format($cb->Total,2,'.','');?></span></td>
|
|
||||||
|
|
||||||
<td style="text-align:center"><span>
|
|
||||||
<?php
|
|
||||||
if(!empty($cb->cashbookfile)){ ?>
|
|
||||||
<a target="_blank" href="<?php echo base_url().''. $cb->cashbookfile ?>" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button>File Available</button></a>
|
|
||||||
<?php }else
|
|
||||||
{
|
|
||||||
echo 'N/A';
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</span></td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<?php } } ?>
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
@ -451,57 +318,68 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</strong></td>
|
</strong></td>
|
||||||
|
|
||||||
<td class="amount"><strong>
|
<td class="amount"><strong>
|
||||||
<?php //echo format_currency($tot_rate,2,'.',''); ?>
|
<?php //echo format_currency($tot_rate,2,'.','');
|
||||||
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
|
|
||||||
<td class="amount"><strong>
|
<td class="amount"><strong>
|
||||||
<?php //echo format_currency($tot_rate,2,'.',''); ?>
|
<?php //echo format_currency($tot_rate,2,'.','');
|
||||||
|
?>
|
||||||
</strong></td>
|
</strong></td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_value, 2, '.', ''); ?>
|
<?php echo number_format($tot_value, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo $tot_ex; ?>
|
<?php echo $tot_ex; ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_SCGT, 2, '.', ''); ?>
|
<?php echo number_format($tot_SCGT, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_CGST, 2, '.', ''); ?>
|
<?php echo number_format($tot_CGST, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_ICGT, 2, '.', ''); ?>
|
<?php echo number_format($tot_ICGT, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_dis, 2, '.', ''); ?>
|
<?php echo number_format($tot_dis, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_frg, 2, '.', ''); ?>
|
<?php echo number_format($tot_frg, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_pac, 2, '.', ''); ?>
|
<?php echo number_format($tot_pac, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php echo number_format($tot_tot, 2, '.', ''); ?>
|
<?php echo number_format($tot_tot, 2, '.', ''); ?>
|
||||||
</strong></td>
|
</strong>
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
@ -509,312 +387,49 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
|
||||||
/** On click for Displaying File MOdal***/
|
|
||||||
$('.splpofile').click(function() {
|
|
||||||
var id = $(this).attr('id');
|
|
||||||
|
|
||||||
$("#Fileshow").modal("show");
|
// Initialize the DataTable
|
||||||
$.ajax({
|
var table = $('#cc').DataTable({
|
||||||
data:{id:id},
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
type:"POST",
|
|
||||||
url:"<?php echo base_url() ?>report/Viewfiles",
|
|
||||||
success: function(data){
|
|
||||||
|
|
||||||
var trHTML = '';
|
|
||||||
|
|
||||||
$.each($.parseJSON(data), function (i, item) {
|
|
||||||
|
|
||||||
i=i+1;
|
|
||||||
trHTML += '<tr>' +
|
|
||||||
'<td align="right">' + i + '</td>' +
|
|
||||||
'<td>' + item.BillNo+ '</td>' +
|
|
||||||
'<td>' + item.PONO+ '</td>' +
|
|
||||||
'<td><a target="_blank" href = <?php echo base_url()?>public/uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
|
||||||
'</tr>';
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#tbleAppend1").empty();
|
|
||||||
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});//onclick function closed
|
|
||||||
|
|
||||||
|
|
||||||
$('.IGRfile').click(function() {
|
|
||||||
var id = $(this).attr('id');
|
|
||||||
|
|
||||||
var igr = id.substring(0, 9);
|
|
||||||
//alert(igr);
|
|
||||||
var po = id.substring(10, 33);
|
|
||||||
|
|
||||||
$("#Fileshow").modal("show");
|
|
||||||
$.ajax({
|
|
||||||
|
|
||||||
data:{id:igr,id1:po},
|
|
||||||
type:"POST",
|
|
||||||
url:"<?php echo base_url() ?>report/Viewnormaligrfiles",
|
|
||||||
success: function(data){
|
|
||||||
|
|
||||||
var trHTML = '';
|
|
||||||
|
|
||||||
var trHTML = '';
|
|
||||||
var FilePath ='';
|
|
||||||
var Filename = '';
|
|
||||||
var PONO ='';
|
|
||||||
var BillNO ='';
|
|
||||||
$.each($.parseJSON(data), function (i, item) {
|
|
||||||
|
|
||||||
if(item.file == null)
|
|
||||||
{ if(item.Remarks ==null)
|
|
||||||
{
|
|
||||||
//alert()
|
|
||||||
PONO =item.PONO;
|
|
||||||
BillNO =item.BillNo;
|
|
||||||
Filename =item.FilePath;
|
|
||||||
FilePath = "<?php echo base_url()?>public/uploads/Igrfiles/"+item.FilePath;
|
|
||||||
}else{
|
|
||||||
Filename ="BillDetails";
|
|
||||||
PONO =item.PONO;
|
|
||||||
BillNO =item.BillNo;
|
|
||||||
FilePath = item.FilePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
|
||||||
Filename = item.file;
|
|
||||||
PONO =item.pono;
|
|
||||||
BillNO = '-';
|
|
||||||
|
|
||||||
FilePath =item.file;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// i=i+1;
|
|
||||||
// trHTML += '<tr>' +
|
|
||||||
// '<td align="right">' + i + '</td>' +
|
|
||||||
// '<td>' + item.BillNo+ '</td>' +
|
|
||||||
// '<td>' + item.PONO+ '</td>' +
|
|
||||||
// '<td><a target="_blank" href = <?php echo base_url()?>public/uploads/Igrfiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
|
||||||
// '</tr>';
|
|
||||||
|
|
||||||
if(Filename != null)
|
|
||||||
{
|
|
||||||
i=i+1;
|
|
||||||
trHTML += '<tr id='+i+'>' +
|
|
||||||
'<td align="right">' + i + '</td>' +
|
|
||||||
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
|
||||||
'<td>' + PONO+ '</td>' +
|
|
||||||
|
|
||||||
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
|
||||||
|
|
||||||
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
|
||||||
'</tr>';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#tbleAppend1").empty();
|
|
||||||
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});// onclick function innormal igrfiles
|
|
||||||
|
|
||||||
/******************** Datatable codes starts here **************************/
|
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
|
||||||
},
|
|
||||||
"aaSorting": [[ 3, "desc" ]],
|
|
||||||
"autoWidth": false,
|
|
||||||
orderCellsTop: true,
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +"<'row'<'col-md-6'><'col-md-6'>>" +"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
'excel' // Export buttons
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
messageTop: 'Report Purchase-Inward',
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalQTY = api
|
},
|
||||||
.column( 7, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 7 ).footer() ).html( TotalQTY );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 10, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
console.log(parseFloat(TotalVALUE));
|
|
||||||
$( api.column( 10 ).footer() ).html( TotalVALUE.toFixed(2) );
|
|
||||||
|
|
||||||
TotalExRATE = api
|
|
||||||
.column( 11, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 11 ).footer() ).html( TotalExRATE.toFixed(2) );
|
|
||||||
|
|
||||||
TotalSGST = api
|
|
||||||
.column( 12, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 12 ).footer() ).html( TotalSGST.toFixed(2) );
|
|
||||||
|
|
||||||
TotalCGST = api
|
|
||||||
.column( 13, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 13 ).footer() ).html( TotalCGST.toFixed(2) );
|
|
||||||
|
|
||||||
TotalIGST = api
|
|
||||||
.column( 14, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 14 ).footer() ).html( TotalIGST.toFixed(2) );
|
|
||||||
|
|
||||||
TotalDISCOUNT = api
|
|
||||||
.column( 15, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 15 ).footer() ).html( TotalDISCOUNT.toFixed(2) );
|
|
||||||
|
|
||||||
TotalFRIGEHT = api
|
|
||||||
.column( 16, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 16 ).footer() ).html( TotalFRIGEHT.toFixed(2) );
|
|
||||||
|
|
||||||
TotalPACKAGE = api
|
|
||||||
.column( 17, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 17 ).footer() ).html( TotalPACKAGE.toFixed(2) );
|
|
||||||
|
|
||||||
FinalTotal = api
|
|
||||||
.column( 18, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 18 ).footer() ).html( FinalTotal.toFixed(2) );
|
|
||||||
}
|
|
||||||
|
|
||||||
} );
|
|
||||||
|
|
||||||
} ); //on ready function Closed
|
|
||||||
|
|
||||||
/** jquery on ready for DataPicker. */
|
|
||||||
$( function() {
|
|
||||||
//var dateFormat = "mm/dd/yy",
|
|
||||||
from = $( "#min-date" )
|
|
||||||
.datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
to.datepicker("option", "minDate", getDate( this ) );
|
|
||||||
}),
|
|
||||||
to = $( "#max-date" ).datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
||||||
});
|
|
||||||
|
|
||||||
function getDate( element ) {
|
|
||||||
var date;
|
|
||||||
|
|
||||||
try {
|
|
||||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
|
||||||
|
|
||||||
} catch( error ) {
|
|
||||||
date = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return date;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -1,186 +1,182 @@
|
|||||||
|
<!-- Report_supplier_inward.php -->
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Supplier-Inward</b><br><br>
|
|
||||||
<?php
|
|
||||||
if($this->input->post('client_name')){
|
|
||||||
$cl=$this->input->post('client_name');
|
|
||||||
echo $cl;
|
|
||||||
echo ' '.' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
$t = $this->input->post('to_date');
|
<li class="breadcrumb-item active">
|
||||||
echo $frm.'to'.$t;
|
<h4 class="page-title"><b>Supplier-Wise
|
||||||
}
|
</b></h4>
|
||||||
|
</li>
|
||||||
?></p></h3></center>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url('Report_supplier_inward'); ?>">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<div class="col-md-2">
|
<div class="row">
|
||||||
|
<div class="col-4">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<select class="form-control" id="client_name" name="client_name" required="true">
|
|
||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($cust as $item):
|
foreach ($cust as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option
|
||||||
|
<?php if (isset($client_name) && ($client_name == $item->SupplierName)) {
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
echo 'selected';
|
||||||
|
} ?>
|
||||||
|
value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-4">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-4">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<option value="January" <?php if (isset($month) && ($month == "January")) {
|
||||||
<option value="February">February</option>
|
echo 'selected';
|
||||||
<option value="March">March</option>
|
} ?>>January</option>
|
||||||
<option value="April">April</option>
|
<option value="February" <?php if (isset($month) && ($month == "February")) {
|
||||||
<option value="May">May</option>
|
echo 'selected';
|
||||||
<option value="June">June</option>
|
} ?>>February</option>
|
||||||
<option value="July">July</option>
|
<option value="March" <?php if (isset($month) && ($month == "March")) {
|
||||||
<option value="August">August</option>
|
echo 'selected';
|
||||||
<option value="September">September</option>
|
} ?>>March</option>
|
||||||
<option value="October">October</option>
|
<option value="April" <?php if (isset($month) && ($month == "April")) {
|
||||||
<option value="November">November</option>
|
echo 'selected';
|
||||||
<option value="December">December</option>
|
} ?>>April</option>
|
||||||
|
<option value="May" <?php if (isset($month) && ($month == "May")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>May</option>
|
||||||
|
<option value="June" <?php if (isset($month) && ($month == "June")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>June</option>
|
||||||
|
<option value="July" <?php if (isset($month) && ($month == "July")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>July</option>
|
||||||
|
<option value="August" <?php if (isset($month) && ($month == "August")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>August</option>
|
||||||
|
<option value="September" <?php if (isset($month) && ($month == "September")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>September</option>
|
||||||
|
<option value="October" <?php if (isset($month) && ($month == "October")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>October</option>
|
||||||
|
<option value="November" <?php if (isset($month) && ($month == "November")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>November</option>
|
||||||
|
<option value="December" <?php if (isset($month) && ($month == "December")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>December</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
|
||||||
|
|
||||||
|
<div class="row mt-2">
|
||||||
|
<div class="col-2">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input name="from_date" id="max-date" class="form-control datepicker" autocomplete="off" value="<?php if (isset($from_date)) {
|
||||||
<span class="input-group-addon">
|
echo $from_date;
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
} ?>">
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker" autocomplete="off" value="<?php if (isset($to_date)) {
|
||||||
<span class="input-group-addon">
|
echo $to_date;
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
} ?>">
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 " ><br>
|
<div class="col-8 mt-2 text-right">
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_supplier_inward') ?>';">
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success m-2" name="btn_submit" value="View Report">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -188,8 +184,6 @@
|
|||||||
<th style="text-align:center">PO Count</th>
|
<th style="text-align:center">PO Count</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (₹)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -198,12 +192,11 @@
|
|||||||
$tot_qty = 0;
|
$tot_qty = 0;
|
||||||
$tot_value = 0;
|
$tot_value = 0;
|
||||||
$tot_tot = 0;
|
$tot_tot = 0;
|
||||||
$ab=$this->input->post('financialyear');
|
$ab = $financialyear;
|
||||||
$month=$this->input->post('month');
|
$month = $month;
|
||||||
$frm = $this->input->post('from_date');
|
$frm = $frm;
|
||||||
$t = $this->input->post('to_date');
|
$t = $t;
|
||||||
foreach($spurchse as $rel)
|
foreach ($spurchse as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -233,10 +226,8 @@
|
|||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right"><strong>
|
<td class="amount" style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tot_rate;
|
echo $tot_rate;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -244,20 +235,16 @@
|
|||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tot_qty;
|
echo $tot_qty;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tot_value, 2, '.', '');
|
echo number_format($tot_value, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -274,15 +261,17 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -292,129 +281,34 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
TotalPOCount = api
|
},
|
||||||
.column( 1, { search:'applied' } )
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$( function() {
|
|
||||||
//var dateFormat = "mm/dd/yy",
|
|
||||||
from = $( "#min-date" )
|
|
||||||
.datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
to.datepicker("option", "minDate", getDate( this ) );
|
|
||||||
}),
|
|
||||||
to = $( "#max-date" ).datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
||||||
});
|
|
||||||
|
|
||||||
function getDate( element ) {
|
|
||||||
var date;
|
|
||||||
|
|
||||||
try {
|
|
||||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
|
||||||
|
|
||||||
} catch( error ) {
|
|
||||||
date = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return date;
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,102 +1,53 @@
|
|||||||
|
<!-- Report_supplier_summary.php -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content"><br/>
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Supplier_Summary</b><br><br>
|
|
||||||
<?php
|
|
||||||
if($this->input->post('client_name')){
|
|
||||||
$cl=$this->input->post('client_name');
|
|
||||||
echo $cl;
|
|
||||||
echo ' '.' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item"><a href="javascript: void(0);"> Inward</a></li>
|
||||||
$t = $this->input->post('to_date');
|
<li class="breadcrumb-item active">
|
||||||
echo $frm.'to'.$t;
|
<h4 class="page-title"><b> Inward Summary
|
||||||
}
|
</b></h4>
|
||||||
|
</li>
|
||||||
?></p></h3></center>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<!-- <div class="col-md-2">
|
|
||||||
<label for="client_name">
|
|
||||||
<?php echo 'Supplier'; ?><span style="color:red;"> </span>
|
|
||||||
</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="client_name" name="client_name" >
|
|
||||||
<option value="">Select Supplier</option>
|
|
||||||
<?php
|
|
||||||
foreach($cust as $item):
|
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
@ -107,14 +58,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($finyear as $item):
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
<option value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -172,16 +122,12 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -202,8 +148,7 @@
|
|||||||
$month = $this->input->post('month');
|
$month = $this->input->post('month');
|
||||||
$frm = $this->input->post('from_date');
|
$frm = $this->input->post('from_date');
|
||||||
$t = $this->input->post('to_date');
|
$t = $this->input->post('to_date');
|
||||||
foreach($spurchse as $rel)
|
foreach ($spurchse as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -234,20 +179,16 @@
|
|||||||
|
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tot_qty;
|
echo $tot_qty;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tot_value, 2, '.', '');
|
echo number_format($tot_value, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -264,14 +205,17 @@
|
|||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -281,124 +225,33 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
],
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
pageLength: 10, // Default rows per page
|
||||||
var api = this.api(), data;
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
// Remove the formatting to get integer data for summation
|
[10, 20, 30, 50, "All"]
|
||||||
var intVal = function ( i ) {
|
], // Rows per page options
|
||||||
return typeof i === 'string' ?
|
responsive: true, // Responsive table
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
ordering: false,
|
||||||
typeof i === 'number' ?
|
language: {
|
||||||
parseFloat(i) : 0;
|
paginate: {
|
||||||
};
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 1, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(3)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$( function() {
|
|
||||||
//var dateFormat = "mm/dd/yy",
|
|
||||||
from = $( "#min-date" )
|
|
||||||
.datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
to.datepicker("option", "minDate", getDate( this ) );
|
|
||||||
}),
|
|
||||||
to = $( "#max-date" ).datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
||||||
});
|
|
||||||
|
|
||||||
function getDate( element ) {
|
|
||||||
var date;
|
|
||||||
|
|
||||||
try {
|
|
||||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
|
||||||
|
|
||||||
} catch( error ) {
|
|
||||||
date = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return date;
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,101 +1,104 @@
|
|||||||
|
<!-- Report_year_wise_inward.php -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Year-Wise-Inward</b><br><br>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
|
<div class="row">
|
||||||
?></p></h3></center>
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Year-Wise
|
||||||
|
</b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6 col-md-offset-3">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<center>
|
<div class="card-body">
|
||||||
<div class="panel-body">
|
|
||||||
<form method="post" action=" ">
|
<form method="post" action="<?php echo base_url('Report_year_wise_inward'); ?>">
|
||||||
<div class="col-md-8">
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">
|
||||||
|
<label for="financialyear">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($finyear as $item):
|
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
foreach ($finyear as $item): { ?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-8 text-right">
|
||||||
|
<input type="button" class="btn btn-danger" value="Reset" onclick="window.location.href='<?= base_url('Report_year_wise_inward') ?>';">
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success ml-2" name="btn_submit" value="View Report">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</select></div>
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
|
||||||
value="View Report"></div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
<div class="form-group has-feedback"></div>
|
||||||
</center>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if(!empty($year)){
|
|
||||||
?>
|
<div class="table-responsive">
|
||||||
<div class="box-body">
|
<table class="table table-bordered table-hover" id="cc">
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Month-Year</th>
|
<th style="text-align:center">Month-Year</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (₹)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$tr3 = 0;
|
$tr3 = 0;
|
||||||
$tr4 = 00;
|
$tr4 = 00;
|
||||||
foreach($year as $rel)
|
if (!empty($year)) {
|
||||||
{
|
foreach ($year as $rel) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -104,7 +107,7 @@
|
|||||||
$da = strtotime($rel->materialrcvddate);
|
$da = strtotime($rel->materialrcvddate);
|
||||||
$new = date('M-y', $da);
|
$new = date('M-y', $da);
|
||||||
$pass = date('Y-m-d', $da);
|
$pass = date('Y-m-d', $da);
|
||||||
$ab=$this->input->post('financialyear');
|
$ab = $financialyear;
|
||||||
//echo $rel->CreatedDate;
|
//echo $rel->CreatedDate;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -122,12 +125,14 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<?php if (!empty($year)) { ?>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong><?php
|
<td style="text-align:center;"><strong><?php
|
||||||
$ab=$this->input->post('financialyear');
|
$ab = isset($financialyear) ? $financialyear : '';
|
||||||
$Total = "Total";
|
$Total = "Total";
|
||||||
echo anchor('report/iyear_wise_total/' . $ab, $Total); ?></strong>
|
echo anchor('report/iyear_wise_total/' . $ab, $Total); ?></strong>
|
||||||
|
|
||||||
@ -136,20 +141,16 @@
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo round($tr3);
|
echo round($tr3);
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tr4, 2, '.', '');
|
echo number_format($tr4, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -159,21 +160,19 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
<?php } ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -182,9 +181,8 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
||||||
"date-range-pre": function(a) {
|
"date-range-pre": function(a) {
|
||||||
var monthArr = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
var monthArr = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
||||||
@ -197,80 +195,30 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|||||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Bootstrap datepicker
|
|
||||||
// Set up your table
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
"emptyTable":"<center> Data Not Found ! </center>"
|
// Initialize the DataTable
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
{
|
],
|
||||||
extend: 'excelHtml5',
|
pageLength: 10, // Default rows per page
|
||||||
footer: 'true',
|
lengthMenu: [
|
||||||
//messageTop: $('h3').text(),
|
[10, 20, 30, 50, -1],
|
||||||
title: $('h3').text(),
|
[10, 20, 30, 50, "All"]
|
||||||
exportOptions: {
|
], // Rows per page options
|
||||||
columns: ':visible'
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
}
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
},
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
columnDefs: [
|
|
||||||
{ type: 'date-range', targets: 0 }
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 1, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,44 +1,51 @@
|
|||||||
|
<!-- Report_year_wise_total_inward.php -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
<div class="content-page">
|
||||||
<div class="row" style="min-height: 600px;">
|
<div class="content">
|
||||||
<!-- Left col -->
|
<!-- Start Content-->
|
||||||
<div class="col-md-12">
|
<div class="container-fluid">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- start page title -->
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Year-wise-Total(<?php echo $year; ?>)</b></p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
<div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Year-wise-Total ( <?php echo $year; ?> )
|
||||||
|
</b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -46,18 +53,15 @@
|
|||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (₹)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if (!empty($ytotal)) {
|
<?php if (!empty($ytotal)) {
|
||||||
$tr3 = 0;
|
$tr3 = 0;
|
||||||
$tr4 = 0;
|
$tr4 = 0;
|
||||||
$last = $this->uri->total_segments();
|
|
||||||
$ab=$this->uri->segment($last);
|
$ab = $year;
|
||||||
foreach($ytotal as $rel)
|
foreach ($ytotal as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
@ -87,20 +91,16 @@
|
|||||||
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo round($tr3);
|
echo round($tr3);
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo number_format($tr4, 2, '.', '');
|
echo number_format($tr4, 2, '.', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -117,14 +117,14 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -133,74 +133,20 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
||||||
|
"date-range-pre": function(a) {
|
||||||
// Bootstrap datepicker
|
var monthArr = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
||||||
// Set up your table
|
return monthArr.indexOf(a);
|
||||||
$(document).ready(function() {
|
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
|
||||||
},
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"date-range-asc": function(a, b) {
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
|
||||||
|
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
"date-range-desc": function(a, b) {
|
||||||
'colvis'
|
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
@ -240,13 +186,29 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function Reset()
|
$(document).ready(function() {
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||||
|
// Initialize the DataTable
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
|
buttons: [
|
||||||
|
'excel' // Export buttons
|
||||||
|
],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
|
], // Rows per page options
|
||||||
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
},
|
||||||
|
emptyTable: '<div style="text-align:center;">Data Not Found!</div>'
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,133 +1,145 @@
|
|||||||
|
<!-- deliver_perform.php -->
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#financialyear").select2();
|
||||||
|
$("#month").select2();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
table {
|
||||||
.dataTables_filter {
|
width: auto;
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
.col-md-offset-1 {
|
|
||||||
margin-left: 2.333333%;
|
|
||||||
|
|
||||||
padding-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Delivery Performance</b><br>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Report</a></li>
|
||||||
?>
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Inward</a></li>
|
||||||
</p></h3></center>
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Delivery Performance
|
||||||
|
<?php echo isset($month) ? '(' . $month . ')' : ''; ?>
|
||||||
|
<?php echo isset($financialyear) ? '(' . $financialyear . ')' : ''; ?>
|
||||||
|
</b></h4>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
</div>
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url("DeliveryPerformance"); ?>">
|
||||||
|
<div class="form-group">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3">
|
||||||
<div class="col-md-2">
|
<label for="financialyear">
|
||||||
<label for="to_date">
|
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
foreach($fy as $item):
|
foreach ($fy as $item): { ?>
|
||||||
|
|
||||||
{?>
|
<option value="<?php echo $item->financial_year; ?>" <?php if (isset($financialyear) && ($financialyear == $item->financial_year)) {
|
||||||
|
echo 'selected';
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
} ?>><?php echo $item->financial_year; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
<div class="col-3">
|
||||||
<label for="to_date">
|
<label for="month">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<option value="January" <?php if (isset($month) && ($month == "January")) {
|
||||||
<option value="February">February</option>
|
echo 'selected';
|
||||||
<option value="March">March</option>
|
} ?>>January</option>
|
||||||
<option value="April">April</option>
|
<option value="February" <?php if (isset($month) && ($month == "February")) {
|
||||||
<option value="May">May</option>
|
echo 'selected';
|
||||||
<option value="June">June</option>
|
} ?>>February</option>
|
||||||
<option value="July">July</option>
|
<option value="March" <?php if (isset($month) && ($month == "March")) {
|
||||||
<option value="August">August</option>
|
echo 'selected';
|
||||||
<option value="September">September</option>
|
} ?>>March</option>
|
||||||
<option value="October">October</option>
|
<option value="April" <?php if (isset($month) && ($month == "April")) {
|
||||||
<option value="November">November</option>
|
echo 'selected';
|
||||||
<option value="December">December</option>
|
} ?>>April</option>
|
||||||
|
<option value="May" <?php if (isset($month) && ($month == "May")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>May</option>
|
||||||
|
<option value="June" <?php if (isset($month) && ($month == "June")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>June</option>
|
||||||
|
<option value="July" <?php if (isset($month) && ($month == "July")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>July</option>
|
||||||
|
<option value="August" <?php if (isset($month) && ($month == "August")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>August</option>
|
||||||
|
<option value="September" <?php if (isset($month) && ($month == "September")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>September</option>
|
||||||
|
<option value="October" <?php if (isset($month) && ($month == "October")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>October</option>
|
||||||
|
<option value="November" <?php if (isset($month) && ($month == "November")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>November</option>
|
||||||
|
<option value="December" <?php if (isset($month) && ($month == "December")) {
|
||||||
|
echo 'selected';
|
||||||
|
} ?>>December</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-6 text-right">
|
||||||
|
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('DeliveryPerformance') ?>';">
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-success m-2" name="btn_submit" value="View Report">
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-1"><br>
|
</div>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<div class="form-group has-feedback">
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||||
|
style="background-color:#fff; font-size:12px;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -150,8 +162,7 @@
|
|||||||
// $last = $this->uri->total_segments();
|
// $last = $this->uri->total_segments();
|
||||||
// $ab=$this->uri->segment($last);
|
// $ab=$this->uri->segment($last);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach($per as $rel)
|
foreach ($per as $rel) {
|
||||||
{
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -208,19 +219,15 @@
|
|||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right"><strong>
|
<td class="amount" style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tr1;
|
echo $tr1;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td class="amount" style="text-align:right"><strong>
|
<td class="amount" style="text-align:right"><strong>
|
||||||
<?php
|
<?php {
|
||||||
{
|
|
||||||
echo $tr2;
|
echo $tr2;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
@ -234,17 +241,14 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -253,127 +257,30 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
||||||
table = $('#cc').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
|
||||||
},
|
|
||||||
"aaSorting": [[ 1, "desc" ]],
|
|
||||||
"autoWidth": false,
|
|
||||||
orderCellsTop: true,
|
|
||||||
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
|
||||||
buttons: [
|
|
||||||
|
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
|
// Initialize the DataTable
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
|
buttons: ['excel'],
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
lengthMenu: [
|
||||||
|
[10, 20, 30, 50, -1],
|
||||||
|
[10, 20, 30, 50, "All"]
|
||||||
|
], // Rows per page options
|
||||||
|
responsive: true, // Responsive table
|
||||||
|
ordering: false,
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0-9]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalPOCount = api
|
|
||||||
.column( 5, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 5 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 6, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 6 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$( function() {
|
|
||||||
//var dateFormat = "mm/dd/yy",
|
|
||||||
from = $( "#min-date" )
|
|
||||||
.datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
to.datepicker("option", "minDate", getDate( this ) );
|
|
||||||
}),
|
|
||||||
to = $( "#max-date" ).datepicker({
|
|
||||||
dateFormat: "dd-mm-yy",
|
|
||||||
defaultDate: "+0d",
|
|
||||||
changeMonth: true,
|
|
||||||
//numberOfMonths: 1
|
|
||||||
|
|
||||||
})
|
|
||||||
.on( "change", function() {
|
|
||||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
||||||
});
|
|
||||||
|
|
||||||
function getDate( element ) {
|
|
||||||
var date;
|
|
||||||
|
|
||||||
try {
|
|
||||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
|
||||||
|
|
||||||
} catch( error ) {
|
|
||||||
date = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return date;
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -229,7 +229,7 @@
|
|||||||
<input type="text" class="form-control" id="no_of_days" name="no_of_days" readonly>
|
<input type="text" class="form-control" id="no_of_days" name="no_of_days" readonly>
|
||||||
</div>
|
</div>
|
||||||
</div><!--/. r o w 5 -->
|
</div><!--/. r o w 5 -->
|
||||||
<div class="row mt-2 security-restricted labstaff-restricted stock-restricted">
|
<div class="row mt-2 auditor-restricted security-restricted labstaff-restricted stock-restricted">
|
||||||
<div class="col-md-2" style="text-align: end; align-content: center;">
|
<div class="col-md-2" style="text-align: end; align-content: center;">
|
||||||
<label class="form" for="status_val">Status</label>
|
<label class="form" for="status_val">Status</label>
|
||||||
</div>
|
</div>
|
||||||
@ -258,10 +258,10 @@
|
|||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal"
|
<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal"
|
||||||
value="Cancel">Cancel</button>
|
value="Cancel">Cancel</button>
|
||||||
<span class="auditor-restricted labstaff-restricted security-restricted">
|
|
||||||
<button type="button" class="btn btn-info waves-effect waves-light tempClick"
|
<button type="button" class="btn btn-info waves-effect waves-light tempClick"
|
||||||
id="tempClick">Submit</button>
|
id="tempClick">Submit</button>
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /. m o d a l-c o n t e n t -->
|
</div><!-- /. m o d a l-c o n t e n t -->
|
||||||
</div><!-- /.m o d a l-d i a l o g -->
|
</div><!-- /.m o d a l-d i a l o g -->
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>emppaydate/addemppaydate">Create New Loan</a>
|
<a class="btn btn-success auditor-restricted-btn" href="<?php echo base_url(); ?>emppaydate/addemppaydate">Create New Loan</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user