stock changes 22-04-2025
This commit is contained in:
parent
47fd42baee
commit
fb34df00c1
@ -244,11 +244,21 @@ class Report extends BaseController
|
|||||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||||
$data['purchase'] = $this->dahsboard_Model->report_purchase($cname, $prod, $fa, $aa, $m, $frm, $t);
|
$data['purchase'] = $this->dahsboard_Model->report_purchase($cname, $prod, $fa, $aa, $m, $frm, $t);
|
||||||
|
|
||||||
|
$data['cname'] = $cname;
|
||||||
|
$data['prod'] = $prod;
|
||||||
|
$data['ab'] = $ab;
|
||||||
|
$data['m'] = $m;
|
||||||
|
$data['frm'] = $frm;
|
||||||
|
$data['t'] = $t;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['material'] = $this->dahsboard_Model->material_name();
|
$data['material'] = $this->dahsboard_Model->material_name();
|
||||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
|
|
||||||
$this->loadviews("Report_purchase", $this->global, $data, NULL);
|
$this->loadviews("Report_purchase", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
public function link_purchase()
|
public function link_purchase()
|
||||||
|
|||||||
@ -1,78 +1,79 @@
|
|||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
|
|
||||||
<div class="row"style="min-height: 600px;">
|
<div class="content-page">
|
||||||
<!-- Left col -->
|
<div class="content">
|
||||||
<div class="col-md-12" style="
|
<!-- Start Content-->
|
||||||
font-size: 12px;
|
<div class="container-fluid">
|
||||||
">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<div>
|
||||||
<div class="box box-info">
|
<div class="row">
|
||||||
<div class="box-header with-border">
|
<div class="col-12">
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Order Value - Released</b>
|
<div class="page-title-box page-title-box-alt">
|
||||||
<br><br>
|
<div class="page-title-right">
|
||||||
<?php
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
if($this->input->post('financialyear')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||||
$ab=$this->input->post('financialyear');
|
<li class="breadcrumb-item active">
|
||||||
echo '('.$ab.')';
|
<h4 class="page-title"><b> </b></h4>
|
||||||
echo ' ';
|
</li>
|
||||||
|
</ol>
|
||||||
}
|
|
||||||
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>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
</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="form-group has-feedback">
|
<div class="card-body">
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url('releasedpo'); ?>">
|
||||||
|
|
||||||
|
<div class="row form-group has-feedback">
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -94,7 +95,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -116,7 +117,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="total_order_value_From">
|
<label for="total_order_value_From">
|
||||||
<?php echo 'Total Order Value From'; ?>
|
<?php echo 'Total Order Value From'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -125,9 +126,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="total_order_value_To">
|
<label for="total_order_value_To">
|
||||||
<?php echo 'Total Order Value To'; ?>
|
<?php echo 'Total Order Value To'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -137,47 +136,37 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-10"><br>
|
<div class="col-md-3 col-md-offset-10"><br>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
value="View Report">
|
value="View Report">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</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;"> -->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>PO No</th>
|
<th>PO No</th>
|
||||||
@ -186,7 +175,6 @@
|
|||||||
<th>Released Date</th>
|
<th>Released Date</th>
|
||||||
<th>Requested Department</th>
|
<th>Requested Department</th>
|
||||||
<th>Total Order Value (₹)</th>
|
<th>Total Order Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -214,7 +202,7 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot>
|
<tfoot width="100%">
|
||||||
<td style="text-align:center"><?php
|
<td style="text-align:center"><?php
|
||||||
$t='Total';
|
$t='Total';
|
||||||
echo $t;?></td>
|
echo $t;?></td>
|
||||||
@ -225,16 +213,15 @@
|
|||||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
|
||||||
</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://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
@ -244,10 +231,28 @@
|
|||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
@ -409,7 +414,4 @@ function Reset()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -12,9 +12,17 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
@ -24,59 +32,44 @@
|
|||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
th{ white-space: nowrap; }
|
|
||||||
td{ white-space: wrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
|
||||||
table.dataTable thead > tr > th.sorting,
|
|
||||||
table.dataTable thead > tr > td.sorting_asc,
|
|
||||||
table.dataTable thead > tr > td.sorting_desc,
|
|
||||||
table.dataTable thead > tr > td.sorting {
|
|
||||||
padding-right: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<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.')';
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
<div class="content-page">
|
||||||
</p></h3></center>
|
<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>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url('Report_consolidate'); ?>">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
@ -139,14 +132,9 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</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;"> -->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box-body" style="display:block" id="a">
|
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" id="tab" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center;">Supplier Name</th>
|
<th style="text-align:center;">Supplier Name</th>
|
||||||
@ -184,11 +172,11 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
$qfeb = 0;
|
$qfeb = 0;
|
||||||
$qmar = 0;
|
$qmar = 0;
|
||||||
$qtot = 0;
|
$qtot = 0;
|
||||||
$ab=$this->input->post('financialyear');
|
$ab= "";
|
||||||
foreach ($spurchse as $index=>$result) { ?>
|
foreach ($spurchse as $index=>$result) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;">
|
<td style="text-align:left;">
|
||||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $result->sid;?>&mid=<?php echo $result->mid;?>&ab=<?php echo $ab;?>"><?php echo $result->supplier_name;?> </a>
|
<?php echo $result->supplier_name;?>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align:left;"><?php
|
<td style="text-align:left;"><?php
|
||||||
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
if(!empty($result->material_name)) { echo $result->material_name ; } else {echo "-";}
|
||||||
@ -406,282 +394,14 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -690,6 +410,30 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// Initialize the DataTable with only pagination enabled
|
||||||
|
var table = $('#cc').DataTable({
|
||||||
|
paging: true, // Enable pagination
|
||||||
|
searching: true, // Disable search
|
||||||
|
ordering: false, // Disable column sorting
|
||||||
|
info: false, // Disable table information
|
||||||
|
lengthChange: false, // Disable page length options
|
||||||
|
pageLength: 10, // Default rows per page
|
||||||
|
responsive: true, // Keep responsive design
|
||||||
|
language: {
|
||||||
|
paginate: {
|
||||||
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -712,19 +456,19 @@ $('#tab').on('search.dt', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var qapril_sum = "<?php echo json_encode($qapr)?>";
|
var qapril_sum = "<?php echo json_encode($qapr??0)?>";
|
||||||
var qmay_sum="<?php echo json_encode($qmay)?>";
|
var qmay_sum="<?php echo json_encode($qmay??0)?>";
|
||||||
var qjune_sum = "<?php echo json_encode($qjun)?>";
|
var qjune_sum = "<?php echo json_encode($qjun??0)?>";
|
||||||
var qjuly_sum = "<?php echo json_encode($qjul)?>";
|
var qjuly_sum = "<?php echo json_encode($qjul??0)?>";
|
||||||
var qaug_sum = "<?php echo json_encode($qaug)?>";
|
var qaug_sum = "<?php echo json_encode($qaug??0)?>";
|
||||||
var qsep_sum= "<?php echo json_encode($qsep)?>";
|
var qsep_sum= "<?php echo json_encode($qsep??0)?>";
|
||||||
var qoct_sum = "<?php echo json_encode($qoct)?>";
|
var qoct_sum = "<?php echo json_encode($qoct??0)?>";
|
||||||
var qnov_sum = "<?php echo json_encode($qnov)?>";
|
var qnov_sum = "<?php echo json_encode($qnov??0)?>";
|
||||||
var qdec_sum= "<?php echo json_encode($qdec)?>";
|
var qdec_sum= "<?php echo json_encode($qdec??0)?>";
|
||||||
var qjan_sum= "<?php echo json_encode($qjan)?>";
|
var qjan_sum= "<?php echo json_encode($qjan??0)?>";
|
||||||
var qfeb_sum= "<?php echo json_encode($qfeb)?>";
|
var qfeb_sum= "<?php echo json_encode($qfeb??0)?>";
|
||||||
var qmar_sum= "<?php echo json_encode($qmar)?>";
|
var qmar_sum= "<?php echo json_encode($qmar??0)?>";
|
||||||
var qtotal_sum= "<?php echo json_encode($qtot)?>";
|
var qtotal_sum= "<?php echo json_encode($qtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -896,19 +640,19 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var vaprilval_sum = "<?php echo json_encode($vapr)?>";
|
var vaprilval_sum = "<?php echo json_encode($vapr??0)?>";
|
||||||
var vmayval_sum = "<?php echo json_encode($vmay)?>";
|
var vmayval_sum = "<?php echo json_encode($vmay??0)?>";
|
||||||
var vjuneval_sum = "<?php echo json_encode($vjun)?>";
|
var vjuneval_sum = "<?php echo json_encode($vjun??0)?>";
|
||||||
var vjulyval_sum = "<?php echo json_encode($vjul)?>";
|
var vjulyval_sum = "<?php echo json_encode($vjul??0)?>";
|
||||||
var vaugval_sum = "<?php echo json_encode($vaug)?>";
|
var vaugval_sum = "<?php echo json_encode($vaug??0)?>";
|
||||||
var vsepval_sum = "<?php echo json_encode($vsep)?>";
|
var vsepval_sum = "<?php echo json_encode($vsep??0)?>";
|
||||||
var voctval_sum = "<?php echo json_encode($voct)?>";
|
var voctval_sum = "<?php echo json_encode($voct??0)?>";
|
||||||
var vnovval_sum = "<?php echo json_encode($vnov)?>";
|
var vnovval_sum = "<?php echo json_encode($vnov??0)?>";
|
||||||
var vdecval_sum = "<?php echo json_encode($vdec)?>";
|
var vdecval_sum = "<?php echo json_encode($vdec??0)?>";
|
||||||
var vjanval_sum = "<?php echo json_encode($vjan)?>";
|
var vjanval_sum = "<?php echo json_encode($vjan??0)?>";
|
||||||
var vfebval_sum = "<?php echo json_encode($vfeb)?>";
|
var vfebval_sum = "<?php echo json_encode($vfeb??0)?>";
|
||||||
var vmarval_sum = "<?php echo json_encode($vmar)?>";
|
var vmarval_sum = "<?php echo json_encode($vmar??0)?>";
|
||||||
var vtotalval_sum = "<?php echo json_encode($vtot)?>";
|
var vtotalval_sum = "<?php echo json_encode($vtot??0)?>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1078,4 +822,3 @@ function toggleTables(which)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,77 +1,80 @@
|
|||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12" 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')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||||
$t = $this->input->post('to_date');
|
<li class="breadcrumb-item active">
|
||||||
echo $frm.'-to-'.$t;
|
<h4 class="page-title"><b> </b></h4>
|
||||||
}
|
</li>
|
||||||
if($this->input->post('total_order_value_From') && $this->input->post('total_order_value_To')){
|
</ol>
|
||||||
$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>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
</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="form-group has-feedback">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -93,7 +96,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -115,7 +118,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="total_order_value_From">
|
<label for="total_order_value_From">
|
||||||
<?php echo 'Total Order Value From'; ?>
|
<?php echo 'Total Order Value From'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -124,9 +127,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="total_order_value_To">
|
<label for="total_order_value_To">
|
||||||
<?php echo 'Total Order Value To'; ?>
|
<?php echo 'Total Order Value To'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -136,47 +137,41 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-10"><br>
|
<div class="col-md-3 col-md-offset-10"><br>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
value="View Report">
|
value="View Report">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</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;"> -->
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px!important;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>PO No</th>
|
<th>PO No</th>
|
||||||
@ -224,16 +219,15 @@
|
|||||||
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
<td style="text-align:right"><?php echo number_format($tot,2,'.','');?></td>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
|
||||||
</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://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
@ -243,10 +237,28 @@
|
|||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
|
$(document).ready(function() {
|
||||||
|
// 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
@ -334,11 +346,6 @@ $( function() {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
//$('.input-daterange').each(function() {
|
|
||||||
// $(this).datepicker('clearDates');
|
|
||||||
//});
|
|
||||||
|
|
||||||
|
|
||||||
// Extend dataTables search
|
// Extend dataTables search
|
||||||
$.fn.dataTable.ext.search.push(
|
$.fn.dataTable.ext.search.push(
|
||||||
function(settings, data, dataIndex) {
|
function(settings, data, dataIndex) {
|
||||||
@ -406,9 +413,4 @@ function Reset()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -1,16 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
$("#item_name").select2();
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -18,220 +11,156 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
th, td { white-space: nowrap; }
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
|
||||||
content: "" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.dataTable thead > tr > th.sorting_asc,
|
|
||||||
table.dataTable thead > tr > th.sorting_desc,
|
|
||||||
table.dataTable thead > tr > th.sorting,
|
|
||||||
table.dataTable thead > tr > td.sorting_asc,
|
|
||||||
table.dataTable thead > tr > td.sorting_desc,
|
|
||||||
table.dataTable thead > tr > td.sorting {
|
|
||||||
padding-right: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<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')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
$t = $this->input->post('to_date');
|
<li class="breadcrumb-item active">
|
||||||
echo $frm.'-to-'.$t;
|
<h4 class="page-title"><b> Report - Purchase </b></h4>
|
||||||
}
|
</li>
|
||||||
|
</ol>
|
||||||
?>
|
|
||||||
</p></h3></center>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url('Report_purchase'); ?>">
|
||||||
<div class="col-md-4">
|
<div class="form-group">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Supplier'; ?>
|
<?php echo 'Supplier'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="client_name" name="client_name">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($cust as $item):
|
foreach ($cust as $item): { ?>
|
||||||
|
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
{?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-4">
|
||||||
<div class="col-md-4">
|
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Material'; ?>
|
<?php echo 'Material'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="item_name" name="item_name">
|
<select class="form-control" id="item_name" name="item_name">
|
||||||
<option value="">Select Material</option>
|
<option value="">Select Material</option>
|
||||||
<?php
|
<?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>
|
||||||
foreach($material as $it):
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-2">
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
foreach ($finyear as $item): { ?>
|
||||||
|
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||||
foreach($finyear as $item):
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-2">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<?php $months = ["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"]; ?>
|
||||||
<option value="February">February</option>
|
<?php foreach ($months as $month): { ?>
|
||||||
<option value="March">March</option>
|
<option <?php if(isset($m) && ($m == $month)){ echo 'selected'; } ?> value="<?php echo $month; ?>"><?php echo $month; ?></option>
|
||||||
<option value="April">April</option>
|
<?php } endforeach; ?>
|
||||||
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
</div>
|
||||||
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-2">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
|
||||||
<div class="col-md-4">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-2"><br>
|
<div class="col-md-6"></div>
|
||||||
|
<div class="col-md-2 text-right"><br>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
value="View Report">
|
value="View Report">
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</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;"> -->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div class = "table-responsive">
|
|
||||||
<table class="table table-bordered" id="cc" style="font-size:12px !important;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">PO No</th>
|
<th style="text-align:center">PO No</th>
|
||||||
@ -468,22 +397,19 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div> <!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -492,206 +418,26 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
// Initialize the DataTable with only pagination enabled
|
||||||
table = $('#cc').DataTable( {
|
var table = $('#cc').DataTable({
|
||||||
"language": {
|
paging: true, // Enable pagination
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
searching: true, // Disable search
|
||||||
},
|
ordering: false, // Disable column sorting
|
||||||
"aaSorting": [[ 1, "desc" ]],
|
info: false, // Disable table information
|
||||||
"autoWidth": false,
|
lengthChange: false, // Disable page length options
|
||||||
orderCellsTop: true,
|
pageLength: 10, // Default rows per page
|
||||||
|
responsive: true, // Keep responsive design
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
language: {
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
paginate: {
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
buttons: [
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
|
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
messageTop: 'Report Purchase',
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 4, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 4 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 7, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 7 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalExRATE = api
|
|
||||||
.column( 8, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 8 ).footer() ).html( TotalExRATE.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalSGST = api
|
|
||||||
.column( 9, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 9 ).footer() ).html( TotalSGST.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalCGST = api
|
|
||||||
.column( 10, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 10 ).footer() ).html( TotalCGST.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalIGST = api
|
|
||||||
.column( 11, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 11 ).footer() ).html( TotalIGST.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalDISCOUNT = api
|
|
||||||
.column( 12, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 12 ).footer() ).html( TotalDISCOUNT.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalFRIGEHT = api
|
|
||||||
.column( 13, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 13 ).footer() ).html( TotalFRIGEHT.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalPACKAGE = api
|
|
||||||
.column( 14, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 14 ).footer() ).html( TotalPACKAGE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
TotalINSURANCES = api
|
|
||||||
.column( 15, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 15 ).footer() ).html( TotalINSURANCES.toFixed(2).bold() );
|
|
||||||
|
|
||||||
FinalTotal = api
|
|
||||||
.column( 16, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 16 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$( function() {
|
|
||||||
//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,9 +1,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -11,205 +13,178 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - 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')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
if($this->input->post('month')){
|
<div class="row">
|
||||||
$m=$this->input->post('month');
|
<div class="col-12">
|
||||||
echo '('.$m.')';
|
<div class="page-title-box page-title-box-alt">
|
||||||
echo ' ';
|
<div class="page-title-right">
|
||||||
}
|
<ol class="breadcrumb m-0">
|
||||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
$frm = $this->input->post('from_date');
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Purchase</a></li>
|
||||||
$t = $this->input->post('to_date');
|
<li class="breadcrumb-item active">
|
||||||
echo $frm.'to'.$t;
|
<h4 class="page-title"><b> Report - Purchase supplier wise </b></h4>
|
||||||
}
|
</li>
|
||||||
|
</ol>
|
||||||
?></p></h3></center>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="panel-body">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url('Report_supplier'); ?>">
|
||||||
<div class="col-md-2">
|
<div class="form-group">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">
|
||||||
<label for="client_name">
|
<label for="client_name">
|
||||||
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
|
<?php echo 'Supplier'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
<select class="form-control" id="client_name" name="client_name" required="true">
|
|
||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($cust as $item):
|
foreach ($cust as $item): { ?>
|
||||||
|
<option <?php if(isset($cname) && ($cname == $item->SupplierName)){ echo 'selected'; } ?> value="<?php echo $item->SupplierName; ?>"><?php echo $item->SupplierName; ?></option>
|
||||||
{?>
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
||||||
|
<div class="col-2">
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
|
foreach ($finyear as $item): { ?>
|
||||||
|
<option <?php if(isset($ab) && ($ab == $item->financial_year)){ echo 'selected'; } ?> value="<?php echo $item->financial_year; ?>"><?php echo $item->financial_year; ?></option>
|
||||||
foreach($finyear as $item):
|
<?php }
|
||||||
|
endforeach; ?>
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-2">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select class="form-control" id="month" name="month">
|
<select class="form-control" id="month" name="month">
|
||||||
<option value="">Select Month</option>
|
<option value="">Select Month</option>
|
||||||
<option value="January">January</option>
|
<?php $months = ["January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December"]; ?>
|
||||||
<option value="February">February</option>
|
<?php foreach ($months as $month): { ?>
|
||||||
<option value="March">March</option>
|
<option <?php if(isset($m) && ($m == $month)){ echo 'selected'; } ?> value="<?php echo $month; ?>"><?php echo $month; ?></option>
|
||||||
<option value="April">April</option>
|
<?php } endforeach; ?>
|
||||||
<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>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-2">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-2">
|
||||||
|
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input type="date" class="form-control" name="to_date" id="min-date" value="<?php if(isset($t)){ echo $t; } ?>">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2"><br>
|
<div class="col-md-6"></div>
|
||||||
|
<div class="col-md-2 text-right"><br>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
value="View Report">
|
value="View Report">
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</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;"> -->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">PO Count</th>
|
<th style="text-align:center">PO Count</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (₹)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php if(!empty($spurchse)){
|
<?php if(!empty($spurchse)){
|
||||||
$tot_rate = 0;
|
$tot_rate = 0;
|
||||||
$tot_qty = 0;
|
$tot_qty = 0;
|
||||||
$tot_value = 0;
|
$tot_value = 0;
|
||||||
$tot_tot = 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)
|
foreach($spurchse as $rel)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>
|
<td><span>
|
||||||
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&m=<?php echo $month;?>&frm=<?php echo $frm;?>&t=<?php echo $t;?>"><?php echo $rel->supplier_name;?></a>
|
<?= $rel->supplier_name?>
|
||||||
</span></td>
|
</span></td>
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tot_rate= $tot_rate + round($rel->counts);
|
$tot_rate= $tot_rate + round($rel->counts);
|
||||||
@ -227,9 +202,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
@ -237,7 +215,7 @@
|
|||||||
<td class="amount" style="text-align:right"><strong>
|
<td class="amount" style="text-align:right"><strong>
|
||||||
<?php
|
<?php
|
||||||
{
|
{
|
||||||
echo $tot_rate;
|
echo $tot_rate??0;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -248,7 +226,7 @@
|
|||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php
|
||||||
{
|
{
|
||||||
echo $tot_qty;
|
echo $tot_qty??0;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -258,7 +236,7 @@
|
|||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php
|
||||||
{
|
{
|
||||||
echo number_format($tot_value,2,'.','');
|
echo number_format($tot_value??0,2,'.','');
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -268,23 +246,17 @@
|
|||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -293,129 +265,26 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
// Initialize the DataTable with only pagination enabled
|
||||||
"language": {
|
var table = $('#cc').DataTable({
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
paging: true, // Enable pagination
|
||||||
},
|
searching: true, // Disable search
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
ordering: false, // Disable column sorting
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
info: false, // Disable table information
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
lengthChange: false, // Disable page length options
|
||||||
buttons: [
|
pageLength: 10, // Default rows per page
|
||||||
|
responsive: true, // Keep responsive design
|
||||||
{
|
language: {
|
||||||
extend: 'excelHtml5',
|
paginate: {
|
||||||
footer: 'true',
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
//messageTop: $('h3').text(),
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalPOCount = api
|
|
||||||
.column( 1, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 3, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
$( function() {
|
|
||||||
//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,58 +1,65 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Total Orders</b>
|
|
||||||
<br><br>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
|
<div class="row">
|
||||||
?></p></h3></center>
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">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>
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
|
||||||
|
|
||||||
|
</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">
|
||||||
|
|
||||||
<center>
|
|
||||||
<div class="panel-body">
|
|
||||||
<form method="post" action=" ">
|
<form method="post" action=" ">
|
||||||
<div class="col-md-8">
|
<div class="col-md-2">
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Budget Year</option>
|
<option value="">Select Budget Year</option>
|
||||||
<?php
|
<?php
|
||||||
@ -65,22 +72,16 @@
|
|||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
</select></div>
|
</select>
|
||||||
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||||
value="View Report"></div>
|
value="View Report">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
<table id="req" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
</center>
|
|
||||||
|
|
||||||
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="req" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -96,11 +97,6 @@
|
|||||||
<th>MRIR Approved</th>
|
<th>MRIR Approved</th>
|
||||||
<th>Service completed</th>
|
<th>Service completed</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -128,18 +124,18 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
|
||||||
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
@ -148,9 +144,10 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
// Bootstrap datepicker
|
||||||
|
// Set up your table
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
@ -181,6 +178,4 @@ $(document).ready(function() {
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -1,118 +1,133 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
<div class="row" style="min-height: 600px;">
|
|
||||||
<!-- Left col -->
|
|
||||||
<div class="col-md-12">
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
|
||||||
<div class="box box-info">
|
|
||||||
<div class="box-header with-border">
|
|
||||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Year-Wise</b><br><br>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if($this->input->post('financialyear')){
|
<div class="content-page">
|
||||||
$ab=$this->input->post('financialyear');
|
<div class="content">
|
||||||
echo '('.$ab.')';
|
<!-- Start Content-->
|
||||||
echo ' ';
|
<div class="container-fluid">
|
||||||
|
<!-- start page title -->
|
||||||
}
|
<div>
|
||||||
|
<div class="row">
|
||||||
?></p></h3></center>
|
<div class="col-12">
|
||||||
|
<div class="page-title-box page-title-box-alt">
|
||||||
|
<div class="page-title-right">
|
||||||
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">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>
|
||||||
<!-- /.box-header -->
|
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6 col-md-offset-3">
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<center>
|
<div class="card-body">
|
||||||
<div class="panel-body">
|
|
||||||
<form method="post" action=" ">
|
<form method="post" action="<?php echo base_url('Report_year_wise'); ?>">
|
||||||
<div class="col-md-8">
|
<div class="form-group">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
<select class="form-control" id="financialyear" name="financialyear">
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
<option value="">Select Year</option>
|
<option value="">Select Year</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($finyear as $item):
|
foreach($finyear as $item):
|
||||||
|
|
||||||
{?>
|
{?>
|
||||||
|
|
||||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-6"></div>
|
||||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit" value="View Report">
|
<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>
|
||||||
|
<div class="form-group has-feedback">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||||
</center>
|
|
||||||
|
|
||||||
</div>
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if(!empty($year)){
|
|
||||||
?>
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Month-Year</th>
|
<th style="text-align:center">Month-Year</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (₹)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$tr3=0;
|
$tr3=0;
|
||||||
$tr4=00;
|
$tr4=00;
|
||||||
|
if(isset($year)){
|
||||||
foreach($year as $rel)
|
foreach($year as $rel)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td style="text-align:center"><span>
|
<td style="text-align:center">
|
||||||
<?php
|
<?php
|
||||||
$date = strtotime($rel->created_date);
|
$date = strtotime($rel->created_date);
|
||||||
$new = date('M-y', $date);
|
$new = date('M-y', $date);
|
||||||
$pass = date('Y-m-d',$date);
|
$pass = date('Y-m-d',$date);
|
||||||
$ab=$this->input->post('financialyear');
|
echo $new;
|
||||||
//echo $new;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<a href="<?= base_url() ?>report/month_wise?ab=<?php echo $ab;?>&dat=<?php echo $pass;?>"><?php echo $new;?></a>
|
</td>
|
||||||
</span></td>
|
|
||||||
<td style="text-align:right"><span><?php
|
<td style="text-align:right"><span><?php
|
||||||
$tr3= $tr3 + $rel->quantity;
|
$tr3= $tr3 + $rel->quantity;
|
||||||
echo round($rel->quantity);?></span></td>
|
echo round($rel->quantity);?></span></td>
|
||||||
@ -124,15 +139,13 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong><?php
|
<td style="text-align:center;"><strong>Total</strong>
|
||||||
$ab=$this->input->post('financialyear');
|
|
||||||
$Total="Total";
|
|
||||||
echo anchor('report/year_wise_total/' . $ab,$Total); ?></strong>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -162,22 +175,17 @@
|
|||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
</div> <!-- container -->
|
||||||
}
|
</div> <!-- content -->
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
@ -187,94 +195,24 @@
|
|||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|
||||||
"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
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
// Initialize the DataTable with only pagination enabled
|
||||||
table = $('#cc').DataTable( {
|
var table = $('#cc').DataTable({
|
||||||
"language": {
|
paging: true, // Enable pagination
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
searching: true, // Disable search
|
||||||
},
|
ordering: false, // Disable column sorting
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
info: false, // Disable table information
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
lengthChange: false, // Disable page length options
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
pageLength: 12, // Default rows per page
|
||||||
buttons: [
|
responsive: true, // Keep responsive design
|
||||||
|
language: {
|
||||||
{
|
paginate: {
|
||||||
extend: 'excelHtml5',
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
footer: 'true',
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
'colvis'
|
|
||||||
],
|
|
||||||
columnDefs: [
|
|
||||||
{ type: 'date-range', targets: 0 }
|
|
||||||
],
|
|
||||||
"footerCallback": function ( row, data, start, end, display ) {
|
|
||||||
var api = this.api(), data;
|
|
||||||
|
|
||||||
// Remove the formatting to get integer data for summation
|
|
||||||
var intVal = function ( i ) {
|
|
||||||
return typeof i === 'string' ?
|
|
||||||
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
|
||||||
typeof i === 'number' ?
|
|
||||||
parseFloat(i) : 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
TotalQTY = api
|
|
||||||
.column( 1, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
|
|
||||||
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
|
|
||||||
|
|
||||||
TotalVALUE = api
|
|
||||||
.column( 2, { search:'applied' } )
|
|
||||||
.data()
|
|
||||||
.reduce( function (a, b) {
|
|
||||||
return intVal(a) + intVal(b);
|
|
||||||
}, 0 );
|
|
||||||
console.log(parseFloat(TotalVALUE));
|
|
||||||
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,81 +1,80 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#client_name").select2();
|
||||||
|
$("#item_name").select2();
|
||||||
|
$("#purchaseorder_number").select2();
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
|
||||||
|
table{
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTables_filter input {
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
width: 50%;
|
/* width: 50%; */
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTables_paginate {
|
.dataTables_paginate {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
/* float: right; */
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
background-color: #00d976;;
|
|
||||||
border-color: #00d976;;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
|
||||||
|
|
||||||
<div class="row"style="min-height: 600px;">
|
<div class="content-page">
|
||||||
<!-- Left col -->
|
<div class="content">
|
||||||
<div class="col-md-12" style="
|
<!-- Start Content-->
|
||||||
font-size: 12px;
|
<div class="container-fluid">
|
||||||
">
|
<!-- start page title -->
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<div>
|
||||||
<div class="box box-info">
|
<div class="row">
|
||||||
<div class="box-header with-border">
|
<div class="col-12">
|
||||||
<center><h3 class="box-title"><p><b>Total Pending Requests</b>
|
<div class="page-title-box page-title-box-alt">
|
||||||
<br><br>
|
<div class="page-title-right">
|
||||||
<?php
|
<ol class="breadcrumb m-0">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||||
if(isset($financialyear)) :
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Requisation</a></li>
|
||||||
$ab=$financialyear;
|
<li class="breadcrumb-item active">
|
||||||
echo ' ';
|
<h4 class="page-title"><b> Pending </b></h4>
|
||||||
endif;
|
</li>
|
||||||
|
</ol>
|
||||||
if(isset($month)) :
|
|
||||||
$m=$month;
|
|
||||||
echo ' ';
|
|
||||||
endif;
|
|
||||||
|
|
||||||
if(isset($from_date) && isset($to_date)) :
|
|
||||||
$frm = $from_date;
|
|
||||||
$t = $to_date;
|
|
||||||
echo $frm.'-to-'.$t;
|
|
||||||
endif;
|
|
||||||
|
|
||||||
if(isset($aging_from) && isset($aging_to)) :
|
|
||||||
$tfrm = $aging_from;
|
|
||||||
$tt = $aging_to;
|
|
||||||
echo 'Aging between'.' '.$tfrm.'-to-'.$tt.' '.'days';
|
|
||||||
endif;
|
|
||||||
|
|
||||||
?>
|
|
||||||
</p></h3></center>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box-header -->
|
|
||||||
<div class="panel-body">
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card">
|
||||||
|
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||||
|
|
||||||
<!-- <form method="post" action="<?php // echo base_url($this->uri->uri_string()); ?>"> -->
|
<div class="card-body">
|
||||||
<form method="post" action="<?php echo base_url("reportpending"); ?>">
|
|
||||||
|
|
||||||
<div class="form-group has-feedback">
|
<form method="post" action="<?php echo base_url('reportpending'); ?>">
|
||||||
|
|
||||||
|
<div class="row form-group has-feedback">
|
||||||
|
<div class="col-md-3">
|
||||||
<div class="col-md-2">
|
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Year'; ?>
|
<?php echo 'Year'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -97,7 +96,8 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
|
||||||
|
<div class="col-md-3">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'Month'; ?>
|
<?php echo 'Month'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -119,7 +119,8 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
|
||||||
|
<div class="col-md-3">
|
||||||
<label for="Aging_From">
|
<label for="Aging_From">
|
||||||
<?php echo 'Aging From'; ?>
|
<?php echo 'Aging From'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -130,7 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="Aging_To">
|
<label for="Aging_To">
|
||||||
<?php echo 'Aging To'; ?>
|
<?php echo 'Aging To'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -140,47 +141,44 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-3">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-md-offset-10"><br>
|
<div class="col-md-3"></div>
|
||||||
|
<div class="col-md-3 "><br>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
value="View Report">
|
value="View Report">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</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;"> -->
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
|
||||||
<div>
|
|
||||||
<table class="table table-bordered table-hover" id="req" style="background-color:#fff;font-size:13px;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Requistion Date</th>
|
<th>Requistion Date</th>
|
||||||
@ -192,6 +190,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php if(!empty($pending_list)){
|
<?php if(!empty($pending_list)){
|
||||||
foreach($pending_list as $lis)
|
foreach($pending_list as $lis)
|
||||||
{
|
{
|
||||||
@ -211,19 +210,21 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
|
||||||
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end card body-->
|
||||||
|
</div> <!-- end card -->
|
||||||
|
</div><!-- end col-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
</div> <!-- content -->
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.box -->
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
@ -231,47 +232,29 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
|
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
// Initialize the DataTable with only pagination enabled
|
||||||
"language": {
|
var table = $('#cc').DataTable({
|
||||||
"emptyTable": "<center> Data Not Found ! </center>"
|
paging: true, // Enable pagination
|
||||||
},
|
searching: true, // Disable search
|
||||||
|
ordering: false, // Disable column sorting
|
||||||
"aaSorting": [[ 0, "desc" ]],
|
info: false, // Disable table information
|
||||||
"autoWidth": false,
|
lengthChange: false, // Disable page length options
|
||||||
orderCellsTop: true,
|
pageLength: 10, // Default rows per page
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
responsive: true, // Keep responsive design
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
language: {
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
paginate: {
|
||||||
buttons: [
|
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||||
|
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||||
{
|
|
||||||
extend: 'excelHtml5',
|
|
||||||
footer: 'true',
|
|
||||||
|
|
||||||
//messageTop: $('h3').text(),
|
|
||||||
title: $('h3').text(),
|
|
||||||
exportOptions: {
|
|
||||||
columns: ':visible'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
'colvis'
|
|
||||||
]
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
//dateFormat: 'dd-mm-yy'
|
|
||||||
|
|
||||||
$( function() {
|
$( function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
@ -373,6 +356,8 @@ $(document).ready(function() {
|
|||||||
table.draw();
|
table.draw();
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
//for clear button
|
//for clear button
|
||||||
function Reset()
|
function Reset()
|
||||||
{
|
{
|
||||||
@ -389,4 +374,3 @@ function Reset()
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -19,27 +19,24 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
<h4><span class="fa fa-search-plus"> Requisition </span></h4>
|
||||||
<p class="uk-text uk-margin-remove">Pending</p>
|
<a href="<?php echo base_url(); ?>reportpending" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
||||||
<p class="uk-text uk-margin-remove">Order Value - Released</p>
|
<a href="<?php echo base_url(); ?>releasedpo" target="_blank"><p class="uk-text uk-margin-remove">Order Value Released</p></a>
|
||||||
<p class="uk-text uk-margin-remove">Open Orders - Pending </p>
|
<a href="<?php echo base_url(); ?>openOrder" target="_blank"><p class="uk-text uk-margin-remove">Open Orders - Pending</p></a>
|
||||||
<p class="uk-text uk-margin-remove">Total Orders</p>
|
<a href="<?php echo base_url(); ?>TotalOrder" target="_blank"><p class="uk-text uk-margin-remove">Total Orders</p></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
<h4><span class="fa fa-shopping-cart"> Purchase </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>Report_purchase" target="_blank"><p class="uk-text uk-margin-remove">Purchase</p></a>
|
<a href="<?php echo base_url(); ?>Report_purchase" target="_blank"><p class="uk-text uk-margin-remove">Purchase</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Year Wise</p>
|
<a href="<?php echo base_url(); ?>Report_year_wise" target="_blank"><p class="uk-text uk-margin-remove">Year Wise</p></a>
|
||||||
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending</p></a>
|
<a href="<?php echo base_url(); ?>Report_pending_purchase" target="_blank"><p class="uk-text uk-margin-remove">Pending Purchase</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Purchase Supplier - Wise</p>
|
<a href="<?php echo base_url(); ?>Report_supplier" target="_blank"><p class="uk-text uk-margin-remove">purchase - Supplier Wise</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Consolidate Report</p>
|
<a href="<?php echo base_url(); ?>Report_consolidate" target="_blank"><p class="uk-text uk-margin-remove">purchase - Consolidate</p></a>
|
||||||
<p class="uk-text-meta uk-margin-remove">Cumulative Report</p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
<h4><span class="fa fa-layer-group"> Material Master </span></h4>
|
||||||
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
<p class="uk-text uk-margin-remove">Material Master - supplier wise</p>
|
||||||
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
<p class="uk-text uk-margin-remove">Material Master - Item wise</p>
|
||||||
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
<p class="uk-text uk-margin-remove">Material Master - Receipt Value</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-truck"> Inward</span></h4>
|
<h4><span class="fa fa-truck"> Inward</span></h4>
|
||||||
@ -61,14 +58,17 @@
|
|||||||
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
||||||
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
currently not used in Ria..!!
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
<h4><span class="fa fa-rupee-sign"> Cashbook </span></h4>
|
||||||
<p class="uk-text uk-margin-remove">Cashbook Reports</p>
|
<p class="uk-text uk-margin-remove">Cashbook Reports</p>
|
||||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p>
|
<p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p>
|
||||||
<p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p>
|
<p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p>
|
||||||
<!--<a href="<?php echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
<a href="<?php // echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||||
<a href="<?php echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>-->
|
<a href="<?php //echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
||||||
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user