stock changes 22-04-2025
This commit is contained in:
parent
47fd42baee
commit
fb34df00c1
@ -244,11 +244,21 @@ class Report extends BaseController
|
|||||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||||
$data['purchase'] = $this->dahsboard_Model->report_purchase($cname, $prod, $fa, $aa, $m, $frm, $t);
|
$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['material'] = $this->dahsboard_Model->material_name();
|
||||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
|
|
||||||
$this->loadviews("Report_purchase", $this->global, $data, NULL);
|
$this->loadviews("Report_purchase", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
public function link_purchase()
|
public function link_purchase()
|
||||||
|
|||||||
@ -909,65 +909,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,
|
$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,
|
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
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,
|
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,
|
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,
|
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.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.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.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.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.AfterFreightValue),sum(distinct st.AfterFreightValue)),0) as freight,
|
||||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0) as Package,
|
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0) as Package,
|
||||||
ifnull(rt.Insurance,0) as insurance,
|
ifnull(rt.Insurance,0) as insurance,
|
||||||
round((
|
round((
|
||||||
if(POType = 'IMPORT',sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
if(POType = 'IMPORT',sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||||
if(POType = 'CAPITAL' && CapitalRange = 0,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(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.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.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.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.AfterFreightValue),sum(distinct st.AfterFreightValue)),0)
|
||||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0)
|
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0)
|
||||||
+ ifnull(rt.Insurance,0)
|
+ ifnull(rt.Insurance,0)
|
||||||
- ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0)),2) as total
|
- ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0)),2) as total
|
||||||
FROM t_purchaseorder_master pm
|
FROM t_purchaseorder_master pm
|
||||||
join t_purchaseorder_lineitem pl on pl.PONO = pm.PONO
|
join t_purchaseorder_lineitem pl on pl.PONO = pm.PONO
|
||||||
left join t_materialmaster mm on mm.MaterialCode = pl.MaterialCode
|
left join t_materialmaster mm on mm.MaterialCode = pl.MaterialCode
|
||||||
left join t_supplierdetailsn sd on sd.SupplierID = pm.SupplierID
|
left join t_supplierdetailsn sd on sd.SupplierID = pm.SupplierID
|
||||||
left join t_service_tax st on st.LineItemNo = pl.LineItemNo
|
left join t_service_tax st on st.LineItemNo = pl.LineItemNo
|
||||||
left join t_revenue_tax rt on rt.LineItemNo = pl.LineItemNo
|
left join t_revenue_tax rt on rt.LineItemNo = pl.LineItemNo
|
||||||
where
|
where
|
||||||
pm.Status != 'ST030' and pm.Status != 'ST056' and pm.Status != 'ST027'";
|
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')";
|
$sql .= " and (pm.PODate >= '" . $fa . "-04-01' and pm.PODate <= '" . $aa . "-03-31')";
|
||||||
}
|
}
|
||||||
if ($m != '') {
|
if ($m != '') {
|
||||||
|
|
||||||
$sql .= "and monthname(pm.PODate) = '" . $m . "'";
|
$sql .= "and monthname(pm.PODate) = '" . $m . "'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($frm and $t != '') {
|
if ($frm and $t != '') {
|
||||||
$fromd = date("Y-m-d", strtotime($frm));
|
$fromd = date("Y-m-d", strtotime($frm));
|
||||||
$tod = date("Y-m-d", strtotime($t));
|
$tod = date("Y-m-d", strtotime($t));
|
||||||
|
|
||||||
$sql .= "and date(pm.PODate) >= '" . $fromd . "'
|
$sql .= "and date(pm.PODate) >= '" . $fromd . "'
|
||||||
and date(pm.PODate) <= '" . $tod . "'";
|
and date(pm.PODate) <= '" . $tod . "'";
|
||||||
}
|
}
|
||||||
if ($prod != '') {
|
if ($prod != '') {
|
||||||
|
|
||||||
$sql .= " and mm.MaterialName = '" . $prod . "' ";
|
$sql .= " and mm.MaterialName = '" . $prod . "' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<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;
|
|
||||||
|
|
||||||
}
|
table{
|
||||||
.btn-success {
|
width:auto;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
.dataTables_filter {
|
||||||
<div class="content-wrapper">
|
/* width: 50%; */
|
||||||
<section class="content">
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
<div class="row"style="min-height: 600px;">
|
.dataTables_paginate {
|
||||||
<!-- Left col -->
|
width: 50%;
|
||||||
<div class="col-md-12" style="
|
float: right;
|
||||||
font-size: 12px;
|
text-align: right;
|
||||||
">
|
}
|
||||||
<!-- 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')){
|
div.dt-buttons {
|
||||||
$ab=$this->input->post('financialyear');
|
position: relative;
|
||||||
echo '('.$ab.')';
|
/* float: right; */
|
||||||
echo ' ';
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if($this->input->post('month')){
|
</style>
|
||||||
$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="content-page">
|
||||||
|
<div class="content">
|
||||||
<div class="form-group has-feedback">
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
|
<div>
|
||||||
<div class="col-md-2">
|
<div class="row">
|
||||||
<label for="to_date">
|
<div class="col-12">
|
||||||
<?php echo 'Year'; ?>
|
<div class="page-title-box page-title-box-alt">
|
||||||
</label>
|
<div class="page-title-right">
|
||||||
<div class="input-group">
|
<ol class="breadcrumb m-0">
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
<option value="">Select Year</option>
|
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||||
<?php
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> </b></h4>
|
||||||
|
</li>
|
||||||
foreach($finyear as $item):
|
</ol>
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<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>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
<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>
|
<div class="row">
|
||||||
</div>
|
<div class="col-12">
|
||||||
<!-- /.box -->
|
<div class="card">
|
||||||
</div>
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<div class="card-body">
|
||||||
<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>
|
<form method="post" action="<?php echo base_url('releasedpo'); ?>">
|
||||||
<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>
|
<div class="row form-group has-feedback">
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
|
||||||
|
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// 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() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
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 () {
|
</script>
|
||||||
|
|
||||||
$("#client_name").select2();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.dataTables_filter {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dataTables_paginate {
|
table{
|
||||||
width: 50%;
|
width:auto;
|
||||||
float: right;
|
}
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.dt-buttons {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
.dataTables_filter input {
|
||||||
.btn-success {
|
padding: 4px;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
th{ white-space: nowrap; }
|
|
||||||
td{ white-space: wrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
.dataTables_filter {
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
/* width: 50%; */
|
||||||
table.dataTable thead > tr > th.sorting,
|
float: right;
|
||||||
table.dataTable thead > tr > td.sorting_asc,
|
text-align: right;
|
||||||
table.dataTable thead > tr > td.sorting_desc,
|
}
|
||||||
table.dataTable thead > tr > td.sorting {
|
|
||||||
padding-right: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
div.dt-buttons {
|
||||||
<div class="content-wrapper">
|
position: relative;
|
||||||
<section class="content">
|
/* float: right; */
|
||||||
<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>
|
</style>
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="form-group has-feedback">
|
<!-- start page title -->
|
||||||
<div class="col-md-4">
|
<div>
|
||||||
<label for="client_name">
|
<div class="row">
|
||||||
<?php echo 'Supplier'; ?>
|
<div class="col-12">
|
||||||
</label>
|
<div class="page-title-box page-title-box-alt">
|
||||||
<div class="input-group">
|
<div class="page-title-right">
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
<ol class="breadcrumb m-0">
|
||||||
<option value="">Select Supplier</option>
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
<?php
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
foreach($cust as $item):
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Report - Purchase Consolidate </b></h4>
|
||||||
{?>
|
</li>
|
||||||
|
</ol>
|
||||||
<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>
|
||||||
|
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
<br>
|
</div>
|
||||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
</div>
|
||||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
<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>
|
<div class="card-body">
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2 "><br>
|
<?php } endforeach; ?>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
</div>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</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
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box-body" style="display:block" id="a">
|
foreach($finyear as $item):
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
{?>
|
||||||
<thead>
|
|
||||||
|
<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>
|
<tr>
|
||||||
<th style="text-align:center;">Supplier Name</th>
|
<th style="text-align:center;">Supplier Name</th>
|
||||||
<th style="text-align:center;">Material Name</th>
|
<th style="text-align:center;">Material Name</th>
|
||||||
@ -184,11 +172,11 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
$qfeb = 0;
|
$qfeb = 0;
|
||||||
$qmar = 0;
|
$qmar = 0;
|
||||||
$qtot = 0;
|
$qtot = 0;
|
||||||
$ab=$this->input->post('financialyear');
|
$ab= "";
|
||||||
foreach ($spurchse as $index=>$result) { ?>
|
foreach ($spurchse as $index=>$result) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;">
|
<td style="text-align:left;">
|
||||||
<a href="<?= base_url() ?>report/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>
|
||||||
<td style="text-align:left;"><?php
|
<td style="text-align:left;"><?php
|
||||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||||
@ -405,291 +393,47 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
</div>
|
</div> <!-- end card -->
|
||||||
<div class="box-body" id="b" style="display:none">
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</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>
|
<script>
|
||||||
|
|
||||||
@ -712,19 +456,19 @@ $('#tab').on('search.dt', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var qapril_sum = "<?php echo json_encode($qapr)?>";
|
var qapril_sum = "<?php echo json_encode($qapr??0)?>";
|
||||||
var qmay_sum="<?php echo json_encode($qmay)?>";
|
var qmay_sum="<?php echo json_encode($qmay??0)?>";
|
||||||
var qjune_sum = "<?php echo json_encode($qjun)?>";
|
var qjune_sum = "<?php echo json_encode($qjun??0)?>";
|
||||||
var qjuly_sum = "<?php echo json_encode($qjul)?>";
|
var qjuly_sum = "<?php echo json_encode($qjul??0)?>";
|
||||||
var qaug_sum = "<?php echo json_encode($qaug)?>";
|
var qaug_sum = "<?php echo json_encode($qaug??0)?>";
|
||||||
var qsep_sum= "<?php echo json_encode($qsep)?>";
|
var qsep_sum= "<?php echo json_encode($qsep??0)?>";
|
||||||
var qoct_sum = "<?php echo json_encode($qoct)?>";
|
var qoct_sum = "<?php echo json_encode($qoct??0)?>";
|
||||||
var qnov_sum = "<?php echo json_encode($qnov)?>";
|
var qnov_sum = "<?php echo json_encode($qnov??0)?>";
|
||||||
var qdec_sum= "<?php echo json_encode($qdec)?>";
|
var qdec_sum= "<?php echo json_encode($qdec??0)?>";
|
||||||
var qjan_sum= "<?php echo json_encode($qjan)?>";
|
var qjan_sum= "<?php echo json_encode($qjan??0)?>";
|
||||||
var qfeb_sum= "<?php echo json_encode($qfeb)?>";
|
var qfeb_sum= "<?php echo json_encode($qfeb??0)?>";
|
||||||
var qmar_sum= "<?php echo json_encode($qmar)?>";
|
var qmar_sum= "<?php echo json_encode($qmar??0)?>";
|
||||||
var qtotal_sum= "<?php echo json_encode($qtot)?>";
|
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 vaprilval_sum = "<?php echo json_encode($vapr??0)?>";
|
||||||
var vmayval_sum = "<?php echo json_encode($vmay)?>";
|
var vmayval_sum = "<?php echo json_encode($vmay??0)?>";
|
||||||
var vjuneval_sum = "<?php echo json_encode($vjun)?>";
|
var vjuneval_sum = "<?php echo json_encode($vjun??0)?>";
|
||||||
var vjulyval_sum = "<?php echo json_encode($vjul)?>";
|
var vjulyval_sum = "<?php echo json_encode($vjul??0)?>";
|
||||||
var vaugval_sum = "<?php echo json_encode($vaug)?>";
|
var vaugval_sum = "<?php echo json_encode($vaug??0)?>";
|
||||||
var vsepval_sum = "<?php echo json_encode($vsep)?>";
|
var vsepval_sum = "<?php echo json_encode($vsep??0)?>";
|
||||||
var voctval_sum = "<?php echo json_encode($voct)?>";
|
var voctval_sum = "<?php echo json_encode($voct??0)?>";
|
||||||
var vnovval_sum = "<?php echo json_encode($vnov)?>";
|
var vnovval_sum = "<?php echo json_encode($vnov??0)?>";
|
||||||
var vdecval_sum = "<?php echo json_encode($vdec)?>";
|
var vdecval_sum = "<?php echo json_encode($vdec??0)?>";
|
||||||
var vjanval_sum = "<?php echo json_encode($vjan)?>";
|
var vjanval_sum = "<?php echo json_encode($vjan??0)?>";
|
||||||
var vfebval_sum = "<?php echo json_encode($vfeb)?>";
|
var vfebval_sum = "<?php echo json_encode($vfeb??0)?>";
|
||||||
var vmarval_sum = "<?php echo json_encode($vmar)?>";
|
var vmarval_sum = "<?php echo json_encode($vmar??0)?>";
|
||||||
var vtotalval_sum = "<?php echo json_encode($vtot)?>";
|
var vtotalval_sum = "<?php echo json_encode($vtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1023,20 +767,20 @@ $(document).ready(function() {
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var api = this.api(), data;
|
var api = this.api(), data;
|
||||||
var Final_april_total =parseInt(vaprilval_sum);
|
var Final_april_total =parseInt(vaprilval_sum);
|
||||||
var Final_may_total = parseInt(vmayval_sum);
|
var Final_may_total = parseInt(vmayval_sum);
|
||||||
var Final_june_total = parseInt(vjuneval_sum);
|
var Final_june_total = parseInt(vjuneval_sum);
|
||||||
var Final_july_total = parseInt(vjulyval_sum);
|
var Final_july_total = parseInt(vjulyval_sum);
|
||||||
var Final_aug_total = parseInt(vaugval_sum);
|
var Final_aug_total = parseInt(vaugval_sum);
|
||||||
var Final_sep_total = parseInt(vsepval_sum);
|
var Final_sep_total = parseInt(vsepval_sum);
|
||||||
var Final_oct_total = parseInt(voctval_sum);
|
var Final_oct_total = parseInt(voctval_sum);
|
||||||
var Final_nov_total = parseInt(vnovval_sum);
|
var Final_nov_total = parseInt(vnovval_sum);
|
||||||
var Final_dec_total = parseInt(vdecval_sum);
|
var Final_dec_total = parseInt(vdecval_sum);
|
||||||
var Final_jan_total = parseInt(vjanval_sum);
|
var Final_jan_total = parseInt(vjanval_sum);
|
||||||
var Final_feb_total = parseInt(vfebval_sum);
|
var Final_feb_total = parseInt(vfebval_sum);
|
||||||
var Final_mar_total = parseInt(vmarval_sum);
|
var Final_mar_total = parseInt(vmarval_sum);
|
||||||
var Final_tot = parseInt(vtotalval_sum);
|
var Final_tot = parseInt(vtotalval_sum);
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||||
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||||
@ -1078,4 +822,3 @@ function toggleTables(which)
|
|||||||
</script>
|
</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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<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;
|
|
||||||
|
|
||||||
}
|
table{
|
||||||
.btn-success {
|
width:auto;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
.dataTables_filter {
|
||||||
<div class="content-wrapper">
|
/* width: 50%; */
|
||||||
<section class="content">
|
float: right;
|
||||||
<div class="row" style="min-height: 600px;">
|
text-align: right;
|
||||||
<!-- 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')){
|
.dataTables_paginate {
|
||||||
$ab=$this->input->post('financialyear');
|
width: 50%;
|
||||||
echo '('.$ab.')';
|
float: right;
|
||||||
echo ' ';
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
div.dt-buttons {
|
||||||
if($this->input->post('month')){
|
position: relative;
|
||||||
$m=$this->input->post('month');
|
/* float: right; */
|
||||||
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()); ?>">
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="col-md-2">
|
<!-- start page title -->
|
||||||
<label for="to_date">
|
<div>
|
||||||
<?php echo 'Year'; ?>
|
<div class="row">
|
||||||
</label>
|
<div class="col-12">
|
||||||
<div class="input-group">
|
<div class="page-title-box page-title-box-alt">
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<div class="page-title-right">
|
||||||
<option value="">Select Year</option>
|
<ol class="breadcrumb m-0">
|
||||||
<?php
|
<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">
|
||||||
foreach($finyear as $item):
|
<h4 class="page-title"><b> </b></h4>
|
||||||
|
</li>
|
||||||
{?>
|
</ol>
|
||||||
|
|
||||||
<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>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
<label for="from_date">
|
</div>
|
||||||
<?php echo 'From Date'; ?>
|
<div class="row">
|
||||||
</label>
|
<div class="col-12">
|
||||||
<div class="input-group">
|
<div class="card">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
<div class="card-body">
|
||||||
</span>
|
|
||||||
</div>
|
<form method="post" action="<?php echo base_url('openOrder') ?>">
|
||||||
</div>
|
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="row">
|
||||||
<label for="to_date">
|
<div class="col-md-3">
|
||||||
<?php echo 'To Date'; ?>
|
<label for="to_date">
|
||||||
</label>
|
<?php echo 'Year'; ?>
|
||||||
<div class="input-group">
|
</label>
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<div class="input-group">
|
||||||
<span class="input-group-addon">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
<option value="">Select Year</option>
|
||||||
</span>
|
<?php
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
foreach($finyear as $item):
|
||||||
<div class="col-md-2 col-md-offset-10"><br>
|
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
{?>
|
||||||
value="View Report">
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="to_date">
|
||||||
<div class="box-body">
|
<?php echo 'Month'; ?>
|
||||||
<div>
|
</label>
|
||||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
<div class="input-group">
|
||||||
<thead>
|
<select class="form-control" id="month" name="month">
|
||||||
<tr>
|
<option value="">Select Month</option>
|
||||||
<th>PO No</th>
|
<option value="January">January</option>
|
||||||
<th>PO Type</th>
|
<option value="February">February</option>
|
||||||
<th>PO Date</th>
|
<option value="March">March</option>
|
||||||
<th>Approved Date</th>
|
<option value="April">April</option>
|
||||||
<th>Requested Department</th>
|
<option value="May">May</option>
|
||||||
<th>Total Order Value (₹)</th>
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
</tr>
|
<option value="August">August</option>
|
||||||
</thead>
|
<option value="September">September</option>
|
||||||
<tbody>
|
<option value="October">October</option>
|
||||||
<?php
|
<option value="November">November</option>
|
||||||
$tot=0.00;
|
<option value="December">December</option>
|
||||||
if(!empty($open_po)){
|
</select>
|
||||||
foreach($open_po as $rel)
|
</div>
|
||||||
{
|
</div>
|
||||||
?>
|
<div class="col-md-3">
|
||||||
<tr>
|
<label for="total_order_value_From">
|
||||||
<td><span><?php echo $rel->PONO?></span></td>
|
<?php echo 'Total Order Value From'; ?>
|
||||||
<td><span><?php echo $rel->POType?></span></td>
|
</label>
|
||||||
<td><span><?php echo $rel->PODate?></span></td>
|
<div class="input-group">
|
||||||
<td><span><?php echo $rel->ApprovedDate?></span></td>
|
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
</span>
|
||||||
<td align="right"><span><?php
|
</div>
|
||||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
</div>
|
||||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
<div class="col-md-3">
|
||||||
|
<label for="total_order_value_To">
|
||||||
|
<?php echo 'Total Order Value To'; ?>
|
||||||
</tr>
|
</label>
|
||||||
<?php
|
<div class="input-group">
|
||||||
}
|
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||||
|
</span>
|
||||||
}
|
</div>
|
||||||
?>
|
|
||||||
</tbody>
|
</div>
|
||||||
<tfoot>
|
</div>
|
||||||
<td style="text-align:center"><?php
|
<br>
|
||||||
$t='Total';
|
<div class="row">
|
||||||
echo $t;?></td>
|
<div class="col-md-3">
|
||||||
<td><?php echo '';?></td>
|
<label for="from_date">
|
||||||
<td><?php echo '';?></td>
|
<?php echo 'From Date'; ?>
|
||||||
<td><?php echo '';?></td>
|
</label>
|
||||||
<td><?php echo '';?></td>
|
<div class="input-group">
|
||||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
</tfoot>
|
|
||||||
</table>
|
</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>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
</div>
|
||||||
</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://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.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/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.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.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// 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() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
@ -334,11 +346,6 @@ $( function() {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
//$('.input-daterange').each(function() {
|
|
||||||
// $(this).datepicker('clearDates');
|
|
||||||
//});
|
|
||||||
|
|
||||||
|
|
||||||
// Extend dataTables search
|
// Extend dataTables search
|
||||||
$.fn.dataTable.ext.search.push(
|
$.fn.dataTable.ext.search.push(
|
||||||
function(settings, data, dataIndex) {
|
function(settings, data, dataIndex) {
|
||||||
@ -406,9 +413,4 @@ function Reset()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
@ -1,261 +1,190 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
$("#item_name").select2();
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.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;
|
|
||||||
|
|
||||||
}
|
table{
|
||||||
.btn-success {
|
width:auto;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
th, td { white-space: nowrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
.dataTables_filter input {
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
padding: 4px;
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
/* width: 50%; */
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
.dataTables_paginate {
|
||||||
<div class="content-wrapper">
|
width: 50%;
|
||||||
<section class="content">
|
float: right;
|
||||||
<div class="row" style="min-height: 600px;">
|
text-align: right;
|
||||||
<!-- 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')){
|
div.dt-buttons {
|
||||||
$ab=$this->input->post('financialyear');
|
position: relative;
|
||||||
echo '('.$ab.')';
|
/* float: right; */
|
||||||
echo ' ';
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if($this->input->post('month')){
|
</style>
|
||||||
$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;
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
<div class="content-page">
|
||||||
</p></h3></center>
|
<div class="content">
|
||||||
</div>
|
<!-- Start Content-->
|
||||||
<!-- /.box-header -->
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
<div class="panel-body">
|
<div>
|
||||||
|
<div class="row">
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
<div class="form-group has-feedback">
|
<div class="page-title-right">
|
||||||
<div class="col-md-4">
|
<ol class="breadcrumb m-0">
|
||||||
<label for="client_name">
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
<?php echo 'Supplier'; ?>
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
</label>
|
<li class="breadcrumb-item active">
|
||||||
<div class="input-group">
|
<h4 class="page-title"><b> Report - Purchase </b></h4>
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
</li>
|
||||||
<option value="">Select Supplier</option>
|
</ol>
|
||||||
<?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>
|
|
||||||
<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>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-2"><br>
|
</div>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
</div>
|
||||||
value="View Report">
|
<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>
|
<div class="card-body">
|
||||||
</div>
|
|
||||||
</form>
|
<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;">
|
||||||
|
|
||||||
</div>
|
<!-- <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>
|
||||||
<div class="box-body">
|
<tbody>
|
||||||
<div class = "table-responsive">
|
<?php if(!empty($purchase)){
|
||||||
<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)){
|
|
||||||
$tot_qty = 0;
|
$tot_qty = 0;
|
||||||
$tot_rate = 0;
|
$tot_rate = 0;
|
||||||
$tot_value = 0;
|
$tot_value = 0;
|
||||||
@ -468,230 +397,47 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div> <!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
// Bootstrap datepicker
|
$(document).ready(function() {
|
||||||
// Set up your table
|
// Initialize the DataTable with only pagination enabled
|
||||||
$(document).ready(function() {
|
var table = $('#cc').DataTable({
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
paging: true, // Enable pagination
|
||||||
table = $('#cc').DataTable( {
|
searching: true, // Disable search
|
||||||
"language": {
|
ordering: false, // Disable column sorting
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
info: false, // Disable table information
|
||||||
},
|
lengthChange: false, // Disable page length options
|
||||||
"aaSorting": [[ 1, "desc" ]],
|
pageLength: 10, // Default rows per page
|
||||||
"autoWidth": false,
|
responsive: true, // Keep responsive design
|
||||||
orderCellsTop: true,
|
language: {
|
||||||
|
paginate: {
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
"<'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() );
|
|
||||||
}
|
}
|
||||||
} );
|
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
$( function() {
|
</script>
|
||||||
//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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -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>
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.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;
|
|
||||||
|
|
||||||
}
|
table{
|
||||||
.btn-success {
|
width:auto;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
.dataTables_filter {
|
||||||
<div class="content-wrapper">
|
/* width: 50%; */
|
||||||
<section class="content">
|
float: right;
|
||||||
<div class="row" style="min-height: 600px;">
|
text-align: right;
|
||||||
<!-- 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')){
|
.dataTables_paginate {
|
||||||
$ab=$this->input->post('financialyear');
|
width: 50%;
|
||||||
echo '('.$ab.')';
|
float: right;
|
||||||
echo ' ';
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
div.dt-buttons {
|
||||||
if($this->input->post('month')){
|
position: relative;
|
||||||
$m=$this->input->post('month');
|
/* float: right; */
|
||||||
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>
|
</style>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="content-page">
|
||||||
|
<div class="content">
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<!-- Start Content-->
|
||||||
|
<div class="container-fluid">
|
||||||
<div class="form-group has-feedback">
|
<!-- start page title -->
|
||||||
<div class="col-md-2">
|
<div>
|
||||||
<label for="client_name">
|
<div class="row">
|
||||||
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
<div class="col-12">
|
||||||
</label>
|
<div class="page-title-box page-title-box-alt">
|
||||||
<div class="input-group">
|
<div class="page-title-right">
|
||||||
<select class="form-control" id="client_name" name="client_name" required="true">
|
<ol class="breadcrumb m-0">
|
||||||
<option value="">Select Supplier</option>
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
<?php
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
foreach($cust as $item):
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Report - Purchase supplier wise </b></h4>
|
||||||
{?>
|
</li>
|
||||||
|
</ol>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<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>
|
</div>
|
||||||
<div class="col-md-2"><br>
|
</div>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
</div>
|
||||||
value="View Report">
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
</div>
|
<div class="card">
|
||||||
</div>
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
</form>
|
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url('Report_supplier'); ?>">
|
||||||
</div>
|
<div class="form-group">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">
|
||||||
|
<label for="client_name">
|
||||||
<div class="box-body">
|
<?php echo 'Supplier'; ?>
|
||||||
<div>
|
</label>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<thead>
|
<option value="">Select Supplier</option>
|
||||||
<tr>
|
<?php
|
||||||
<th style="text-align:center">Supplier Name</th>
|
foreach ($cust as $item): { ?>
|
||||||
<th style="text-align:center">PO Count</th>
|
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
<th style="text-align:center">Quantity</th>
|
<?php }
|
||||||
<th style="text-align:center">Value (₹)</th>
|
endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</tr>
|
<div class="col-4">
|
||||||
</thead>
|
<label for="client_name">
|
||||||
<tbody>
|
<?php echo 'Material'; ?>
|
||||||
<?php if(!empty($spurchse)){
|
</label>
|
||||||
$tot_rate = 0;
|
<select class="form-control" id="item_name" name="item_name">
|
||||||
$tot_qty = 0;
|
<option value="">Select Material</option>
|
||||||
$tot_value = 0;
|
<?php
|
||||||
$tot_tot = 0;
|
foreach ($material as $it): { ?>
|
||||||
$ab=$this->input->post('financialyear');
|
<option <?php if(isset($prod) && ($prod == $it->MaterialName)){ echo 'selected'; } ?> value="<?php echo $it->MaterialName; ?>"><?php echo $it->MaterialName; ?></option>
|
||||||
$month=$this->input->post('month');
|
<?php }
|
||||||
$frm = $this->input->post('from_date');
|
endforeach; ?>
|
||||||
$t = $this->input->post('to_date');
|
</select>
|
||||||
foreach($spurchse as $rel)
|
</div>
|
||||||
{
|
<div class="col-2">
|
||||||
?>
|
<label for="to_date">
|
||||||
<tr>
|
<?php echo 'Year'; ?>
|
||||||
<td><span>
|
</label>
|
||||||
<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>
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
</span></td>
|
<option value="">Select Year</option>
|
||||||
<td style="text-align:right"><span><?php
|
<?php
|
||||||
$tot_rate= $tot_rate + round($rel->counts);
|
foreach ($finyear as $item): { ?>
|
||||||
echo round($rel->counts);?></span></td>
|
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||||
<td style="text-align:right"><span><?php
|
<?php }
|
||||||
$tot_qty= $tot_qty + round($rel->quantity);
|
endforeach; ?>
|
||||||
echo round($rel->quantity);?></span></td>
|
</select>
|
||||||
<td style="text-align:right"><span><?php
|
</div>
|
||||||
$tot_value= $tot_value + $rel->value;
|
<div class="col-2">
|
||||||
echo number_format($rel->value,2,'.','');?></span></td>
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
</tr>
|
<option value="">Select Month</option>
|
||||||
<?php
|
<?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; ?>
|
||||||
</tbody>
|
</select>
|
||||||
<tfoot width="100%">
|
</div>
|
||||||
<tr>
|
</div>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
</div>
|
||||||
|
<br>
|
||||||
<td class="amount" style="text-align:right"><strong>
|
<div class="row">
|
||||||
<?php
|
<div class="col-2">
|
||||||
{
|
<label for="from_date">
|
||||||
echo $tot_rate;
|
<?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; } ?>">
|
||||||
</strong>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
<td class="amount" style="text-align:right">
|
<label for="to_date">
|
||||||
<strong>
|
<?php echo 'To Date'; ?>
|
||||||
<?php
|
</label>
|
||||||
{
|
<div class="input-group">
|
||||||
echo $tot_qty;
|
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||||
|
</div>
|
||||||
}
|
|
||||||
?>
|
</div>
|
||||||
</strong>
|
<div class="col-md-6"></div>
|
||||||
</td>
|
<div class="col-md-2 text-right"><br>
|
||||||
<td class="amount" style="text-align:right">
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
<strong>
|
value="View Report">
|
||||||
<?php
|
</div>
|
||||||
{
|
|
||||||
echo number_format($tot_value,2,'.','');
|
</div>
|
||||||
|
</div>
|
||||||
}
|
<div class="form-group has-feedback">
|
||||||
?>
|
|
||||||
</strong>
|
</div>
|
||||||
</td>
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
</tr>
|
|
||||||
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
</tfoot>
|
<thead>
|
||||||
<?php
|
<tr>
|
||||||
}
|
<th style="text-align:center">Supplier Name</th>
|
||||||
|
<th style="text-align:center">PO Count</th>
|
||||||
?>
|
<th style="text-align:center">Quantity</th>
|
||||||
</table>
|
<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>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
// Bootstrap datepicker
|
$(document).ready(function() {
|
||||||
// Set up your table
|
// Initialize the DataTable with only pagination enabled
|
||||||
$(document).ready(function() {
|
var table = $('#cc').DataTable({
|
||||||
table = $('#cc').DataTable( {
|
paging: true, // Enable pagination
|
||||||
"language": {
|
searching: true, // Disable search
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
ordering: false, // Disable column sorting
|
||||||
},
|
info: false, // Disable table information
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
lengthChange: false, // Disable page length options
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
pageLength: 10, // Default rows per page
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
responsive: true, // Keep responsive design
|
||||||
buttons: [
|
language: {
|
||||||
|
paginate: {
|
||||||
{
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
extend: 'excelHtml5',
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
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() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} );
|
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
$( function() {
|
</script>
|
||||||
//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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,110 +1,106 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
.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;
|
|
||||||
|
|
||||||
}
|
table{
|
||||||
.btn-success {
|
width:auto;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
.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=" ">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
|
||||||
</style>
|
<?php } endforeach; ?>
|
||||||
<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')){
|
</select>
|
||||||
$ab=$this->input->post('financialyear');
|
</div>
|
||||||
echo '('.$ab.')';
|
<div class="col-md-2">
|
||||||
echo ' ';
|
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||||
|
value="View Report">
|
||||||
}
|
</div>
|
||||||
|
|
||||||
?></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):
|
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<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>
|
</form>
|
||||||
</div>
|
<table id="req" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
</center>
|
|
||||||
|
|
||||||
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
</div>
|
<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>
|
||||||
<div class="box-body">
|
<tbody>
|
||||||
<div>
|
<?php if(!empty($Total)){
|
||||||
<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)){
|
|
||||||
foreach($Total as $rel)
|
foreach($Total as $rel)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
@ -127,30 +123,31 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
<tfoot width="100%">
|
||||||
|
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
</div> <!-- container -->
|
||||||
</div>
|
</div> <!-- content -->
|
||||||
<!-- /.col -->
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// 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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<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;
|
|
||||||
|
|
||||||
}
|
table{
|
||||||
.btn-success {
|
width:auto;
|
||||||
background-color: #00d976;;
|
}
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
.dataTables_filter {
|
||||||
<div class="content-wrapper">
|
/* width: 50%; */
|
||||||
<section class="content">
|
float: right;
|
||||||
<div class="row" style="min-height: 600px;">
|
text-align: right;
|
||||||
<!-- 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')){
|
.dataTables_paginate {
|
||||||
$ab=$this->input->post('financialyear');
|
width: 50%;
|
||||||
echo '('.$ab.')';
|
float: right;
|
||||||
echo ' ';
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
/* float: right; */
|
||||||
|
|
||||||
?></p></h3></center>
|
}
|
||||||
</div>
|
</style>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6 col-md-offset-3">
|
<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>
|
||||||
|
|
||||||
<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):
|
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit" value="View Report">
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
</form>
|
<div class="col-12">
|
||||||
</div>
|
<div class="card">
|
||||||
</center>
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
</div>
|
<div class="card-body">
|
||||||
|
|
||||||
<?php
|
<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; ?>
|
||||||
|
|
||||||
if(!empty($year)){
|
</select>
|
||||||
?>
|
</div>
|
||||||
<div class="box-body">
|
<div class="col-md-6"></div>
|
||||||
<div>
|
<div class="col-md-2 text-right"><br>
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
<thead>
|
value="View Report">
|
||||||
<tr>
|
</div>
|
||||||
<th style="text-align:center">Month-Year</th>
|
|
||||||
<th style="text-align:center">Quantity</th>
|
</div>
|
||||||
<th style="text-align:center">Total Value (₹)</th>
|
</div>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</form>
|
||||||
</thead>
|
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
<tbody>
|
|
||||||
|
<!-- <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
|
<?php
|
||||||
$tr3=0;
|
$tr3=0;
|
||||||
$tr4=00;
|
$tr4=00;
|
||||||
|
if(isset($year)){
|
||||||
foreach($year as $rel)
|
foreach($year as $rel)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td style="text-align:center"><span>
|
<td style="text-align:center">
|
||||||
<?php
|
<?php
|
||||||
$date = strtotime($rel->created_date);
|
$date = strtotime($rel->created_date);
|
||||||
$new = date('M-y', $date);
|
$new = date('M-y', $date);
|
||||||
$pass = date('Y-m-d',$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>
|
</td>
|
||||||
</span></td>
|
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tr3= $tr3 + $rel->quantity;
|
$tr3= $tr3 + $rel->quantity;
|
||||||
echo round($rel->quantity);?></span></td>
|
echo round($rel->quantity);?></span></td>
|
||||||
@ -125,14 +140,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong><?php
|
<td style="text-align:center;"><strong>Total</strong>
|
||||||
$ab=$this->input->post('financialyear');
|
|
||||||
$Total="Total";
|
|
||||||
echo anchor('report/year_wise_total/' . $ab,$Total); ?></strong>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -162,119 +175,44 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
<!-- /.box -->
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
// Bootstrap datepicker
|
||||||
"date-range-pre": function ( a ) {
|
// Set up your table
|
||||||
var monthArr = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
$(document).ready(function() {
|
||||||
return monthArr.indexOf(a);
|
// Initialize the DataTable with only pagination enabled
|
||||||
},
|
var table = $('#cc').DataTable({
|
||||||
"date-range-asc": function ( a, b ) {
|
paging: true, // Enable pagination
|
||||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
searching: true, // Disable search
|
||||||
},
|
ordering: false, // Disable column sorting
|
||||||
"date-range-desc": function ( a, b ) {
|
info: false, // Disable table information
|
||||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
lengthChange: false, // Disable page length options
|
||||||
}
|
pageLength: 12, // Default rows per page
|
||||||
} );
|
responsive: true, // Keep responsive design
|
||||||
|
language: {
|
||||||
// Bootstrap datepicker
|
paginate: {
|
||||||
// Set up your table
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
$(document).ready(function() {
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
$.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() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} );
|
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
});
|
||||||
function Reset()
|
});
|
||||||
{
|
</script>
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,277 +1,260 @@
|
|||||||
|
|
||||||
|
|
||||||
<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><b>Total Pending Requests</b>
|
|
||||||
<br><br>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if(isset($financialyear)) :
|
|
||||||
$ab=$financialyear;
|
|
||||||
echo ' ';
|
|
||||||
endif;
|
|
||||||
|
|
||||||
if(isset($month)) :
|
|
||||||
$m=$month;
|
|
||||||
echo ' ';
|
|
||||||
endif;
|
|
||||||
|
|
||||||
if(isset($from_date) && isset($to_date)) :
|
|
||||||
$frm = $from_date;
|
|
||||||
$t = $to_date;
|
|
||||||
echo $frm.'-to-'.$t;
|
|
||||||
endif;
|
|
||||||
|
|
||||||
if(isset($aging_from) && isset($aging_to)) :
|
|
||||||
$tfrm = $aging_from;
|
|
||||||
$tt = $aging_to;
|
|
||||||
echo 'Aging between'.' '.$tfrm.'-to-'.$tt.' '.'days';
|
|
||||||
endif;
|
|
||||||
|
|
||||||
?>
|
|
||||||
</p></h3></center>
|
|
||||||
</div>
|
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <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>
|
|
||||||
<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>
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
|
||||||
<script src="https://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>
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
});
|
||||||
// Set up your table
|
</script>
|
||||||
|
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
$(document).ready(function() {
|
<style>
|
||||||
table = $('#req').DataTable( {
|
|
||||||
"language": {
|
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
|
||||||
},
|
|
||||||
|
|
||||||
"aaSorting": [[ 0, "desc" ]],
|
table{
|
||||||
"autoWidth": false,
|
width:auto;
|
||||||
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: [
|
|
||||||
|
|
||||||
{
|
.dataTables_filter input {
|
||||||
extend: 'excelHtml5',
|
padding: 4px;
|
||||||
footer: 'true',
|
}
|
||||||
|
|
||||||
//messageTop: $('h3').text(),
|
.dataTables_filter {
|
||||||
title: $('h3').text(),
|
/* width: 50%; */
|
||||||
exportOptions: {
|
float: right;
|
||||||
columns: ':visible'
|
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);">Requisation</a></li>
|
||||||
|
<li class="breadcrumb-item active">
|
||||||
|
<h4 class="page-title"><b> Pending </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('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>
|
||||||
|
|
||||||
|
<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="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>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<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"></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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
'colvis'
|
|
||||||
]
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
//dateFormat: 'dd-mm-yy'
|
|
||||||
|
|
||||||
$( function() {
|
$( function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
@ -373,6 +356,8 @@ $(document).ready(function() {
|
|||||||
table.draw();
|
table.draw();
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
//for clear button
|
//for clear button
|
||||||
function Reset()
|
function Reset()
|
||||||
{
|
{
|
||||||
@ -389,4 +374,3 @@ function Reset()
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -19,27 +19,24 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||||
<p class="uk-text uk-margin-remove">Pending</p>
|
<a href="<?php echo base_url(); ?>reportpending" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||||
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
<a href="<?php echo base_url(); ?>releasedpo" target="_blank"><p class="uk-text uk-margin-remove">Order Value Released</p></a>
|
||||||
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
<a href="<?php echo base_url(); ?>openOrder" target="_blank"><p class="uk-text uk-margin-remove">Open Orders - Pending</p></a>
|
||||||
<p class="uk-text uk-margin-remove">Total Orders</p>
|
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank"><p class="uk-text uk-margin-remove">Total Orders</p></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||||
<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_purchase" target="_blank"><p class="uk-text uk-margin-remove">Purchase</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Year Wise</p>
|
<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</p></a>
|
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending Purchase</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
<a href="<?php echo base_url(); ?>Report_supplier" target="_blank"><p class="uk-text uk-margin-remove">purchase - Supplier Wise</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
<a href="<?php echo base_url(); ?>Report_consolidate" target="_blank"><p class="uk-text uk-margin-remove">purchase - Consolidate</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
<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 - supplier wise</p>
|
||||||
<p class="uk-text uk-margin-remove">Material Master - Item 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>
|
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-truck"> Inward</span></h4>
|
<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">Cost Cente</p>
|
||||||
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
currently not used in Ria..!!
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
<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 Reports</p>
|
||||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative 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>
|
<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(); ?>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>-->
|
<a href="<?php //echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
<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>
|
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user