stock changes 22-04-2025
This commit is contained in:
parent
47fd42baee
commit
fb34df00c1
@ -244,10 +244,20 @@ class Report extends BaseController
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['purchase'] = $this->dahsboard_Model->report_purchase($cname, $prod, $fa, $aa, $m, $frm, $t);
|
||||
|
||||
$data['cname'] = $cname;
|
||||
$data['prod'] = $prod;
|
||||
$data['ab'] = $ab;
|
||||
$data['m'] = $m;
|
||||
$data['frm'] = $frm;
|
||||
$data['t'] = $t;
|
||||
|
||||
}
|
||||
|
||||
$data['material'] = $this->dahsboard_Model->material_name();
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
|
||||
|
||||
$this->loadviews("Report_purchase", $this->global, $data, NULL);
|
||||
}
|
||||
|
||||
@ -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,
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(distinct pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(distinct pl.Rate),0) as rate,
|
||||
round(ifnull(sum(distinct pl.Quantity * pl.Rate),0),2) as value,
|
||||
if(POType = 'IMPORT' or POType = 'CAPITAL',sum(distinct pm.ExchangeRate),0) as exchange_rate,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0) as sgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0) as cgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0) as igst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0) as discount,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0) as freight,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0) as Package,
|
||||
ifnull(rt.Insurance,0) as insurance,
|
||||
round((
|
||||
if(POType = 'IMPORT',sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
if(POType = 'CAPITAL' && CapitalRange = 0,sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
ifnull(sum(pl.Quantity * pl.Rate),0)))
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0)
|
||||
+ ifnull(rt.Insurance,0)
|
||||
- ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0)),2) as total
|
||||
FROM t_purchaseorder_master pm
|
||||
join t_purchaseorder_lineitem pl on pl.PONO = pm.PONO
|
||||
left join t_materialmaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join t_supplierdetailsn sd on sd.SupplierID = pm.SupplierID
|
||||
left join t_service_tax st on st.LineItemNo = pl.LineItemNo
|
||||
left join t_revenue_tax rt on rt.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.Status != 'ST030' and pm.Status != 'ST056' and pm.Status != 'ST027'";
|
||||
TIME_FORMAT(pm.PODate,'%l:%i %p') as created_time,
|
||||
mm.MaterialName as material_name,sd.SupplierName as supplier_name,
|
||||
ifnull(sum(distinct pl.Quantity),0) as quantity,mm.UOM as UOM,ifnull(sum(distinct pl.Rate),0) as rate,
|
||||
round(ifnull(sum(distinct pl.Quantity * pl.Rate),0),2) as value,
|
||||
if(POType = 'IMPORT' or POType = 'CAPITAL',sum(distinct pm.ExchangeRate),0) as exchange_rate,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0) as sgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0) as cgst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0) as igst,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0) as discount,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0) as freight,
|
||||
ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0) as Package,
|
||||
ifnull(rt.Insurance,0) as insurance,
|
||||
round((
|
||||
if(POType = 'IMPORT',sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
if(POType = 'CAPITAL' && CapitalRange = 0,sum(distinct pm.ExchangeRate * (pl.Quantity * pl.Rate)),
|
||||
ifnull(sum(pl.Quantity * pl.Rate),0)))
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterSGST),sum(distinct st.After_SGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterCGST),sum(distinct st.After_CGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterIGST),sum(distinct st.After_IGST)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterFreightValue),sum(distinct st.AfterFreightValue)),0)
|
||||
+ ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterPackagingValue),0),0)
|
||||
+ ifnull(rt.Insurance,0)
|
||||
- ifnull(if(POType = 'REVENUE',sum(distinct rt.AfterDiscount),sum(distinct st.Afterdiscountval)),0)),2) as total
|
||||
FROM t_purchaseorder_master pm
|
||||
join t_purchaseorder_lineitem pl on pl.PONO = pm.PONO
|
||||
left join t_materialmaster mm on mm.MaterialCode = pl.MaterialCode
|
||||
left join t_supplierdetailsn sd on sd.SupplierID = pm.SupplierID
|
||||
left join t_service_tax st on st.LineItemNo = pl.LineItemNo
|
||||
left join t_revenue_tax rt on rt.LineItemNo = pl.LineItemNo
|
||||
where
|
||||
pm.Status != 'ST030' and pm.Status != 'ST056' and pm.Status != 'ST027'";
|
||||
|
||||
if ($cname != '') {
|
||||
if ($cname != '') {
|
||||
|
||||
$sql .= "and sd.SupplierName = '" . $cname . "'";
|
||||
}
|
||||
$sql .= "and sd.SupplierName = '" . $cname . "'";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($fa and $aa != '') {
|
||||
if ($fa and $aa != '') {
|
||||
|
||||
$sql .= " and (pm.PODate >= '" . $fa . "-04-01' and pm.PODate <= '" . $aa . "-03-31')";
|
||||
}
|
||||
if ($m != '') {
|
||||
$sql .= " and (pm.PODate >= '" . $fa . "-04-01' and pm.PODate <= '" . $aa . "-03-31')";
|
||||
}
|
||||
if ($m != '') {
|
||||
|
||||
$sql .= "and monthname(pm.PODate) = '" . $m . "'";
|
||||
}
|
||||
$sql .= "and monthname(pm.PODate) = '" . $m . "'";
|
||||
}
|
||||
|
||||
if ($frm and $t != '') {
|
||||
$fromd = date("Y-m-d", strtotime($frm));
|
||||
$tod = date("Y-m-d", strtotime($t));
|
||||
if ($frm and $t != '') {
|
||||
$fromd = date("Y-m-d", strtotime($frm));
|
||||
$tod = date("Y-m-d", strtotime($t));
|
||||
|
||||
$sql .= "and date(pm.PODate) >= '" . $fromd . "'
|
||||
and date(pm.PODate) <= '" . $tod . "'";
|
||||
}
|
||||
if ($prod != '') {
|
||||
$sql .= "and date(pm.PODate) >= '" . $fromd . "'
|
||||
and date(pm.PODate) <= '" . $tod . "'";
|
||||
}
|
||||
if ($prod != '') {
|
||||
|
||||
$sql .= " and mm.MaterialName = '" . $prod . "' ";
|
||||
}
|
||||
$sql .= " and mm.MaterialName = '" . $prod . "' ";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,253 +1,258 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
|
||||
<div class="row"style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" style="
|
||||
font-size: 12px;
|
||||
">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Order Value - Released</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
if($this->input->post('total_order_value_From') && $this->input->post('total_order_value_To')){
|
||||
$tfrm = $this->input->post('total_order_value_From');
|
||||
$tt = $this->input->post('total_order_value_To');
|
||||
echo 'Total Order Value between'.' '.'RS.'.$tfrm.'-to-'.'RS.'.$tt;
|
||||
}
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="panel-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Released Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($rel_po)){
|
||||
foreach($rel_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->PODate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<td style="text-align:center"><?php
|
||||
$t='Total';
|
||||
echo $t;?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url('releasedpo'); ?>">
|
||||
|
||||
<div class="row form-group has-feedback">
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Released Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($rel_po)){
|
||||
foreach($rel_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->PODate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('d-m-Y'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<td style="text-align:center"><?php
|
||||
$t='Total';
|
||||
echo $t;?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
@ -409,7 +414,4 @@ function Reset()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
@ -1,153 +1,141 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
th{ white-space: nowrap; }
|
||||
td{ white-space: wrap; }
|
||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
||||
content: "" !important;
|
||||
}
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
table.dataTable thead > tr > th.sorting_asc,
|
||||
table.dataTable thead > tr > th.sorting_desc,
|
||||
table.dataTable thead > tr > th.sorting,
|
||||
table.dataTable thead > tr > td.sorting_asc,
|
||||
table.dataTable thead > tr > td.sorting_desc,
|
||||
table.dataTable thead > tr > td.sorting {
|
||||
padding-right: inherit;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Consolidate</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
}
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
}
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Report - Purchase Consolidate </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<br>
|
||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body" style="display:block" id="a">
|
||||
|
||||
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
||||
<thead>
|
||||
<form method="post" action="<?php echo base_url('Report_consolidate'); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<br>
|
||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier Name</th>
|
||||
<th style="text-align:center;">Material Name</th>
|
||||
@ -184,11 +172,11 @@ table.dataTable thead > tr > td.sorting {
|
||||
$qfeb = 0;
|
||||
$qmar = 0;
|
||||
$qtot = 0;
|
||||
$ab=$this->input->post('financialyear');
|
||||
$ab= "";
|
||||
foreach ($spurchse as $index=>$result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;">
|
||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&ab=<?php echo $ab;?>"><?php echo $result->supplier_name;?> </a>
|
||||
<?php echo $result->supplier_name;?>
|
||||
</td>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
@ -405,291 +393,47 @@ table.dataTable thead > tr > td.sorting {
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="box-body" id="b" style="display:none">
|
||||
|
||||
|
||||
<table class="table table-bordered table-hover" style="font-size:14px;" id="ta">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center;">Supplier Name</th>
|
||||
<th style="text-align:center;">Material Name</th>
|
||||
<th style="text-align:center;">Apr (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">May (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Jun (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center;">Jul (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Aug (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center;">Sep (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Oct (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Nov (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Dec (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center;">Jan (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align: center;">Feb (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align: center;">Mar (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align: center;">Total (<i class="fa fa-rupee " ></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($spurchse)){
|
||||
$vapr = 0;
|
||||
$vmay = 0;
|
||||
$vjun = 0;
|
||||
$vjul = 0;
|
||||
$vaug = 0;
|
||||
$vsep = 0;
|
||||
$voct = 0;
|
||||
$vnov = 0;
|
||||
$vdec = 0;
|
||||
$vjan = 0;
|
||||
$vfeb = 0;
|
||||
$vmar = 0;
|
||||
$vtot = 0;
|
||||
foreach ($spurchse as $index=>$result) { ?>
|
||||
<tr>
|
||||
<td style="text-align:left;">
|
||||
<a href="<?= base_url() ?>report/link_purchase?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>"><?php echo $result->supplier_name;?> </a>
|
||||
</td>
|
||||
<td style="text-align:left;"><?php
|
||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||
?></td>
|
||||
<td style="text-align:right;"><span id="aprilval<?php echo $index?>"><?php
|
||||
$vapr= $vapr + number_format($result->vApril,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'April';?>"><?php echo number_format($result->vApril,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="mayval<?php echo $index?>"><?php
|
||||
$vmay= $vmay + number_format($result->vMay,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'May';?>"><?php echo number_format($result->vMay,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id ="juneval<?php echo $index?>"><?php
|
||||
$vjun= $vjun + number_format($result->vJune,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'June';?>"><?php echo number_format($result->vJune,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="julyval<?php echo $index?>"><?php
|
||||
$vjul= $vjul + number_format($result->vJuly,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'July';?>"><?php echo number_format($result->vJuly,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="augval<?php echo $index?>"><?php
|
||||
$vaug= $vaug + number_format($result->vAugust,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'August';?>"><?php echo number_format($result->vAugust,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="sepval<?php echo $index?>"><?php
|
||||
$vsep= $vsep + number_format($result->vSeptember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'September';?>"><?php echo number_format($result->vSeptember,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="octval<?php echo $index?>"><?php
|
||||
$voct= $voct + number_format($result->vOctober,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'October';?>"><?php echo number_format($result->vOctober,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="novval<?php echo $index?>"><?php
|
||||
$vnov= $vnov + number_format($result->vNovember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'November';?>"><?php echo number_format($result->vNovember,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="decval<?php echo $index?>"><?php
|
||||
$vdec= $vdec + number_format($result->vDecember,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'December';?>"><?php echo number_format($result->vDecember,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="janval<?php echo $index?>"><?php
|
||||
$vjan= $vjan + number_format($result->vJanuary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'January';?>"><?php echo number_format($result->vJanuary,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="febval<?php echo $index?>"><?php
|
||||
$vfeb= $vfeb + number_format($result->vFebruary,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'February';?>"><?php echo number_format($result->vFebruary,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="marval<?php echo $index?>"><?php
|
||||
$vmar= $vmar + number_format($result->vMarch,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_month?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&m=<?php echo 'March';?>"><?php echo number_format($result->vMarch,2,'.','');?> </a></span>
|
||||
</td>
|
||||
<td style="text-align:right;"><span id="totalval<?php echo $index?>"><?php
|
||||
$vtot= $vtot + number_format($result->vtotal,2,'.','');
|
||||
?>
|
||||
<a href="<?= base_url() ?>report/consolidate_year?ab=<?php echo $ab;?>&sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>"><?php echo number_format($result->vtotal,2,'.','');?> </a></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
<td><strong><?php
|
||||
{
|
||||
echo '';
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong><?php
|
||||
{
|
||||
echo number_format($vapr,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vmay,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vjun,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vjul,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vaug,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vsep,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;"><strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($voct,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vnov,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vdec,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vjan,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vfeb,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vmar,2,'.','');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
<td style="text-align:right;">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($vtot,2,'.','');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</strong></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
@ -712,19 +456,19 @@ $('#tab').on('search.dt', function() {
|
||||
});
|
||||
|
||||
|
||||
var qapril_sum = "<?php echo json_encode($qapr)?>";
|
||||
var qmay_sum="<?php echo json_encode($qmay)?>";
|
||||
var qjune_sum = "<?php echo json_encode($qjun)?>";
|
||||
var qjuly_sum = "<?php echo json_encode($qjul)?>";
|
||||
var qaug_sum = "<?php echo json_encode($qaug)?>";
|
||||
var qsep_sum= "<?php echo json_encode($qsep)?>";
|
||||
var qoct_sum = "<?php echo json_encode($qoct)?>";
|
||||
var qnov_sum = "<?php echo json_encode($qnov)?>";
|
||||
var qdec_sum= "<?php echo json_encode($qdec)?>";
|
||||
var qjan_sum= "<?php echo json_encode($qjan)?>";
|
||||
var qfeb_sum= "<?php echo json_encode($qfeb)?>";
|
||||
var qmar_sum= "<?php echo json_encode($qmar)?>";
|
||||
var qtotal_sum= "<?php echo json_encode($qtot)?>";
|
||||
var qapril_sum = "<?php echo json_encode($qapr??0)?>";
|
||||
var qmay_sum="<?php echo json_encode($qmay??0)?>";
|
||||
var qjune_sum = "<?php echo json_encode($qjun??0)?>";
|
||||
var qjuly_sum = "<?php echo json_encode($qjul??0)?>";
|
||||
var qaug_sum = "<?php echo json_encode($qaug??0)?>";
|
||||
var qsep_sum= "<?php echo json_encode($qsep??0)?>";
|
||||
var qoct_sum = "<?php echo json_encode($qoct??0)?>";
|
||||
var qnov_sum = "<?php echo json_encode($qnov??0)?>";
|
||||
var qdec_sum= "<?php echo json_encode($qdec??0)?>";
|
||||
var qjan_sum= "<?php echo json_encode($qjan??0)?>";
|
||||
var qfeb_sum= "<?php echo json_encode($qfeb??0)?>";
|
||||
var qmar_sum= "<?php echo json_encode($qmar??0)?>";
|
||||
var qtotal_sum= "<?php echo json_encode($qtot??0)?>";
|
||||
|
||||
|
||||
|
||||
@ -896,19 +640,19 @@ $(document).ready(function() {
|
||||
|
||||
|
||||
|
||||
var vaprilval_sum = "<?php echo json_encode($vapr)?>";
|
||||
var vmayval_sum = "<?php echo json_encode($vmay)?>";
|
||||
var vjuneval_sum = "<?php echo json_encode($vjun)?>";
|
||||
var vjulyval_sum = "<?php echo json_encode($vjul)?>";
|
||||
var vaugval_sum = "<?php echo json_encode($vaug)?>";
|
||||
var vsepval_sum = "<?php echo json_encode($vsep)?>";
|
||||
var voctval_sum = "<?php echo json_encode($voct)?>";
|
||||
var vnovval_sum = "<?php echo json_encode($vnov)?>";
|
||||
var vdecval_sum = "<?php echo json_encode($vdec)?>";
|
||||
var vjanval_sum = "<?php echo json_encode($vjan)?>";
|
||||
var vfebval_sum = "<?php echo json_encode($vfeb)?>";
|
||||
var vmarval_sum = "<?php echo json_encode($vmar)?>";
|
||||
var vtotalval_sum = "<?php echo json_encode($vtot)?>";
|
||||
var vaprilval_sum = "<?php echo json_encode($vapr??0)?>";
|
||||
var vmayval_sum = "<?php echo json_encode($vmay??0)?>";
|
||||
var vjuneval_sum = "<?php echo json_encode($vjun??0)?>";
|
||||
var vjulyval_sum = "<?php echo json_encode($vjul??0)?>";
|
||||
var vaugval_sum = "<?php echo json_encode($vaug??0)?>";
|
||||
var vsepval_sum = "<?php echo json_encode($vsep??0)?>";
|
||||
var voctval_sum = "<?php echo json_encode($voct??0)?>";
|
||||
var vnovval_sum = "<?php echo json_encode($vnov??0)?>";
|
||||
var vdecval_sum = "<?php echo json_encode($vdec??0)?>";
|
||||
var vjanval_sum = "<?php echo json_encode($vjan??0)?>";
|
||||
var vfebval_sum = "<?php echo json_encode($vfeb??0)?>";
|
||||
var vmarval_sum = "<?php echo json_encode($vmar??0)?>";
|
||||
var vtotalval_sum = "<?php echo json_encode($vtot??0)?>";
|
||||
|
||||
|
||||
|
||||
@ -1023,20 +767,20 @@ $(document).ready(function() {
|
||||
{
|
||||
|
||||
|
||||
var api = this.api(), data;
|
||||
var Final_april_total =parseInt(vaprilval_sum);
|
||||
var Final_may_total = parseInt(vmayval_sum);
|
||||
var Final_june_total = parseInt(vjuneval_sum);
|
||||
var Final_july_total = parseInt(vjulyval_sum);
|
||||
var Final_aug_total = parseInt(vaugval_sum);
|
||||
var Final_sep_total = parseInt(vsepval_sum);
|
||||
var Final_oct_total = parseInt(voctval_sum);
|
||||
var Final_nov_total = parseInt(vnovval_sum);
|
||||
var Final_dec_total = parseInt(vdecval_sum);
|
||||
var Final_jan_total = parseInt(vjanval_sum);
|
||||
var Final_feb_total = parseInt(vfebval_sum);
|
||||
var Final_mar_total = parseInt(vmarval_sum);
|
||||
var Final_tot = parseInt(vtotalval_sum);
|
||||
var api = this.api(), data;
|
||||
var Final_april_total =parseInt(vaprilval_sum);
|
||||
var Final_may_total = parseInt(vmayval_sum);
|
||||
var Final_june_total = parseInt(vjuneval_sum);
|
||||
var Final_july_total = parseInt(vjulyval_sum);
|
||||
var Final_aug_total = parseInt(vaugval_sum);
|
||||
var Final_sep_total = parseInt(vsepval_sum);
|
||||
var Final_oct_total = parseInt(voctval_sum);
|
||||
var Final_nov_total = parseInt(vnovval_sum);
|
||||
var Final_dec_total = parseInt(vdecval_sum);
|
||||
var Final_jan_total = parseInt(vjanval_sum);
|
||||
var Final_feb_total = parseInt(vfebval_sum);
|
||||
var Final_mar_total = parseInt(vmarval_sum);
|
||||
var Final_tot = parseInt(vtotalval_sum);
|
||||
|
||||
$( api.column( 2 ).footer() ).html( Final_april_total.toFixed(2).bold() );
|
||||
$( api.column( 3 ).footer() ).html( Final_may_total.toFixed(2).bold() );
|
||||
@ -1077,5 +821,4 @@ function toggleTables(which)
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -1,252 +1,264 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" style="
|
||||
font-size: 12px;
|
||||
">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Open Orders - Pending</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
if($this->input->post('total_order_value_From') && $this->input->post('total_order_value_To')){
|
||||
$tfrm = $this->input->post('total_order_value_From');
|
||||
$tt = $this->input->post('total_order_value_To');
|
||||
echo 'Total Order Value between'.' '.'RS.'.$tfrm.'-to-'.'RS.'.$tt;
|
||||
}
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="panel-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Approved Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($open_po)){
|
||||
foreach($open_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php echo $rel->PODate?></span></td>
|
||||
<td><span><?php echo $rel->ApprovedDate?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<td style="text-align:center"><?php
|
||||
$t='Total';
|
||||
echo $t;?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url('openOrder') ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_From">
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="total_order_value_To">
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO No</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO Date</th>
|
||||
<th>Approved Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tot=0.00;
|
||||
if(!empty($open_po)){
|
||||
foreach($open_po as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td><span><?php echo $rel->PODate?></span></td>
|
||||
<td><span><?php echo $rel->ApprovedDate?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php
|
||||
$tot= $tot + number_format($rel->TotalOrderValue,2,'.','');
|
||||
echo number_format($rel->TotalOrderValue,2,'.','')?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<td style="text-align:center"><?php
|
||||
$t='Total';
|
||||
echo $t;?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td><?php echo '';?></td>
|
||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
@ -334,11 +346,6 @@ $( function() {
|
||||
} );
|
||||
|
||||
|
||||
//$('.input-daterange').each(function() {
|
||||
// $(this).datepicker('clearDates');
|
||||
//});
|
||||
|
||||
|
||||
// Extend dataTables search
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function(settings, data, dataIndex) {
|
||||
@ -406,9 +413,4 @@ function Reset()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
@ -1,261 +1,190 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
|
||||
|
||||
});
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
th, td { white-space: nowrap; }
|
||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
||||
content: "" !important;
|
||||
}
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
table.dataTable thead > tr > th.sorting_asc,
|
||||
table.dataTable thead > tr > th.sorting_desc,
|
||||
table.dataTable thead > tr > th.sorting,
|
||||
table.dataTable thead > tr > td.sorting_asc,
|
||||
table.dataTable thead > tr > td.sorting_desc,
|
||||
table.dataTable thead > tr > td.sorting {
|
||||
padding-right: inherit;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Purchase</b>
|
||||
<br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
echo ' '.' ';
|
||||
}
|
||||
if($this->input->post('item_name')){
|
||||
$it=$this->input->post('item_name');
|
||||
echo $it;
|
||||
echo ' '.' ';
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo'Material'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($material as $it):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Report - Purchase </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-2"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class = "table-responsive">
|
||||
<table class="table table-bordered" id="cc" style="font-size:12px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO No</th>
|
||||
<th style="text-align:center">Date</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">UOM</th>
|
||||
<th style="text-align:center">Rate (₹)</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
<th style="text-align:center">Exchange Rate</th>
|
||||
<th style="text-align:center">SGST (₹)</th>
|
||||
<th style="text-align:center">CGST (₹)</th>
|
||||
<th style="text-align:center">IGST (₹)</th>
|
||||
<th style="text-align:center">Discount (₹)</th>
|
||||
<th style="text-align:center">Freight (₹)</th>
|
||||
<th style="text-align:center">Package (₹)</th>
|
||||
<th style="text-align:center">Insurance (₹)</th>
|
||||
<th style="text-align:center">Total (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($purchase)){
|
||||
<form method="post" action="<?php echo base_url('Report_purchase'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach ($cust as $item): { ?>
|
||||
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
foreach ($material as $it): { ?>
|
||||
<option <?php if(isset($prod) && ($prod == $it->MaterialName)){ echo 'selected'; } ?> value="<?php echo $it->MaterialName; ?>"><?php echo $it->MaterialName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach ($finyear as $item): { ?>
|
||||
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<?php $months = ["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"]; ?>
|
||||
<?php foreach ($months as $month): { ?>
|
||||
<option <?php if(isset($m) && ($m == $month)){ echo 'selected'; } ?> value="<?php echo $month; ?>"><?php echo $month; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">PO No</th>
|
||||
<th style="text-align:center">Date</th>
|
||||
<th style="text-align:center">Material Name</th>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">UOM</th>
|
||||
<th style="text-align:center">Rate (₹)</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
<th style="text-align:center">Exchange Rate</th>
|
||||
<th style="text-align:center">SGST (₹)</th>
|
||||
<th style="text-align:center">CGST (₹)</th>
|
||||
<th style="text-align:center">IGST (₹)</th>
|
||||
<th style="text-align:center">Discount (₹)</th>
|
||||
<th style="text-align:center">Freight (₹)</th>
|
||||
<th style="text-align:center">Package (₹)</th>
|
||||
<th style="text-align:center">Insurance (₹)</th>
|
||||
<th style="text-align:center">Total (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($purchase)){
|
||||
$tot_qty = 0;
|
||||
$tot_rate = 0;
|
||||
$tot_value = 0;
|
||||
@ -468,230 +397,47 @@ table.dataTable thead > tr > td.sorting {
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div> <!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"aaSorting": [[ 1, "desc" ]],
|
||||
"autoWidth": false,
|
||||
orderCellsTop: true,
|
||||
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: 'Report Purchase',
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
],
|
||||
"footerCallback": function ( row, data, start, end, display ) {
|
||||
var api = this.api(), data;
|
||||
|
||||
// Remove the formatting to get integer data for summation
|
||||
var intVal = function ( i ) {
|
||||
return typeof i === 'string' ?
|
||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||
typeof i === 'number' ?
|
||||
parseFloat(i) : 0;
|
||||
};
|
||||
|
||||
TotalQTY = api
|
||||
.column( 4, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 4 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||
|
||||
TotalVALUE = api
|
||||
.column( 7, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 7 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||
|
||||
TotalExRATE = api
|
||||
.column( 8, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 8 ).footer() ).html( TotalExRATE.toFixed().bold() );
|
||||
|
||||
TotalSGST = api
|
||||
.column( 9, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 9 ).footer() ).html( TotalSGST.toFixed(2).bold() );
|
||||
|
||||
TotalCGST = api
|
||||
.column( 10, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 10 ).footer() ).html( TotalCGST.toFixed(2).bold() );
|
||||
|
||||
TotalIGST = api
|
||||
.column( 11, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 11 ).footer() ).html( TotalIGST.toFixed(2).bold() );
|
||||
|
||||
TotalDISCOUNT = api
|
||||
.column( 12, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 12 ).footer() ).html( TotalDISCOUNT.toFixed(2).bold() );
|
||||
|
||||
TotalFRIGEHT = api
|
||||
.column( 13, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 13 ).footer() ).html( TotalFRIGEHT.toFixed(2).bold() );
|
||||
|
||||
TotalPACKAGE = api
|
||||
.column( 14, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 14 ).footer() ).html( TotalPACKAGE.toFixed(2).bold() );
|
||||
|
||||
TotalINSURANCES = api
|
||||
.column( 15, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 15 ).footer() ).html( TotalINSURANCES.toFixed(2).bold() );
|
||||
|
||||
FinalTotal = api
|
||||
.column( 16, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 16 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
@ -1,421 +1,290 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#client_name").select2();
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Purchase-SupplierWise</b><br><br>
|
||||
<?php
|
||||
if($this->input->post('client_name')){
|
||||
$cl=$this->input->post('client_name');
|
||||
echo $cl;
|
||||
echo ' '.' ';
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'to'.$t;
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-2">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="client_name" name="client_name" required="true">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach($cust as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Report - Purchase supplier wise </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($spurchse)){
|
||||
$tot_rate = 0;
|
||||
$tot_qty = 0;
|
||||
$tot_value = 0;
|
||||
$tot_tot = 0;
|
||||
$ab=$this->input->post('financialyear');
|
||||
$month=$this->input->post('month');
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
foreach($spurchse as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span>
|
||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&m=<?php echo $month;?>&frm=<?php echo $frm;?>&t=<?php echo $t;?>"><?php echo $rel->supplier_name;?></a>
|
||||
</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_rate= $tot_rate + round($rel->counts);
|
||||
echo round($rel->counts);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_qty= $tot_qty + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_value= $tot_value + $rel->value;
|
||||
echo number_format($rel->value,2,'.','');?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
<td class="amount" style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_rate;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_qty;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_value,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url('Report_supplier'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="client_name" name="client_name">
|
||||
<option value="">Select Supplier</option>
|
||||
<?php
|
||||
foreach ($cust as $item): { ?>
|
||||
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
foreach ($material as $it): { ?>
|
||||
<option <?php if(isset($prod) && ($prod == $it->MaterialName)){ echo 'selected'; } ?> value="<?php echo $it->MaterialName; ?>"><?php echo $it->MaterialName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach ($finyear as $item): { ?>
|
||||
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<?php $months = ["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"]; ?>
|
||||
<?php foreach ($months as $month): { ?>
|
||||
<option <?php if(isset($m) && ($m == $month)){ echo 'selected'; } ?> value="<?php echo $month; ?>"><?php echo $month; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($spurchse)){
|
||||
$tot_rate = 0;
|
||||
$tot_qty = 0;
|
||||
$tot_value = 0;
|
||||
$tot_tot = 0;
|
||||
foreach($spurchse as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span>
|
||||
<?= $rel->supplier_name?>
|
||||
</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_rate= $tot_rate + round($rel->counts);
|
||||
echo round($rel->counts);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_qty= $tot_qty + round($rel->quantity);
|
||||
echo round($rel->quantity);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tot_value= $tot_value + $rel->value;
|
||||
echo number_format($rel->value,2,'.','');?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
<td class="amount" style="text-align:right"><strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_rate??0;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo $tot_qty??0;
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
<?php
|
||||
{
|
||||
echo number_format($tot_value??0,2,'.','');
|
||||
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
],
|
||||
"footerCallback": function ( row, data, start, end, display ) {
|
||||
var api = this.api(), data;
|
||||
|
||||
// Remove the formatting to get integer data for summation
|
||||
var intVal = function ( i ) {
|
||||
return typeof i === 'string' ?
|
||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||
typeof i === 'number' ?
|
||||
parseFloat(i) : 0;
|
||||
};
|
||||
|
||||
TotalPOCount = api
|
||||
.column( 1, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 1 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
||||
|
||||
TotalQTY = api
|
||||
.column( 2, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||
|
||||
TotalVALUE = api
|
||||
.column( 3, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker("option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
dateFormat: "dd-mm-yy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
@ -1,110 +1,106 @@
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Total Orders</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
||||
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select></div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-2">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Department</th>
|
||||
<th>PO Created</th>
|
||||
<th>Special PO</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Approved</th>
|
||||
<th>Releaser Onhold</th>
|
||||
<th>Released</th>
|
||||
<th>IGR Created</th>
|
||||
<th>MRIR Rejected</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>Service completed</th>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($Total)){
|
||||
<table id="req" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Department</th>
|
||||
<th>PO Created</th>
|
||||
<th>Special PO</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Approved</th>
|
||||
<th>Releaser Onhold</th>
|
||||
<th>Released</th>
|
||||
<th>IGR Created</th>
|
||||
<th>MRIR Rejected</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>Service completed</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($Total)){
|
||||
foreach($Total as $rel)
|
||||
{
|
||||
?>
|
||||
@ -127,30 +123,31 @@
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
@ -181,6 +178,4 @@ $(document).ready(function() {
|
||||
} );
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
@ -1,118 +1,133 @@
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Year-Wise</b><br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="col-xs-12 col-md-6 col-md-offset-3">
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Report - Purchase </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit" value="View Report">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if(!empty($year)){
|
||||
?>
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value (₹)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url('Report_year_wise'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
{?>
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</th>
|
||||
<th style="text-align:center">Quantity</th>
|
||||
<th style="text-align:center">Total Value (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tr3=0;
|
||||
$tr4=00;
|
||||
if(isset($year)){
|
||||
foreach($year as $rel)
|
||||
{
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td style="text-align:center"><span>
|
||||
<td style="text-align:center">
|
||||
<?php
|
||||
$date = strtotime($rel->created_date);
|
||||
$new = date('M-y', $date);
|
||||
$pass = date('Y-m-d',$date);
|
||||
$ab=$this->input->post('financialyear');
|
||||
//echo $new;
|
||||
echo $new;
|
||||
?>
|
||||
|
||||
<a href="<?= base_url() ?>report/month_wise?ab=<?php echo $ab;?>&dat=<?php echo $pass;?>"><?php echo $new;?></a>
|
||||
</span></td>
|
||||
</td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$tr3= $tr3 + $rel->quantity;
|
||||
echo round($rel->quantity);?></span></td>
|
||||
@ -124,15 +139,13 @@
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<tr>
|
||||
<td style="text-align:center;"><strong><?php
|
||||
$ab=$this->input->post('financialyear');
|
||||
$Total="Total";
|
||||
echo anchor('report/year_wise_total/' . $ab,$Total); ?></strong>
|
||||
<td style="text-align:center;"><strong>Total</strong>
|
||||
|
||||
</td>
|
||||
|
||||
@ -162,119 +175,44 @@
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"date-range-pre": function ( a ) {
|
||||
var monthArr = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
||||
return monthArr.indexOf(a);
|
||||
},
|
||||
"date-range-asc": function ( a, b ) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
"date-range-desc": function ( a, b ) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
} );
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
],
|
||||
columnDefs: [
|
||||
{ type: 'date-range', targets: 0 }
|
||||
],
|
||||
"footerCallback": function ( row, data, start, end, display ) {
|
||||
var api = this.api(), data;
|
||||
|
||||
// Remove the formatting to get integer data for summation
|
||||
var intVal = function ( i ) {
|
||||
return typeof i === 'string' ?
|
||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||
typeof i === 'number' ?
|
||||
parseFloat(i) : 0;
|
||||
};
|
||||
|
||||
TotalQTY = api
|
||||
.column( 1, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
|
||||
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||
|
||||
TotalVALUE = api
|
||||
.column( 2, { search:'applied' } )
|
||||
.data()
|
||||
.reduce( function (a, b) {
|
||||
return intVal(a) + intVal(b);
|
||||
}, 0 );
|
||||
console.log(parseFloat(TotalVALUE));
|
||||
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 12, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
@ -1,277 +1,260 @@
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
|
||||
<div class="row"style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" style="
|
||||
font-size: 12px;
|
||||
">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p><b>Total Pending Requests</b>
|
||||
<br><br>
|
||||
<?php
|
||||
|
||||
if(isset($financialyear)) :
|
||||
$ab=$financialyear;
|
||||
echo ' ';
|
||||
endif;
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
if(isset($month)) :
|
||||
$m=$month;
|
||||
echo ' ';
|
||||
endif;
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
if(isset($from_date) && isset($to_date)) :
|
||||
$frm = $from_date;
|
||||
$t = $to_date;
|
||||
echo $frm.'-to-'.$t;
|
||||
endif;
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
if(isset($aging_from) && isset($aging_to)) :
|
||||
$tfrm = $aging_from;
|
||||
$tt = $aging_to;
|
||||
echo 'Aging between'.' '.$tfrm.'-to-'.$tt.' '.'days';
|
||||
endif;
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="panel-body">
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- <form method="post" action="<?php // echo base_url($this->uri->uri_string()); ?>"> -->
|
||||
<form method="post" action="<?php echo base_url("reportpending"); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Pending </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="Aging_From">
|
||||
<?php echo 'Aging From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_from" id="aging_from" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="Aging_To">
|
||||
<?php echo 'Aging To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_to" id="aging_to" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-10"><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" style="background-color:#fff;font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requistion Date</th>
|
||||
<th>Requistion Number</th>
|
||||
<th>Requested By</th>
|
||||
<th>Department</th>
|
||||
<th>Requistion Type</th>
|
||||
<th>Aging</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($pending_list)){
|
||||
foreach($pending_list as $lis)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<!-- <td><span><?php //$date = new DateTime($lis->ReqDate);echo $date->format('d-m-Y'); ?></span></td>-->
|
||||
<td><span><?php echo $lis->ReqDate?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<div class="card-body">
|
||||
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<form method="post" action="<?php echo base_url('reportpending'); ?>">
|
||||
|
||||
<div class="row form-group has-feedback">
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
<div class="col-md-3">
|
||||
<label for="Aging_From">
|
||||
<?php echo 'Aging From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_from" id="aging_from" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="Aging_To">
|
||||
<?php echo 'Aging To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_to" id="aging_to" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
"aaSorting": [[ 0, "desc" ]],
|
||||
"autoWidth": false,
|
||||
orderCellsTop: true,
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
//dateFormat: 'dd-mm-yy'
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Requistion Date</th>
|
||||
<th>Requistion Number</th>
|
||||
<th>Requested By</th>
|
||||
<th>Department</th>
|
||||
<th>Requistion Type</th>
|
||||
<th>Aging</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($pending_list)){
|
||||
foreach($pending_list as $lis)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<!-- <td><span><?php //$date = new DateTime($lis->ReqDate);echo $date->format('d-m-Y'); ?></span></td>-->
|
||||
<td><span><?php echo $lis->ReqDate?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
@ -373,6 +356,8 @@ $(document).ready(function() {
|
||||
table.draw();
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
//for clear button
|
||||
function Reset()
|
||||
{
|
||||
@ -389,4 +374,3 @@ function Reset()
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@ -19,27 +19,24 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Pending</p>
|
||||
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
||||
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
||||
<p class="uk-text uk-margin-remove">Total Orders</p>
|
||||
<a href="<?php echo base_url(); ?>reportpending" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||
<a href="<?php echo base_url(); ?>releasedpo" target="_blank"><p class="uk-text uk-margin-remove">Order Value Released</p></a>
|
||||
<a href="<?php echo base_url(); ?>openOrder" target="_blank"><p class="uk-text uk-margin-remove">Open Orders - Pending</p></a>
|
||||
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank"><p class="uk-text uk-margin-remove">Total Orders</p></a>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||
<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_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
||||
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
||||
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
||||
|
||||
<a href="<?php echo base_url(); ?>Report_purchase" target="_blank"><p class="uk-text uk-margin-remove">Purchase</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_year_wise" target="_blank"><p class="uk-text uk-margin-remove">Year Wise</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending Purchase</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_supplier" target="_blank"><p class="uk-text uk-margin-remove">purchase - Supplier Wise</p></a>
|
||||
<a href="<?php echo base_url(); ?>Report_consolidate" target="_blank"><p class="uk-text uk-margin-remove">purchase - Consolidate</p></a>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
||||
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
||||
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-truck"> Inward</span></h4>
|
||||
@ -61,14 +58,17 @@
|
||||
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
||||
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
currently not used in Ria..!!
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Cashbook Reports</p>
|
||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p>
|
||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p>
|
||||
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
||||
</div>
|
||||
<a href="<?php // echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||
<a href="<?php //echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>
|
||||
</div> -->
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
||||
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user