Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
1141de1b29
@ -316,6 +316,7 @@ $routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'EditStoreRequisition', 'Storer
|
||||
$routes->get( 'AddIGR', 'Inwardgateregister::addIGR'); // ADD IGR page - working
|
||||
$routes->get( 'ViewIGR', 'Inwardgateregister::viewIGR'); // View IGR PAGE - Working
|
||||
$routes->post('ViewIGR', 'Inwardgateregister::viewIGR');//for filter purpose
|
||||
$routes->post('cancellationIGR', 'Inwardgateregister::cancellationIGR');
|
||||
$routes->get( 'accountsDashboard', 'Inwardgateregister::accountsDashboard'); // View IGR PAGE - Working
|
||||
$routes->post('ViewIGRDetails', 'Inwardgateregister::viewIGRDetails');
|
||||
$routes->post('GetIGRLineItemDetails', 'Inwardgateregister::getIGRLineItemDetails');
|
||||
@ -544,3 +545,20 @@ $routes->post('updateTrpProductionDetails', 'StockController::updateTrpProductio
|
||||
$routes->post('updateAbstractDetails','StockController::updateAbstractDetails');
|
||||
|
||||
|
||||
//Reports Module
|
||||
|
||||
$routes->get('allReports','Report::allReports');
|
||||
|
||||
// Material Report Links
|
||||
$routes->get('MM_Supplier', 'Report::MM_Supplier');
|
||||
$routes->get('MM_Item','Report::MM_Item');
|
||||
$routes->match(['GET', 'POST'],'MM_ReceiptValue','Report::MM_ReceiptValue');
|
||||
|
||||
//Inward Report Links
|
||||
$routes->match(['GET', 'POST'],'ipurchase','Report::ipurchase');
|
||||
$routes->match(['GET', 'POST'],'iyear_wise', 'Report::iyear_wise');
|
||||
$routes->match(['GET', 'POST'],'ipurchase_supplier' , 'Report::ipurchase_supplier');
|
||||
$routes->match(['GET', 'POST'],'iconsolidate' , 'Report::iconsolidate');
|
||||
$routes->match(['GET', 'POST'],'icumulative' , 'Report::icumulative');
|
||||
$routes->match(['GET', 'POST'],'rawi_cumulative' , 'Report::rawi_cumulative');
|
||||
$routes->match(['GET', 'POST'],'rawi_consolidate' , 'Report::rawi_consolidate');
|
||||
@ -219,6 +219,8 @@ class Report extends BaseController
|
||||
$fa = substr((string)$ab, 0, -5);
|
||||
$aa = substr((string)$ab, 5, 5);
|
||||
$m = $this->request->getPost('month');
|
||||
$data['month'] = $m;
|
||||
$data['financialyear'] = $ab;
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['mmr'] = $this->dahsboard_Model->report_MMReceiptValue($fa, $aa, $m);
|
||||
}
|
||||
@ -244,10 +246,20 @@ class Report extends BaseController
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['purchase'] = $this->dahsboard_Model->report_purchase($cname, $prod, $fa, $aa, $m, $frm, $t);
|
||||
|
||||
$data['cname'] = $cname;
|
||||
$data['prod'] = $prod;
|
||||
$data['ab'] = $ab;
|
||||
$data['m'] = $m;
|
||||
$data['frm'] = $frm;
|
||||
$data['t'] = $t;
|
||||
|
||||
}
|
||||
|
||||
$data['material'] = $this->dahsboard_Model->material_name();
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
$this->loadviews("Report_purchase", $this->global, $data, NULL);
|
||||
}
|
||||
@ -541,14 +553,20 @@ class Report extends BaseController
|
||||
$this->global['pageTitle'] = 'Inward PO Reports';
|
||||
if ($this->request->getPost('btn_submit')) {
|
||||
$cname = $this->request->getPost('client_name');
|
||||
$data['client_name'] = $cname;
|
||||
$prod = $this->request->getPost('item_name');
|
||||
$data['item_name'] = $prod;
|
||||
$ab = $this->request->getPost('financialyear');
|
||||
$data['financialyear'] = $ab;
|
||||
$cat = $this->request->getVar('cat');
|
||||
$fa = substr((string)$ab, 0, -5);
|
||||
$aa = substr((string)$ab, 5, 5);
|
||||
$m = $this->request->getPost('month');
|
||||
$data['month'] = $m;
|
||||
$frm = $this->request->getPost('from_date');
|
||||
$data['frm'] = $frm;
|
||||
$t = $this->request->getPost('to_date');
|
||||
$data['t'] = $t;
|
||||
//print_r($prod);
|
||||
$data['material'] = $this->dahsboard_Model->material_name();
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
|
||||
@ -875,7 +875,9 @@ group by po.SupplierID,pl.MaterialCode";
|
||||
{
|
||||
|
||||
|
||||
$sql = "SELECT MaterialCode,MaterialName,UOM,Category,HSNCODE FROM t_materialmaster group by MaterialCode";
|
||||
$sql = "SELECT MaterialCode,MaterialName,UOM, t_configdetails.ConfigValue as Category,HSNCODE FROM t_materialmaster
|
||||
join t_configdetails on t_configdetails.key = t_materialmaster.Category
|
||||
group by MaterialCode";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->getResult();
|
||||
}
|
||||
@ -909,65 +911,65 @@ where pm.PODate != 0 ";
|
||||
|
||||
|
||||
$sql = "SELECT pm.PONO as pono,pm.POType as potype,date_format(pm.PODate,'%d-%m-%Y') as created_date,
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(distinct pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(distinct pl.Rate),0) as rate,
|
||||
round(ifnull(sum(distinct pl.Quantity * pl.Rate),0),2) as value,
|
||||
if(POType = 'IMPORT' or POType = 'CAPITAL',sum(distinct pm.ExchangeRate),0) as exchange_rate,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0) as sgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0) as cgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0) as igst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0) as discount,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0) as freight,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0) as Package,
|
||||
ifnull(rt.Insurance,0) as insurance,
|
||||
round((
|
||||
if(POType = 'IMPORT',sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
if(POType = 'CAPITAL' && CapitalRange = 0,sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
ifnull(sum(pl.Quantity * pl.Rate),0)))
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0)
|
||||
+ ifnull(rt.Insurance,0)
|
||||
- ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0)),2) as total
|
||||
FROM t_purchaseorder_master pm
|
||||
join t_purchaseorder_lineitem pl on pl.PONO = pm.PONO
|
||||
left join t_materialmaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join t_supplierdetailsn sd on sd.SupplierID = pm.SupplierID
|
||||
left join t_service_tax st on st.LineItemNo = pl.LineItemNo
|
||||
left join t_revenue_tax rt on rt.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.Status != 'ST030' and pm.Status != 'ST056' and pm.Status != 'ST027'";
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(distinct pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(distinct pl.Rate),0) as rate,
|
||||
round(ifnull(sum(distinct pl.Quantity * pl.Rate),0),2) as value,
|
||||
if(POType = 'IMPORT' or POType = 'CAPITAL',sum(distinct pm.ExchangeRate),0) as exchange_rate,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0) as sgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0) as cgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0) as igst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0) as discount,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0) as freight,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0) as Package,
|
||||
ifnull(rt.Insurance,0) as insurance,
|
||||
round((
|
||||
if(POType = 'IMPORT',sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
if(POType = 'CAPITAL' && CapitalRange = 0,sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
ifnull(sum(pl.Quantity * pl.Rate),0)))
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0)
|
||||
+ ifnull(rt.Insurance,0)
|
||||
- ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0)),2) as total
|
||||
FROM t_purchaseorder_master pm
|
||||
join t_purchaseorder_lineitem pl on pl.PONO = pm.PONO
|
||||
left join t_materialmaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join t_supplierdetailsn sd on sd.SupplierID = pm.SupplierID
|
||||
left join t_service_tax st on st.LineItemNo = pl.LineItemNo
|
||||
left join t_revenue_tax rt on rt.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.Status != 'ST030' and pm.Status != 'ST056' and pm.Status != 'ST027'";
|
||||
|
||||
if ($cname != '') {
|
||||
if ($cname != '') {
|
||||
|
||||
$sql .= "and sd.SupplierName = '" . $cname . "'";
|
||||
}
|
||||
$sql .= "and sd.SupplierName = '" . $cname . "'";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($fa and $aa != '') {
|
||||
if ($fa and $aa != '') {
|
||||
|
||||
$sql .= " and (pm.PODate >= '" . $fa . "-04-01' and pm.PODate <= '" . $aa . "-03-31')";
|
||||
}
|
||||
if ($m != '') {
|
||||
$sql .= " and (pm.PODate >= '" . $fa . "-04-01' and pm.PODate <= '" . $aa . "-03-31')";
|
||||
}
|
||||
if ($m != '') {
|
||||
|
||||
$sql .= "and monthname(pm.PODate) = '" . $m . "'";
|
||||
}
|
||||
$sql .= "and monthname(pm.PODate) = '" . $m . "'";
|
||||
}
|
||||
|
||||
if ($frm and $t != '') {
|
||||
$fromd = date("Y-m-d", strtotime($frm));
|
||||
$tod = date("Y-m-d", strtotime($t));
|
||||
if ($frm and $t != '') {
|
||||
$fromd = date("Y-m-d", strtotime($frm));
|
||||
$tod = date("Y-m-d", strtotime($t));
|
||||
|
||||
$sql .= "and date(pm.PODate) >= '" . $fromd . "'
|
||||
and date(pm.PODate) <= '" . $tod . "'";
|
||||
}
|
||||
if ($prod != '') {
|
||||
$sql .= "and date(pm.PODate) >= '" . $fromd . "'
|
||||
and date(pm.PODate) <= '" . $tod . "'";
|
||||
}
|
||||
if ($prod != '') {
|
||||
|
||||
$sql .= " and mm.MaterialName = '" . $prod . "' ";
|
||||
}
|
||||
$sql .= " and mm.MaterialName = '" . $prod . "' ";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1065,11 +1067,11 @@ pm.Status != 'ST030' and pm.Status != 'ST056' and pm.Status != 'ST027' ";
|
||||
|
||||
|
||||
$sql = "SELECT
|
||||
CASE WHEN MONTH(PODate)>=4 THEN
|
||||
concat(YEAR(PODate), '-',YEAR(PODate)+1)
|
||||
ELSE concat(YEAR(PODate)-1,'-', YEAR(PODate)) END AS financial_year
|
||||
FROM t_purchaseorder_master
|
||||
GROUP BY financial_year";
|
||||
CASE WHEN MONTH(PODate)>=4 THEN
|
||||
concat(YEAR(PODate), '-',YEAR(PODate)+1)
|
||||
ELSE concat(YEAR(PODate)-1,'-', YEAR(PODate)) END AS financial_year
|
||||
FROM t_purchaseorder_master
|
||||
GROUP BY financial_year";
|
||||
$query = $this->db->query($sql);
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
@ -1715,7 +1715,7 @@ if (!empty($getlogpodtl)) {
|
||||
<a class="btn btn-success auditor-restricted-btn Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-soft-primary waves-effect waves-light auditor-restricted-btn Submit" ID="Submit" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if ($PONOStatus == SPECIAL_PO) { ?>
|
||||
<a class="btn btn-success auditor-restricted-btn" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">OK</span></a>
|
||||
<a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>"> <span class="bold">OK</span></a>
|
||||
<a class="btn btn-success auditor-restricted-btn Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<?php } else if($PONOStatus == REQITEM_Emergency_PO_CREATED) { ?>
|
||||
<a class="btn btn-danger auditor-restricted-btn Save" ID="Reset" onclick="Reset();"> <span class="bold">Reset</span></a>
|
||||
|
||||
@ -1,253 +1,258 @@
|
||||
|
||||
<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">
|
||||
<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" style="
|
||||
font-size: 12px;
|
||||
">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Order Value - Released</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
if($this->input->post('total_order_value_From') && $this->input->post('total_order_value_To')){
|
||||
$tfrm = $this->input->post('total_order_value_From');
|
||||
$tt = $this->input->post('total_order_value_To');
|
||||
echo 'Total Order Value between'.' '.'RS.'.$tfrm.'-to-'.'RS.'.$tt;
|
||||
}
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="panel-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Released Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($rel_po)){
|
||||
foreach($rel_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->PODate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</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><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</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://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/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.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.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; */
|
||||
|
||||
}
|
||||
</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);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </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">
|
||||
|
||||
<form method="post" action="<?php echo base_url('releasedpo'); ?>">
|
||||
|
||||
<div class="row form-group has-feedback">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Released Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($rel_po)){
|
||||
foreach($rel_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->PODate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<td style="text-align:center"><?php
|
||||
$t='Total';
|
||||
echo $t;?></td>
|
||||
<td><?php echo '';?></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>
|
||||
</table>
|
||||
</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://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/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.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({
|
||||
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
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
@ -409,7 +414,4 @@ function Reset()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
@ -1,153 +1,141 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#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;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
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</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
}
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
}
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</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">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</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);">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 </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<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>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</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>
|
||||
|
||||
<div class="box-body" style="display:block" id="a">
|
||||
|
||||
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
||||
<thead>
|
||||
<form method="post" action="<?php echo base_url('Report_consolidate'); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</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">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<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>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier Name</th>
|
||||
<th style="text-align:center;">Material Name</th>
|
||||
@ -184,11 +172,11 @@ table.dataTable thead > tr > td.sorting {
|
||||
$qfeb = 0;
|
||||
$qmar = 0;
|
||||
$qtot = 0;
|
||||
$ab=$this->input->post('financialyear');
|
||||
$ab= "";
|
||||
foreach ($spurchse as $index=>$result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;">
|
||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&ab=<?php echo $ab;?>"><?php echo $result->supplier_name;?> </a>
|
||||
<?php echo $result->supplier_name;?>
|
||||
</td>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
@ -405,291 +393,47 @@ table.dataTable thead > tr > td.sorting {
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="box-body" id="b" style="display:none">
|
||||
|
||||
|
||||
<table class="table table-bordered table-hover" style="font-size:14px;" id="ta">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier 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;">May (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Jun (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center;">Jul (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Aug (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center;">Sep (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Oct (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Nov (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Dec (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Jan (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align: center;">Feb (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align: center;">Mar (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align: center;">Total (<i class="fa fa-rupee " ></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$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;
|
||||
foreach ($spurchse as $index=>$result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;">
|
||||
<a href="<?= base_url() ?>report/link_purchase?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>"><?php echo $result->supplier_name;?> </a>
|
||||
</td>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
?></td>
|
||||
<td style="text-align:right;"><span id="aprilval<?php echo $index?>"><?php
|
||||
$vapr= $vapr + number_format($result->vApril,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'April';?>"><?php echo number_format($result->vApril,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="mayval<?php echo $index?>"><?php
|
||||
$vmay= $vmay + number_format($result->vMay,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'May';?>"><?php echo number_format($result->vMay,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id ="juneval<?php echo $index?>"><?php
|
||||
$vjun= $vjun + number_format($result->vJune,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'June';?>"><?php echo number_format($result->vJune,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="julyval<?php echo $index?>"><?php
|
||||
$vjul= $vjul + number_format($result->vJuly,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'July';?>"><?php echo number_format($result->vJuly,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="augval<?php echo $index?>"><?php
|
||||
$vaug= $vaug + number_format($result->vAugust,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'August';?>"><?php echo number_format($result->vAugust,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="sepval<?php echo $index?>"><?php
|
||||
$vsep= $vsep + number_format($result->vSeptember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'September';?>"><?php echo number_format($result->vSeptember,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="octval<?php echo $index?>"><?php
|
||||
$voct= $voct + number_format($result->vOctober,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'October';?>"><?php echo number_format($result->vOctober,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="novval<?php echo $index?>"><?php
|
||||
$vnov= $vnov + number_format($result->vNovember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'November';?>"><?php echo number_format($result->vNovember,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="decval<?php echo $index?>"><?php
|
||||
$vdec= $vdec + number_format($result->vDecember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'December';?>"><?php echo number_format($result->vDecember,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="janval<?php echo $index?>"><?php
|
||||
$vjan= $vjan + number_format($result->vJanuary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'January';?>"><?php echo number_format($result->vJanuary,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="febval<?php echo $index?>"><?php
|
||||
$vfeb= $vfeb + number_format($result->vFebruary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'February';?>"><?php echo number_format($result->vFebruary,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="marval<?php echo $index?>"><?php
|
||||
$vmar= $vmar + number_format($result->vMarch,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'March';?>"><?php echo number_format($result->vMarch,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="totalval<?php echo $index?>"><?php
|
||||
$vtot= $vtot + number_format($result->vtotal,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_year?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>"><?php echo number_format($result->vtotal,2,'.','');?> </a></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
<td><strong><?php
|
||||
{
|
||||
echo '';
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong><?php
|
||||
{
|
||||
echo number_format($vapr,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vmay,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vjun,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vjul,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vaug,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vsep,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($voct,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vnov,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vdec,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vjan,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vfeb,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vmar,2,'.','');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vtot,2,'.','');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</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://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/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.colVis.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/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://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/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({
|
||||
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>
|
||||
|
||||
@ -712,19 +456,19 @@ $('#tab').on('search.dt', function() {
|
||||
});
|
||||
|
||||
|
||||
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 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)?>";
|
||||
|
||||
|
||||
|
||||
@ -896,19 +640,19 @@ $(document).ready(function() {
|
||||
|
||||
|
||||
|
||||
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)?>";
|
||||
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)?>";
|
||||
|
||||
|
||||
|
||||
@ -1023,20 +767,20 @@ $(document).ready(function() {
|
||||
{
|
||||
|
||||
|
||||
var api = this.api(), data;
|
||||
var Final_april_total =parseInt(vaprilval_sum);
|
||||
var Final_may_total = parseInt(vmayval_sum);
|
||||
var Final_june_total = parseInt(vjuneval_sum);
|
||||
var Final_july_total = parseInt(vjulyval_sum);
|
||||
var Final_aug_total = parseInt(vaugval_sum);
|
||||
var Final_sep_total = parseInt(vsepval_sum);
|
||||
var Final_oct_total = parseInt(voctval_sum);
|
||||
var Final_nov_total = parseInt(vnovval_sum);
|
||||
var Final_dec_total = parseInt(vdecval_sum);
|
||||
var Final_jan_total = parseInt(vjanval_sum);
|
||||
var Final_feb_total = parseInt(vfebval_sum);
|
||||
var Final_mar_total = parseInt(vmarval_sum);
|
||||
var Final_tot = parseInt(vtotalval_sum);
|
||||
var api = this.api(), data;
|
||||
var Final_april_total =parseInt(vaprilval_sum);
|
||||
var Final_may_total = parseInt(vmayval_sum);
|
||||
var Final_june_total = parseInt(vjuneval_sum);
|
||||
var Final_july_total = parseInt(vjulyval_sum);
|
||||
var Final_aug_total = parseInt(vaugval_sum);
|
||||
var Final_sep_total = parseInt(vsepval_sum);
|
||||
var Final_oct_total = parseInt(voctval_sum);
|
||||
var Final_nov_total = parseInt(vnovval_sum);
|
||||
var Final_dec_total = parseInt(vdecval_sum);
|
||||
var Final_jan_total = parseInt(vjanval_sum);
|
||||
var Final_feb_total = parseInt(vfebval_sum);
|
||||
var Final_mar_total = parseInt(vmarval_sum);
|
||||
var Final_tot = parseInt(vtotalval_sum);
|
||||
|
||||
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||
@ -1077,5 +821,4 @@ function toggleTables(which)
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -1,252 +1,264 @@
|
||||
|
||||
<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">
|
||||
<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" style="
|
||||
font-size: 12px;
|
||||
">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Open Orders - Pending</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
if($this->input->post('total_order_value_From') && $this->input->post('total_order_value_To')){
|
||||
$tfrm = $this->input->post('total_order_value_From');
|
||||
$tt = $this->input->post('total_order_value_To');
|
||||
echo 'Total Order Value between'.' '.'RS.'.$tfrm.'-to-'.'RS.'.$tt;
|
||||
}
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="panel-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Approved Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($open_po)){
|
||||
foreach($open_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php echo $rel->PODate?></span></td>
|
||||
<td><span><?php echo $rel->ApprovedDate?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</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><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</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://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/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.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.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; */
|
||||
|
||||
}
|
||||
</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);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </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">
|
||||
|
||||
<form method="post" action="<?php echo base_url('openOrder') ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Approved Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($open_po)){
|
||||
foreach($open_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php echo $rel->PODate?></span></td>
|
||||
<td><span><?php echo $rel->ApprovedDate?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</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><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
</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://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/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.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({
|
||||
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
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
@ -334,11 +346,6 @@ $( function() {
|
||||
} );
|
||||
|
||||
|
||||
//$('.input-daterange').each(function() {
|
||||
// $(this).datepicker('clearDates');
|
||||
//});
|
||||
|
||||
|
||||
// Extend dataTables search
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function(settings, data, dataIndex) {
|
||||
@ -406,9 +413,4 @@ function Reset()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
@ -125,6 +125,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="from_date">
|
||||
@ -158,6 +159,7 @@
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_pending_purchase') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
@ -1,261 +1,190 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
|
||||
|
||||
});
|
||||
$(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">
|
||||
<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;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
th, td { white-space: nowrap; }
|
||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
||||
content: "" !important;
|
||||
}
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
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 - Purchase</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')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</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-4">
|
||||
<label for="client_name">
|
||||
<?php echo'Material'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($material as $it):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</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);">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 </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-2"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class = "table-responsive">
|
||||
<table class="table table-bordered" id="cc" style="font-size:12px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO No</th>
|
||||
<th style="text-align:center">Date</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">UOM</th>
|
||||
<th style="text-align:center">Rate (₹)</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
<th style="text-align:center">Exchange Rate</th>
|
||||
<th style="text-align:center">SGST (₹)</th>
|
||||
<th style="text-align:center">CGST (₹)</th>
|
||||
<th style="text-align:center">IGST (₹)</th>
|
||||
<th style="text-align:center">Discount (₹)</th>
|
||||
<th style="text-align:center">Freight (₹)</th>
|
||||
<th style="text-align:center">Package (₹)</th>
|
||||
<th style="text-align:center">Insurance (₹)</th>
|
||||
<th style="text-align:center">Total (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($purchase)){
|
||||
<form method="post" action="<?php echo base_url('Report_purchase'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach ($cust as $item): { ?>
|
||||
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
foreach ($material as $it): { ?>
|
||||
<option <?php if(isset($prod) && ($prod == $it->MaterialName)){ echo 'selected'; } ?> value="<?php echo $it->MaterialName; ?>"><?php echo $it->MaterialName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach ($finyear as $item): { ?>
|
||||
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<?php $months = ["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"]; ?>
|
||||
<?php foreach ($months as $month): { ?>
|
||||
<option <?php if(isset($m) && ($m == $month)){ echo 'selected'; } ?> value="<?php echo $month; ?>"><?php echo $month; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO No</th>
|
||||
<th style="text-align:center">Date</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">UOM</th>
|
||||
<th style="text-align:center">Rate (₹)</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
<th style="text-align:center">Exchange Rate</th>
|
||||
<th style="text-align:center">SGST (₹)</th>
|
||||
<th style="text-align:center">CGST (₹)</th>
|
||||
<th style="text-align:center">IGST (₹)</th>
|
||||
<th style="text-align:center">Discount (₹)</th>
|
||||
<th style="text-align:center">Freight (₹)</th>
|
||||
<th style="text-align:center">Package (₹)</th>
|
||||
<th style="text-align:center">Insurance (₹)</th>
|
||||
<th style="text-align:center">Total (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($purchase)){
|
||||
$tot_qty = 0;
|
||||
$tot_rate = 0;
|
||||
$tot_value = 0;
|
||||
@ -468,230 +397,47 @@ table.dataTable thead > tr > td.sorting {
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div> <!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</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://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/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.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() {
|
||||
$.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: 'Report Purchase',
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'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( 4, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 4 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||
|
||||
TotalVALUE = api
|
||||
.column( 7, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 7 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||
|
||||
TotalExRATE = api
|
||||
.column( 8, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 8 ).footer() ).html( TotalExRATE.toFixed().bold() );
|
||||
|
||||
TotalSGST = api
|
||||
.column( 9, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 9 ).footer() ).html( TotalSGST.toFixed(2).bold() );
|
||||
|
||||
TotalCGST = api
|
||||
.column( 10, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 10 ).footer() ).html( TotalCGST.toFixed(2).bold() );
|
||||
|
||||
TotalIGST = api
|
||||
.column( 11, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 11 ).footer() ).html( TotalIGST.toFixed(2).bold() );
|
||||
|
||||
TotalDISCOUNT = api
|
||||
.column( 12, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 12 ).footer() ).html( TotalDISCOUNT.toFixed(2).bold() );
|
||||
|
||||
TotalFRIGEHT = api
|
||||
.column( 13, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 13 ).footer() ).html( TotalFRIGEHT.toFixed(2).bold() );
|
||||
|
||||
TotalPACKAGE = api
|
||||
.column( 14, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 14 ).footer() ).html( TotalPACKAGE.toFixed(2).bold() );
|
||||
|
||||
TotalINSURANCES = api
|
||||
.column( 15, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 15 ).footer() ).html( TotalINSURANCES.toFixed(2).bold() );
|
||||
|
||||
FinalTotal = api
|
||||
.column( 16, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 16 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||
<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/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://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/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({
|
||||
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
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
$('#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,421 +1,290 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
<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">
|
||||
<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;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.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 - Purchase-SupplierWise</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
echo ' '.' ';
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'to'.$t;
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<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" required="true">
|
||||
<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">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</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);">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 supplier wise </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($spurchse)){
|
||||
$tot_rate = 0;
|
||||
$tot_qty = 0;
|
||||
$tot_value = 0;
|
||||
$tot_tot = 0;
|
||||
$ab=$this->input->post('financialyear');
|
||||
$month=$this->input->post('month');
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
foreach($spurchse as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span>
|
||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&m=<?php echo $month;?>&frm=<?php echo $frm;?>&t=<?php echo $t;?>"><?php echo $rel->supplier_name;?></a>
|
||||
</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_rate= $tot_rate + round($rel->counts);
|
||||
echo round($rel->counts);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_qty= $tot_qty + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_value= $tot_value + $rel->value;
|
||||
echo number_format($rel->value,2,'.','');?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
<td class="amount" style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_rate;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_qty;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_value,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</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('Report_supplier'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach ($cust as $item): { ?>
|
||||
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
foreach ($material as $it): { ?>
|
||||
<option <?php if(isset($prod) && ($prod == $it->MaterialName)){ echo 'selected'; } ?> value="<?php echo $it->MaterialName; ?>"><?php echo $it->MaterialName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach ($finyear as $item): { ?>
|
||||
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<?php $months = ["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"]; ?>
|
||||
<?php foreach ($months as $month): { ?>
|
||||
<option <?php if(isset($m) && ($m == $month)){ echo 'selected'; } ?> value="<?php echo $month; ?>"><?php echo $month; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($spurchse)){
|
||||
$tot_rate = 0;
|
||||
$tot_qty = 0;
|
||||
$tot_value = 0;
|
||||
$tot_tot = 0;
|
||||
foreach($spurchse as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span>
|
||||
<?= $rel->supplier_name?>
|
||||
</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_rate= $tot_rate + round($rel->counts);
|
||||
echo round($rel->counts);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_qty= $tot_qty + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_value= $tot_value + $rel->value;
|
||||
echo number_format($rel->value,2,'.','');?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
<td class="amount" style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_rate??0;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_qty??0;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_value??0,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<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/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://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>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"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'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'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;
|
||||
};
|
||||
|
||||
TotalPOCount = api
|
||||
.column( 1, { search:'applied' } )
|
||||
.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() );
|
||||
|
||||
<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/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://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/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({
|
||||
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
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
$('#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,110 +1,106 @@
|
||||
|
||||
<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;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.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>Total Orders</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
||||
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
.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; */
|
||||
|
||||
}
|
||||
</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);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select></div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report"></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">
|
||||
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-2">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Department</th>
|
||||
<th>PO Created</th>
|
||||
<th>Special PO</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Approved</th>
|
||||
<th>Releaser Onhold</th>
|
||||
<th>Released</th>
|
||||
<th>IGR Created</th>
|
||||
<th>MRIR Rejected</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>Service completed</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($Total)){
|
||||
<table id="req" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Department</th>
|
||||
<th>PO Created</th>
|
||||
<th>Special PO</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Approved</th>
|
||||
<th>Releaser Onhold</th>
|
||||
<th>Released</th>
|
||||
<th>IGR Created</th>
|
||||
<th>MRIR Rejected</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>Service completed</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($Total)){
|
||||
foreach($Total as $rel)
|
||||
{
|
||||
?>
|
||||
@ -127,30 +123,31 @@
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</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://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/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.colVis.min.js"></script>
|
||||
|
||||
<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/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://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/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
@ -181,6 +178,4 @@ $(document).ready(function() {
|
||||
} );
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
@ -1,118 +1,133 @@
|
||||
|
||||
|
||||
|
||||
<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">
|
||||
<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;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
|
||||
</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</b><br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="col-xs-12 col-md-6 col-md-offset-3">
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
.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; */
|
||||
|
||||
}
|
||||
</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);">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 </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit" value="View Report">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if(!empty($year)){
|
||||
?>
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value (₹)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</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('Report_year_wise'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
{?>
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tr3=0;
|
||||
$tr4=00;
|
||||
if(isset($year)){
|
||||
foreach($year as $rel)
|
||||
{
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td style="text-align:center"><span>
|
||||
<td style="text-align:center">
|
||||
<?php
|
||||
$date = strtotime($rel->created_date);
|
||||
$new = date('M-y', $date);
|
||||
$pass = date('Y-m-d',$date);
|
||||
$ab=$this->input->post('financialyear');
|
||||
//echo $new;
|
||||
echo $new;
|
||||
?>
|
||||
|
||||
<a href="<?= base_url() ?>report/month_wise?ab=<?php echo $ab;?>&dat=<?php echo $pass;?>"><?php echo $new;?></a>
|
||||
</span></td>
|
||||
</td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tr3= $tr3 + $rel->quantity;
|
||||
echo round($rel->quantity);?></span></td>
|
||||
@ -124,15 +139,13 @@
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong><?php
|
||||
$ab=$this->input->post('financialyear');
|
||||
$Total="Total";
|
||||
echo anchor('report/year_wise_total/' . $ab,$Total); ?></strong>
|
||||
<td style="text-align:center;"><strong>Total</strong>
|
||||
|
||||
</td>
|
||||
|
||||
@ -162,119 +175,44 @@
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<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/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://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/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"date-range-pre": function ( a ) {
|
||||
var monthArr = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
||||
return monthArr.indexOf(a);
|
||||
},
|
||||
"date-range-asc": function ( a, b ) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
"date-range-desc": function ( a, b ) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
} );
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"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'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'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 );
|
||||
console.log(parseFloat(TotalVALUE));
|
||||
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||
|
||||
<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/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://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/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({
|
||||
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: 12, // 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
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
@ -153,7 +153,7 @@
|
||||
<td>
|
||||
<?php if ($record->IsActive == 0) { ?>
|
||||
|
||||
<a onclick="confirmReActivatingAsset(event)"
|
||||
<a class="auditor-restricted-btn" onclick="confirmReActivatingAsset(event)"
|
||||
href="<?php echo base_url() . 'assetdetails/reActivateAsset/?AssetID=' . $record->AssetCode ?>"
|
||||
data-toggle="tooltip"
|
||||
title="<?php echo $record->AssetCode; ?> - Click here to Re-Activate Asset Details">
|
||||
@ -168,7 +168,7 @@
|
||||
<i class="fa fa-edit"></i>
|
||||
</a>
|
||||
|
||||
<a onclick="confirmDeleteAsset(event)"
|
||||
<a class="auditor-restricted-btn" onclick="confirmDeleteAsset(event)"
|
||||
href="<?php echo base_url() . 'assetdetails/deleteAsset/?AssetID=' . $record->AssetCode ?>"
|
||||
data-toggle="tooltip"
|
||||
class="auditor-restricted-btn"
|
||||
|
||||
@ -129,7 +129,7 @@
|
||||
<?php
|
||||
if ($record->IsActive == 0) {
|
||||
?>
|
||||
<a onclick="confirmReActivate(event)" style="cursor:pointer;"
|
||||
<a class="auditor-restricted-btn" onclick="confirmReActivate(event)" style="cursor:pointer;"
|
||||
href="<?php echo base_url() . 'reActivateCostCenter?CostCenterCode=' . $record->code; ?>">
|
||||
<i class="fa fa-key" style="color:#02a8b5;"></i>
|
||||
</a>
|
||||
|
||||
@ -343,8 +343,8 @@ if (!empty($emppay)) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="button" class="btn btn-secondary" value="Delete" id="deleteemp" style="margin-right:15px;width:80px;border:none;" />
|
||||
<input type="submit" onclick="return finalCheck();" value="Submit" class="btn btn-success">
|
||||
<input type="button" class="btn btn-secondary auditor-restricted-btn" value="Delete" id="deleteemp" style="margin-right:15px;width:80px;border:none;" />
|
||||
<input type="submit" onclick="return finalCheck();" value="Submit" class="btn btn-success auditor-restricted-btn">
|
||||
<!-- <input type="submit" onmouseover="finalCheck();" value="Submit" class="btn btn-success"> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -114,7 +114,7 @@ if ($total <= $reorder) {
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Edit Material - <?php echo $MaterialCode; ?> Details</h4>
|
||||
<button type="button" class="btn btn-secondary" onclick="window.location.href='<?= base_url() ?>rawmaterialListing?materialListPage=<?= $materialListPage ?>'">
|
||||
<span class="bold">Cancel</span>
|
||||
<span class="bold">Back</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -287,7 +287,7 @@ if (!empty($supplier)) {
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Edit Supplier Details <?php echo $SupplierID; ?></h4>
|
||||
<button type="button" class="btn btn-secondary" onclick="history.back()">
|
||||
<span class="bold">Cancel</span>
|
||||
<span class="bold">Back</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -157,9 +157,9 @@ if (!empty($master)) {
|
||||
<?php echo $index; ?>
|
||||
</td>
|
||||
<?php if($con->Config_ID === 'C023'){ ?>
|
||||
<td>
|
||||
<td class="config-value-td" data-key="<?php echo $con->Key; ?>">
|
||||
<a
|
||||
class="config-category"
|
||||
class="config-category "
|
||||
data-value="<?php echo $con->ConfigValue;?>"
|
||||
data-key="<?php echo $con->Key; ?>"
|
||||
style="cursor: pointer;">
|
||||
@ -168,7 +168,7 @@ if (!empty($master)) {
|
||||
</a>
|
||||
</td>
|
||||
<?php }else{ ?>
|
||||
<td><?php echo $con->ConfigValue; ?></td>
|
||||
<td class="config-value-td" data-key="<?php echo $con->Key; ?>"><?php echo $con->ConfigValue; ?></td>
|
||||
<?php } ?>
|
||||
|
||||
<td>
|
||||
@ -422,8 +422,6 @@ if (!empty($master)) {
|
||||
},
|
||||
success: function(data) {
|
||||
|
||||
console.log(data);
|
||||
|
||||
if (data.length > 0) {
|
||||
|
||||
if (data[0]?.isActive == 1) {
|
||||
@ -509,15 +507,17 @@ if (!empty($master)) {
|
||||
var id = $(this).data('id');
|
||||
var key = $(this).data('key');
|
||||
var code = $(this).data('code');
|
||||
var configValue = $(this).data('configvalue');
|
||||
var configValue = $(this).attr('data-configvalue');
|
||||
|
||||
console.log(configValue);
|
||||
|
||||
$('#key').val(key);
|
||||
$('#Config_ID').val(code);
|
||||
$('#configValue').val(configValue);
|
||||
|
||||
$('#EditConfiguration').modal('show');
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
@ -541,7 +541,25 @@ if (!empty($master)) {
|
||||
success: function(response) {
|
||||
if (response.status) {
|
||||
alert('Config Value updated successfully');
|
||||
location.reload();
|
||||
|
||||
let key = $('#key').val();
|
||||
|
||||
let configValue = $("#configValue").val();
|
||||
|
||||
let configId = $('#Config_ID').val();
|
||||
if (configId === "C023") {
|
||||
$(`#configtable tbody tr td.config-value-td a[data-key="${key}"]`).text(configValue);
|
||||
} else {
|
||||
$(`#configtable tbody tr td.config-value-td[data-key="${key}"]`).text(configValue);
|
||||
}
|
||||
|
||||
$(`#configtable tbody tr td a.editConfigurationBtn[data-key="${key}"]`).attr('data-configvalue', configValue);
|
||||
|
||||
|
||||
$("#configValue").val(" ");
|
||||
|
||||
$('#EditConfiguration').modal('hide');
|
||||
|
||||
} else {
|
||||
alert('Failed to update Config Value');
|
||||
}
|
||||
|
||||
@ -1409,10 +1409,12 @@ if (!empty($getlogpodtl)) {
|
||||
<a class="btn btn-success auditor-restricted-btn Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-soft-primary waves-effect waves-light auditor-restricted-btn Submit" ID="Submit" onclick="Save(4)"> <span class="bold">Approve</span></a>
|
||||
<?php } else if ($PONOStatus == SPECIAL_PO) { ?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
<!-- <a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a> -->
|
||||
<a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>"><span class="bold">OK</span></a>
|
||||
<a class="btn btn-success auditor-restricted-btn Submit" ID="Submit" onclick="Save(1)"> <span class="bold">Submit</span></a>
|
||||
<?php } else { ?>
|
||||
<a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a>
|
||||
<a class="btn btn-success" ID="OK" href="<?php echo base_url() . 'purchaseorderListing'; ?>"><span class="bold">OK</span></a>
|
||||
<!-- <a class="btn btn-success" ID="OK" onclick="PageRedirect()">OK</a> -->
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
<th>From Date</th>
|
||||
<th>To Date</th>
|
||||
<th>Number Of Days</th>
|
||||
<th class="security-restricted labstaff-restricted stock-restricted">Status</th>
|
||||
<th class="auditor-restricted security-restricted labstaff-restricted stock-restricted">Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -105,7 +105,7 @@
|
||||
<td><?= esc($stdate) ?></td>
|
||||
<td><?= esc($eddate) ?></td>
|
||||
<td><?= esc($d['no_of_days']) ?></td>
|
||||
<td class="security-restricted labstaff-restricted stock-restricted"><?php if($d['status'] !== "Approved"){ ?>
|
||||
<td class="auditor-restricted security-restricted labstaff-restricted stock-restricted"><?php if($d['status'] !== "Approved"){ ?>
|
||||
<select
|
||||
class="form-control"
|
||||
name="drpStatus"
|
||||
|
||||
@ -159,7 +159,7 @@
|
||||
|
||||
<?php if ($record['is_active'] == 0) { ?>
|
||||
|
||||
<a data-toggle="tooltip"
|
||||
<a data-toggle="tooltip" class="auditor-restricted-btn"
|
||||
onclick="confirmReActivateMachineDetail(event)"
|
||||
href="<?php echo base_url(); ?>reActivateFactoryMachineMasterDetails?id=<?php echo $record['id'] ?>">
|
||||
<i class="fa fa-key" data-toggle="tooltip"
|
||||
|
||||
@ -504,7 +504,38 @@
|
||||
|
||||
|
||||
</head>
|
||||
<script>
|
||||
$(function () {
|
||||
<?php if(session()->get('roleText') == 'Auditor'){ ?>
|
||||
$(".auditor-restricted").hide();
|
||||
$(".auditor-restricted-btn").hide();
|
||||
$(".auditor-restricted-field").attr("readonly", true);
|
||||
$(".auditor-restricted-dropdown").prop("disabled", true);
|
||||
<?php } ?>
|
||||
|
||||
<?php if(session()->get('roleText') == 'Lab Staff'){ ?>
|
||||
$(".labstaff-restricted").hide();
|
||||
$(".labstaff-restricted-btn").hide();
|
||||
$(".labstaff-restricted-field").attr("readonly", true);
|
||||
$(".labstaff-restricted-dropdown").prop("disabled", true);
|
||||
<?php } ?>
|
||||
|
||||
<?php if(session()->get('roleText') == 'Security'){ ?>
|
||||
$(".security-restricted").hide();
|
||||
$(".security-restricted-btn").hide();
|
||||
$(".security-restricted-field").attr("readonly", true);
|
||||
$(".security-restricted-dropdown").prop("disabled", true);
|
||||
<?php } ?>
|
||||
|
||||
<?php if(session()->get('roleText') == 'Stock Handler'){ ?>
|
||||
$(".stock-restricted").hide();
|
||||
$(".stock-restricted-btn").hide();
|
||||
$(".stock-restricted-field").attr("readonly", true);
|
||||
$(".stock-restricted-dropdown").prop("disabled", true);
|
||||
<?php } ?>
|
||||
|
||||
});
|
||||
</script>
|
||||
<body class="loading" data-layout-mode="horizontal" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": true}'>
|
||||
<!-- Begin page -->
|
||||
<div id="wrapper">
|
||||
@ -769,7 +800,7 @@
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if(session()->get('roleText') == 'System Administrator' || session()->get('roleText') == 'Auditor' || session()->get('roleText') == 'Security' || session()->get('roleText') == 'Stock Handler'){?>
|
||||
<?php if(session()->get('roleText') == 'System Administrator' || session()->get('roleText') == 'Security' || session()->get('roleText') == 'Stock Handler'){?>
|
||||
<div class="dropdown" >
|
||||
|
||||
<a class="dropdown-item dropdown-toggle arrow-none" href="#" id="topnav-po"
|
||||
@ -874,7 +905,7 @@
|
||||
|
||||
<!-- master detail module -->
|
||||
|
||||
<?php if(session()->get('roleText') == 'System Administrator' || session()->get('roleText') == 'Auditor'){ ?>
|
||||
<?php if(session()->get('roleText') == 'System Administrator'){ ?>
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle arrow-none" href="#" id="topnav-others" role="button"
|
||||
@ -945,6 +976,24 @@
|
||||
<a href="<?php echo base_url(); ?>trpProductionDetails" class="dropdown-item"><i class="ri-file-info-line align-middle mr-1"></i>TRP Production Details</a>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- whatsapp voice message -> ask gowtham -> date 22th april 2025-->
|
||||
<?php if(session()->get('roleText') == 'Auditor'){?>
|
||||
<div class="dropdown" >
|
||||
|
||||
<a class="dropdown-item dropdown-toggle arrow-none" href="#" id="topnav-po"
|
||||
role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-arrow-down mr-1"></i> Gas Shortage <div class="arrow-down"></div>
|
||||
</a>
|
||||
|
||||
<div class="dropdown-menu" aria-labelledby="topnav-po" >
|
||||
<a href="<?php echo base_url(); ?>gasCylinderEntered" class="dropdown-item"><i class="fa fa-truck mr-1"></i>Gas Cylinder Entered</a>
|
||||
<a href="<?php echo base_url(); ?>gasCylinderPending" class="dropdown-item"><i class="fa fa fa-hourglass-half mr-1"></i>Gas Cylinder Pending </a>
|
||||
<a href="<?php echo base_url(); ?>gasCylinderReturned" class="dropdown-item"><i class="fa fa-check mr-1"></i>Gas Cylinder Completed</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@ -952,10 +1001,18 @@
|
||||
<?php }?>
|
||||
|
||||
|
||||
<!-- report generation -->
|
||||
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle arrow-none" href="#" id="topnav-report-generation" role="button"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-file"></i> Reports
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="topnav-report-generation">
|
||||
<a class="dropdown-item" href="<?= base_url('reports') ?>">All Reports</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul> <!-- end navbar-->
|
||||
</div> <!-- end .collapsed-->
|
||||
|
||||
@ -204,8 +204,10 @@
|
||||
} ?></td>
|
||||
<td><?php if ($record->IsActive == 0) { ?>
|
||||
|
||||
<a style="cursor:pointer;" onclick="reActivateMaterial('<?php echo $record->MaterialCode; ?>')"><i
|
||||
<span class="auditor-restricted">
|
||||
<a class="auditor-restricted-btn" style="cursor:pointer;" onclick="reActivateMaterial('<?php echo $record->MaterialCode; ?>')"><i
|
||||
class="fa fa-key" style="color:#02a8b5;"></i> </a>
|
||||
</span>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
@ -217,11 +219,12 @@
|
||||
class="fa fa-edit" style="color:#02a8b5;"></i>
|
||||
</a>
|
||||
|
||||
<span class="auditor-restricted">
|
||||
<a class="auditor-restricted-btn" style="cursor:pointer;" data-toggle="tooltip"
|
||||
title="<?= $record->MaterialCode ?> - Click here to delete material details"
|
||||
onclick="deleteMaterial('<?php echo $record->MaterialCode; ?>')"><i class="fa fa-trash"
|
||||
style="color:#02a8b5;"></i>
|
||||
</a>
|
||||
</a></span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -1,277 +1,260 @@
|
||||
|
||||
|
||||
|
||||
<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">
|
||||
<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;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.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" style="
|
||||
font-size: 12px;
|
||||
">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p><b>Total Pending Requests</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if(isset($financialyear)) :
|
||||
$ab=$financialyear;
|
||||
echo ' ';
|
||||
endif;
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
if(isset($month)) :
|
||||
$m=$month;
|
||||
echo ' ';
|
||||
endif;
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
if(isset($from_date) && isset($to_date)) :
|
||||
$frm = $from_date;
|
||||
$t = $to_date;
|
||||
echo $frm.'-to-'.$t;
|
||||
endif;
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
if(isset($aging_from) && isset($aging_to)) :
|
||||
$tfrm = $aging_from;
|
||||
$tt = $aging_to;
|
||||
echo 'Aging between'.' '.$tfrm.'-to-'.$tt.' '.'days';
|
||||
endif;
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="panel-body">
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- <form method="post" action="<?php // echo base_url($this->uri->uri_string()); ?>"> -->
|
||||
<form method="post" action="<?php echo base_url("reportpending"); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<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);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Pending </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="Aging_From">
|
||||
<?php echo 'Aging From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_from" id="aging_from" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="Aging_To">
|
||||
<?php echo 'Aging To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_to" id="aging_to" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="background-color:#fff;font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requistion Date</th>
|
||||
<th>Requistion Number</th>
|
||||
<th>Requested By</th>
|
||||
<th>Department</th>
|
||||
<th>Requistion Type</th>
|
||||
<th>Aging</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($pending_list)){
|
||||
foreach($pending_list as $lis)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<!-- <td><span><?php //$date = new DateTime($lis->ReqDate);echo $date->format('d-m-Y'); ?></span></td>-->
|
||||
<td><span><?php echo $lis->ReqDate?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
<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>
|
||||
|
||||
<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/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://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>
|
||||
<div class="card-body">
|
||||
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<form method="post" action="<?php echo base_url('reportpending'); ?>">
|
||||
|
||||
<div class="row form-group has-feedback">
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
<div class="col-md-3">
|
||||
<label for="Aging_From">
|
||||
<?php echo 'Aging From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_from" id="aging_from" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="Aging_To">
|
||||
<?php echo 'Aging To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_to" id="aging_to" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
"aaSorting": [[ 0, "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'
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
//dateFormat: 'dd-mm-yy'
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requistion Date</th>
|
||||
<th>Requistion Number</th>
|
||||
<th>Requested By</th>
|
||||
<th>Department</th>
|
||||
<th>Requistion Type</th>
|
||||
<th>Aging</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($pending_list)){
|
||||
foreach($pending_list as $lis)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<!-- <td><span><?php //$date = new DateTime($lis->ReqDate);echo $date->format('d-m-Y'); ?></span></td>-->
|
||||
<td><span><?php echo $lis->ReqDate?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</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://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/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.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({
|
||||
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
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
@ -373,6 +356,8 @@ $(document).ready(function() {
|
||||
table.draw();
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
//for clear button
|
||||
function Reset()
|
||||
{
|
||||
@ -389,4 +374,3 @@ function Reset()
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@ -155,21 +155,23 @@
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
<table id="cc" class="table table-bordered table-hover mb-0 nowrap w-100"
|
||||
style="background-color:#fff; font-size:12px;">
|
||||
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Invoice Date</th>
|
||||
<th>Invoice No</th>
|
||||
<th>Client Name</th>
|
||||
<th>Product</th>
|
||||
<th>HSN</th>
|
||||
<th>Quantity</th>
|
||||
<th>Rate</th>
|
||||
<th>Sub Total</th>
|
||||
<th>GST</th>
|
||||
<th>Total</th>
|
||||
<th style="white-space: nowrap !important;">Invoice Date</th>
|
||||
<th style="white-space: nowrap !important;">Invoice No</th>
|
||||
<th style="white-space: nowrap !important;">Client Name</th>
|
||||
<th style="white-space: nowrap !important;">Product</th>
|
||||
<th style="white-space: nowrap !important;">HSN</th>
|
||||
<th style="white-space: nowrap !important;">Quantity</th>
|
||||
<th style="white-space: nowrap !important;">Rate</th>
|
||||
<th style="white-space: nowrap !important;">Sub Total</th>
|
||||
<th style="white-space: nowrap !important;">GST</th>
|
||||
<th style="white-space: nowrap !important;">Total</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
30
app/Views/reportslink.php
Executable file → Normal file
30
app/Views/reportslink.php
Executable file → Normal file
@ -19,27 +19,24 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Pending</p>
|
||||
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
||||
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
||||
<p class="uk-text uk-margin-remove">Total Orders</p>
|
||||
<a href="<?php echo base_url(); ?>reportpending" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||
<a href="<?php echo base_url(); ?>releasedpo" target="_blank"><p class="uk-text uk-margin-remove">Order Value Released</p></a>
|
||||
<a href="<?php echo base_url(); ?>openOrder" target="_blank"><p class="uk-text uk-margin-remove">Open Orders - Pending</p></a>
|
||||
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank"><p class="uk-text uk-margin-remove">Total Orders</p></a>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||
<p class="uk-text-meta uk-margin-remove">Purchase</p>
|
||||
<p class="uk-text-meta uk-margin-remove">Year Wise</p>
|
||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
||||
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
||||
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
||||
|
||||
<a href="<?php echo base_url(); ?>Report_purchase" target="_blank"><p class="uk-text uk-margin-remove">Purchase</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_year_wise" target="_blank"><p class="uk-text uk-margin-remove">Year Wise</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending Purchase</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_supplier" target="_blank"><p class="uk-text uk-margin-remove">purchase - Supplier Wise</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_consolidate" target="_blank"><p class="uk-text uk-margin-remove">purchase - Consolidate</p></a>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
||||
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
||||
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-truck"> Inward</span></h4>
|
||||
@ -61,14 +58,17 @@
|
||||
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
||||
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
currently not used in Ria..!!
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Cashbook Reports</p>
|
||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p>
|
||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p>
|
||||
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
||||
</div>
|
||||
<a href="<?php // echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||
<a href="<?php //echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>
|
||||
</div> -->
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
||||
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||
|
||||
@ -114,9 +114,10 @@ if (!empty($Status)) {
|
||||
<a class="btn btn-success auditor-restricted-btn" href="<?php echo base_url(); ?>RequisitionForm">Raise New Requisition</a>
|
||||
<?php } ?>
|
||||
<?php if ($DraftCount > 0) { ?>
|
||||
<p><span class="highlight auditor-restricted-btn">The Requisition No <b><?php echo $ReqNo; ?></b> is in Draft
|
||||
<a class="btn btn-success auditor-restricted-btn" href="<?php echo base_url(); ?>RequisitionForm">Raise New Requisition</a>
|
||||
<!-- <p><span class="highlight auditor-restricted-btn">The Requisition No <b><?php echo $ReqNo; ?></b> is in Draft
|
||||
status.</span> Please act on the requisition.<span class="highlight">Then only you can raise
|
||||
New Requisition. </span></p>
|
||||
New Requisition. </span></p> -->
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -359,7 +359,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-5" style="margin-top: 23px;">
|
||||
<button type="button" class="btn btn-danger btn-sm"
|
||||
<button type="button" class="btn btn-danger btn-sm account-restricted"
|
||||
id="<?= $value['id']; ?>"
|
||||
onclick="removeContact(this)">Delete</button>
|
||||
</div>
|
||||
@ -368,7 +368,7 @@
|
||||
<?php }
|
||||
} ?>
|
||||
<div class="col-md-4">
|
||||
<button type="button" class="btn btn-primary btn-sm a1" onclick="appendFilesFileds()" id="day">
|
||||
<button type="button" class="btn btn-primary btn-sm a1 account-restricted" onclick="appendFilesFileds()" id="day">
|
||||
Add New File
|
||||
</button>
|
||||
</div>
|
||||
@ -380,7 +380,7 @@
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="button" onclick="saveAttachment()" class="btn btn-primary">Save changes</button>
|
||||
<button type="button" onclick="saveAttachment()" class="btn btn-primary account-restricted">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -488,6 +488,9 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
<?php if(session()->get('roleText') == 'Auditor'){ ?>
|
||||
$(".account-restricted").hide();
|
||||
<?php } ?>
|
||||
// Initialize the DataTable
|
||||
var table = $('#datatable-buttosns').DataTable({
|
||||
|
||||
@ -554,7 +557,7 @@ $(document).ready(function () {
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-5" style="margin-top: 23px;">
|
||||
<div class="col-md-5 account-restricted" style="margin-top: 23px;">
|
||||
<button type="button" class="btn btn-danger btn-sm"
|
||||
id="${element.invoice_attachment_id}"
|
||||
onclick="removeContact(this)">Delete</button>
|
||||
@ -563,6 +566,9 @@ $(document).ready(function () {
|
||||
});
|
||||
$('#filesContainer').html(attachmentsHtml);
|
||||
$('#invoiceModal').modal('show');
|
||||
<?php if(session()->get('roleText') == 'Auditor'){ ?>
|
||||
$(".account-restricted").hide();
|
||||
<?php } ?>
|
||||
},
|
||||
error: function() {
|
||||
// Handle any errors during the AJAX request
|
||||
@ -570,6 +576,9 @@ $(document).ready(function () {
|
||||
$('#invoiceModal').modal('show');
|
||||
}
|
||||
});
|
||||
<?php if(session()->get('roleText') == 'Auditor'){ ?>
|
||||
$(".account-restricted").hide();
|
||||
<?php } ?>
|
||||
}
|
||||
|
||||
function appendFilesFileds(data) {
|
||||
|
||||
@ -725,7 +725,7 @@
|
||||
</select>
|
||||
</span>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||||
<button type="button" id="labReportSubmitId" class="btn btn-success">Save</button>
|
||||
<button type="button" id="labReportSubmitId" class="btn btn-success auditor-restricted-btn">Save</button>
|
||||
<button type="button" id="pdfGenerateId" class="btn btn-primary">Download</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Supplier Listing</h4>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
||||
<a class="btn btn-success auditor-restricted" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -93,7 +93,7 @@
|
||||
</div>
|
||||
|
||||
<a data-toggle="modal" href="#transporterwizard" data-id="0" data-name=""
|
||||
class="btn btn-success">Add New Transporter</a>
|
||||
class="btn btn-success auditor-restricted-btn">Add New Transporter</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -170,7 +170,7 @@
|
||||
<td><?php if ($record->isactive == 1) {echo"Active";}else{echo "InActive";}?></td>
|
||||
<td>
|
||||
<?php if ($record->isactive == 0) { ?>
|
||||
<a onclick="confirmReActivate(event)" style="cursor:pointer;"
|
||||
<a class="auditor-restricted-btn" onclick="confirmReActivate(event)" style="cursor:pointer;"
|
||||
href="<?php echo base_url() . 'reActivateTransporter?id=' . $record->id; ?>"><i
|
||||
class="fa fa-key" style="color:#02a8b5;"></i> </a>
|
||||
<?php } else { ?>
|
||||
@ -180,7 +180,7 @@
|
||||
class="fa fa-edit"></i> </a>
|
||||
<a onclick="confirmDelete(event)"
|
||||
href="<?php echo base_url() . 'deleteTransporter?id=' . $record->id; ?>"><i
|
||||
class="fa fa-trash"></i> </a>
|
||||
class="fa fa-trash auditor-restricted-btn"></i> </a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -230,7 +230,7 @@
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal"
|
||||
value="Cancel">Cancel</button>
|
||||
<button type="button" class="btn btn-info waves-effect waves-light tempClick"
|
||||
<button type="button" class="btn btn-info waves-effect waves-light tempClick auditor-restricted-btn"
|
||||
id="tempClick">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -150,12 +150,12 @@
|
||||
<td><?php if($record->isDeleted == 0) {echo"Active";}else{echo"InActive";} ?></td>
|
||||
<td>
|
||||
<?php if ($record->isDeleted == 1) { ?>
|
||||
|
||||
<a onclick="confirmReActivateUser(event)"
|
||||
class="auditor-restricted-btn"
|
||||
<span class="auditor-restricted">
|
||||
<a class="auditor-restricted-btn" onclick="confirmReActivateUser(event)"
|
||||
href="<?php echo base_url() . 'user/reActivateUser?UID=' . $record->userId . '&EMPID=' . $record->EmpID; ?>">
|
||||
<i class="fas fa-key"></i>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
@ -165,12 +165,13 @@
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<span class="auditor-restricted">
|
||||
<a class="auditor-restricted-btn"
|
||||
onclick="confirmDeleteUser(event)"
|
||||
href="<?php echo base_url() . 'user/deleteUser?UID=' . $record->userId . '&EMPID=' . $record->EmpID; ?>">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user