reportlink
This commit is contained in:
commit
c4e676594d
@ -79,6 +79,11 @@ class Report extends BaseController
|
||||
$agt = $this->request->getPost('aging_to');
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['pending_list'] = $this->dahsboard_Model->req_list($fa, $aa, $m, $frm, $t, $agf, $agt);
|
||||
$data['givenYear'] = $ab ;
|
||||
$data['givenMonth']= $m ;
|
||||
$data['givenFrm'] = $frm ;
|
||||
$data['givenTo'] = $t;
|
||||
|
||||
//print_r($data);
|
||||
}
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
@ -105,7 +110,13 @@ class Report extends BaseController
|
||||
$agt = $this->request->getPost('total_order_value_To');
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['rel_po'] = $this->dahsboard_Model->report_relpo($fa, $aa, $m, $frm, $t, $agf, $agt);
|
||||
//print_r($data);
|
||||
|
||||
$data['givenYear'] = $ab ;
|
||||
$data['givenMonth']= $m ;
|
||||
$data['givenFrm'] = $frm ;
|
||||
$data['givenTo'] = $t;
|
||||
$data['givenAgf'] = $agf;
|
||||
$data['givenAgt'] = $agt;
|
||||
|
||||
|
||||
|
||||
@ -155,6 +166,8 @@ class Report extends BaseController
|
||||
$aa = substr((string)$ab, 5, 5);
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['Total'] = $this->dahsboard_Model->report_total($fa, $aa);
|
||||
|
||||
$data['givenYear'] = $ab ;
|
||||
}
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
|
||||
@ -174,6 +187,7 @@ class Report extends BaseController
|
||||
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['ccrpt'] = $this->dahsboard_Model->report_ccr($fa, $aa);
|
||||
$data['ab'] = $ab;
|
||||
}
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
|
||||
@ -321,6 +335,7 @@ class Report extends BaseController
|
||||
$b = substr((string)$ab, 5, 5);
|
||||
$data['year'] = $this->dahsboard_Model->report_year_wise($a, $b);
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['givenFinancialYear'] = $ab;
|
||||
|
||||
//$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||
}
|
||||
@ -380,6 +395,13 @@ class Report extends BaseController
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse'] = $this->dahsboard_Model->report_supplier($cname, $fa, $aa, $m, $frm, $t);
|
||||
$data['cname'] = $cname;
|
||||
$data['ab'] = $ab;
|
||||
$data['m'] = $m;
|
||||
$data['frm'] = $frm;
|
||||
$data['t'] = $t;
|
||||
|
||||
|
||||
}
|
||||
$data['material'] = $this->dahsboard_Model->material_name();
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
@ -403,6 +425,10 @@ class Report extends BaseController
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$data['spurchse'] = $this->dahsboard_Model->report_consolidate($cname, $fa, $aa);
|
||||
|
||||
$data['cname'] = $cname;
|
||||
$data['ab'] = $ab;
|
||||
|
||||
}
|
||||
$data['material'] = $this->dahsboard_Model->material_name();
|
||||
$data['cust'] = $this->dahsboard_Model->customer_name();
|
||||
@ -1060,6 +1086,11 @@ class Report extends BaseController
|
||||
|
||||
$data['monthly_gst_purchase'] = $this->dahsboard_Model->monthly_gst_purchase($m, $frm, $t, $fa, $aa);
|
||||
$data['monthly_gst_sales'] = $this->dahsboard_Model->monthly_gst_sales($m, $frm, $t, $fa, $aa);
|
||||
|
||||
$data['m'] = $m;
|
||||
$data['frm']= $frm;
|
||||
$data['t'] = $t;
|
||||
$data['ab']= $ab;
|
||||
}
|
||||
$data['finyear'] = $this->dahsboard_Model->report_finyear();
|
||||
$this->loadviews("Report_monthly_gst", $this->global, $data, NULL);
|
||||
|
||||
@ -52,9 +52,9 @@
|
||||
<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"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
<h4 class="page-title"><b> Order Value Released </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
@ -81,13 +81,16 @@
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
<option
|
||||
<?php echo isset($givenYear) && $item->financial_year == $givenYear ? "selected" : "" ?>
|
||||
value="<?php echo $item->financial_year;?>">
|
||||
<?php echo $item->financial_year ; ?>
|
||||
</option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
@ -101,19 +104,17 @@
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
|
||||
<?php $monthArray=['January',"February","March","April",
|
||||
"May","June","July","August","September","October",
|
||||
"November","December"] ?>
|
||||
|
||||
<option value="">Select Month</option>
|
||||
<?php foreach($monthArray as $month): ?>
|
||||
<option value="<?=$month?>" <?php if(isset($givenMonth) && $givenMonth == $month){ echo 'selected'; } ?> >
|
||||
<?=$month?>
|
||||
</option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -122,7 +123,8 @@
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
<input class="form-control" name="total_order_value_From" id="total_order_value_From" style="padding:4px;"
|
||||
value="<?php echo isset($givenAgf) ? $givenAgf : "" ?>">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -131,7 +133,8 @@
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
<input class="form-control" name="total_order_value_To" id="total_order_value_To" style="padding:4px;"
|
||||
value="<?php echo isset($givenAgt) ? $givenAgt : "" ?>">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -143,7 +146,8 @@
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker"
|
||||
value="<?php echo isset($givenFrm) ? $givenFrm : "" ?>">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -152,12 +156,14 @@
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker"
|
||||
value="<?php echo isset($givenTo) ? $givenTo : "" ?>">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-10"><br>
|
||||
<div class="col-md-6 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('releasedpo') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
@ -236,6 +242,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
@ -312,6 +325,7 @@ $( function() {
|
||||
dateFormat: 'dd-mm-yy',
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
orientation : "botttom"
|
||||
//numberOfMonths: 1
|
||||
})
|
||||
.on( "change", function() {
|
||||
@ -321,6 +335,7 @@ $( function() {
|
||||
dateFormat: 'dd-mm-yy',
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
orientation : "bottom"
|
||||
//numberOfMonths: 1
|
||||
})
|
||||
.on( "change", function() {
|
||||
|
||||
@ -71,8 +71,8 @@
|
||||
|
||||
<form method="post" action="<?php echo base_url('Report_consolidate'); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-4">
|
||||
<div class="row has-feedback">
|
||||
<div class="col-3">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
@ -84,7 +84,12 @@
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
||||
<option
|
||||
|
||||
<?php echo isset($cname) && ($cname == $item->SupplierName) ? "selected" : "" ;
|
||||
?>
|
||||
|
||||
value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
@ -94,7 +99,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'year'; ?>
|
||||
</label>
|
||||
@ -104,28 +109,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
foreach($finyear as $item)
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
<option
|
||||
|
||||
<?php echo (isset($ab) && $ab == ($item->financial_year) )? "selected" : "" ?>
|
||||
|
||||
value="<?php echo $item->financial_year;?>"
|
||||
|
||||
>
|
||||
|
||||
<?php echo $item->financial_year ; ?>
|
||||
|
||||
</option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
<?php } ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<br>
|
||||
<div class="col-3 ">
|
||||
<label for="">Select Value/Quantity </label>
|
||||
<br>
|
||||
<br>
|
||||
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab"> Value</label>
|
||||
|
||||
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" checked> Quantity</label>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 "><br>
|
||||
<div class="col-3 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_consolidate') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
@ -417,6 +436,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
|
||||
@ -1,139 +1,166 @@
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
}
|
||||
.buttons-text {
|
||||
background-color: blue;
|
||||
color: white;
|
||||
}
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 3%;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color: #00d976;"><b>Report - Cost Center</b><br><br>
|
||||
<?php
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
}
|
||||
|
||||
?></p></h3></center>
|
||||
<div class="col-xs-12 col-md-4 col-md-offset-4">
|
||||
|
||||
|
||||
<center>
|
||||
<div class="panel-body">
|
||||
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a> Financial Reports</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Cost Center </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Cost Center Code</th>
|
||||
<th>Cost Center Name </th>
|
||||
<th>Department</th>
|
||||
<th>Budget Type</th>
|
||||
<th>Budget Year</th>
|
||||
<th>Utilized Amount (₹)</th>
|
||||
<th>Balance Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($ccrpt)){
|
||||
foreach($ccrpt as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->Cost_Center_Code?></span></td>
|
||||
<td><span><?php echo $rel->Cost_Center_Name?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td><span><?php echo $rel->BudgetType?></span></td>
|
||||
<td><span><?php echo $rel->BudgetYear?></span></td>
|
||||
<td align="right"><span><?php echo number_format($rel->Util_Amount,2,'.','')?></span></td>
|
||||
<td align="right"><span><?php echo number_format($rel->Avlbl_Amt,2,'.','')?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</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;"> -->
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action=" ">
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="">Budget year</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
{
|
||||
?>
|
||||
|
||||
<option
|
||||
<?php echo isset($ab) && $ab == $item->financial_year ? "selected" : " "; ?>
|
||||
value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-10 mt-2 text-right">
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_costcenter') ?>';">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Cost Center Code</th>
|
||||
<th>Cost Center Name </th>
|
||||
<th>Department</th>
|
||||
<th>Budget Type</th>
|
||||
<th>Budget Year</th>
|
||||
<th>Utilized Amount (₹)</th>
|
||||
<th>Balance Amount (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($ccrpt)){
|
||||
foreach($ccrpt as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php echo $rel->Cost_Center_Code?></span></td>
|
||||
<td><span><?php echo $rel->Cost_Center_Name?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td><span><?php echo $rel->BudgetType?></span></td>
|
||||
<td><span><?php echo $rel->BudgetYear?></span></td>
|
||||
<td align="right"><span><?php echo number_format($rel->Util_Amount,2,'.','')?></span></td>
|
||||
<td align="right"><span><?php echo number_format($rel->Avlbl_Amt,2,'.','')?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
@ -147,45 +174,47 @@
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
|
||||
$('#mySelect').on('change',function(){
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@ -1,288 +1,272 @@
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
.btn-success {
|
||||
background-color: #00d976;;
|
||||
border-color: #00d976;;
|
||||
}
|
||||
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>
|
||||
<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 - Monthly GST</b>
|
||||
<br><br>
|
||||
<?php
|
||||
if($this->input->post('financialyear')){
|
||||
$ab=$this->input->post('financialyear');
|
||||
echo '('.$ab.')';
|
||||
echo ' ';
|
||||
|
||||
}
|
||||
if($this->input->post('month')){
|
||||
$m=$this->input->post('month');
|
||||
echo '('.$m.')';
|
||||
echo ' ';
|
||||
}
|
||||
if($this->input->post('from_date') && $this->input->post('to_date')){
|
||||
$frm = $this->input->post('from_date');
|
||||
$t = $this->input->post('to_date');
|
||||
echo $frm.'-to-'.$t;
|
||||
}
|
||||
|
||||
?>
|
||||
</p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-calendar fa-fw"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="month">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2"><br><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" style="margin-top: -14px;margin-bottom: 28px;"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class = "table-responsive">
|
||||
<center><table class="table table-bordered" id="cc" width="70%" style="font-size:12px !important;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Name</th>
|
||||
<th style="text-align:center">Sales (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Purchase (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Net (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$m=$this->input->post('month');
|
||||
$frm=$this->input->post('from_date');
|
||||
$t=$this->input->post('to_date');
|
||||
$ab=$this->input->post('financialyear');
|
||||
if(!empty($monthly_gst_purchase) and !empty($monthly_gst_sales)){ ?>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:center"><span>SGST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->sgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->sgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$sgst_net = $monthly_gst_sales[0]->sgst - $monthly_gst_purchase[0]->sgst;
|
||||
echo round($sgst_net,2);?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><span>CGST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->cgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->cgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$cgst_net = $monthly_gst_sales[0]->cgst - $monthly_gst_purchase[0]->cgst;
|
||||
echo round($cgst_net,2);?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><span>IGST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->igst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->igst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$igst_net = $monthly_gst_sales[0]->igst - $monthly_gst_purchase[0]->igst;
|
||||
echo round($igst_net,2);?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><span>Total GST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->total,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->total,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$total_net = $monthly_gst_sales[0]->total - $monthly_gst_purchase[0]->total;
|
||||
echo round($total_net,2);?></span></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
<!--<tr>
|
||||
<td style="text-align:center;"><strong>Total</strong></td>
|
||||
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
// <?php
|
||||
// {
|
||||
// echo number_format($tot_pac,2,'.','');
|
||||
|
||||
// }
|
||||
|
||||
// ?>
|
||||
</strong></td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
// <?php
|
||||
// {
|
||||
// echo number_format($tot_inc,2,'.','');
|
||||
|
||||
// }
|
||||
|
||||
// ?>
|
||||
</strong></td>
|
||||
<td class="amount" style="text-align:right">
|
||||
<strong>
|
||||
// <?php
|
||||
// {
|
||||
// echo number_format($tot_tot,2,'.','');
|
||||
|
||||
// }
|
||||
|
||||
// ?>
|
||||
</strong></td>
|
||||
|
||||
|
||||
|
||||
</tr>-->
|
||||
|
||||
</tfoot>
|
||||
|
||||
</table></center>
|
||||
<div class="col-md-2" style="float: right;">
|
||||
<form>
|
||||
<a href="<?= base_url() ?>report/monthly_gst_table?m=<?php echo $m;?>&frm=<?php echo $frm;?>&t=<?php echo $t;?>&financialyear=<?php echo $ab;?>"><input style="width: 100px; padding: 10px; cursor: pointer; box-shadow: 6px 6px 5px; #999; -webkit-box-shadow: 6px 6px 5px #999; -moz-box-shadow: 6px 6px 5px #999; font-weight: bold; background: #00d976;; color: #000; border-radius: 10px; border: 1px solid #999; font-size: 100%;" type="button" value="View details"/></a>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.dataTables_filter input {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
/* width: 50%; */
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
/* float: right; */
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);"></a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Monthly GST Summary Reports </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<!-- <form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;"> -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url('Report_monthly_gst'); ?>">
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="row">
|
||||
<div class="col-md-3 ">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option
|
||||
<?php echo isset($ab) && $ab == $item->financial_year ? "selected" : "" ?>
|
||||
value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</d>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker"
|
||||
value="<?php echo isset($frm) ? $frm : "" ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker"
|
||||
value="<?php echo isset($t) ? $t : "" ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="month">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<?php
|
||||
$months = [
|
||||
"January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"
|
||||
];
|
||||
?>
|
||||
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<?php foreach ($months as $month): ?>
|
||||
<option value="<?= $month ?>" <?= (isset($m) && $m == $month) ? 'selected' : '' ?>>
|
||||
<?= $month ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-right"><br><br>
|
||||
<input type="button" class="btn btn-danger mb-4" value="Reset" onclick="window.location.href='<?= base_url('Report_monthly_gst') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit" style="margin-top: -14px;margin-bottom: 26px;"
|
||||
value="View Report">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">Name</th>
|
||||
<th style="text-align:center">Sales (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Purchase (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Net (<i class="fa fa-rupee "></i>)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(!empty($monthly_gst_purchase) and !empty($monthly_gst_sales)){ ?>
|
||||
|
||||
<tr>
|
||||
<td style="text-align:center"><span>SGST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->sgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->sgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$sgst_net = $monthly_gst_sales[0]->sgst - $monthly_gst_purchase[0]->sgst;
|
||||
echo round($sgst_net,2);?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><span>CGST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->cgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->cgst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$cgst_net = $monthly_gst_sales[0]->cgst - $monthly_gst_purchase[0]->cgst;
|
||||
echo round($cgst_net,2);?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><span>IGST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->igst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->igst,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$igst_net = $monthly_gst_sales[0]->igst - $monthly_gst_purchase[0]->igst;
|
||||
echo round($igst_net,2);?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><span>Total GST</span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_sales[0]->total,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
echo round($monthly_gst_purchase[0]->total,2);?></span></td>
|
||||
<td style="text-align:right"><span><?php
|
||||
$total_net = $monthly_gst_sales[0]->total - $monthly_gst_purchase[0]->total;
|
||||
echo round($total_net,2);?></span></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||
@ -375,6 +359,4 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -52,9 +52,9 @@
|
||||
<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"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
<h4 class="page-title"><b> Open Orders - Pending </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
@ -123,7 +123,7 @@
|
||||
<?php echo 'Total Order Value From'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
<input class="form-control" name="total_order_value_From" id="total_order_value_From" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -132,7 +132,7 @@
|
||||
<?php echo 'Total Order Value To'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
<input class="form-control" name="total_order_value_To" id="total_order_value_To" style="padding:4px;">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -160,7 +160,8 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-md-offset-10"><br>
|
||||
<div class="col-md-6 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('openOrder') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
@ -242,6 +243,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
<form method="post" action="<?php echo base_url("Report_pending_purchase"); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
@ -84,7 +84,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
@ -97,7 +97,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
@ -110,7 +110,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
@ -127,7 +127,7 @@
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
@ -135,7 +135,7 @@
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($from_date)){ echo $from_date; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
@ -144,7 +144,7 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<label for="purchaseorder_number">
|
||||
<?php echo 'Purchase order number'; ?>
|
||||
</label>
|
||||
@ -157,8 +157,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<div class="col-3 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_pending_purchase') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
@ -351,6 +350,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
<form method="post" action="<?php echo base_url('Report_purchase'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
@ -84,7 +84,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
@ -97,7 +97,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
@ -110,7 +110,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
@ -127,7 +127,7 @@
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
@ -135,7 +135,7 @@
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
@ -144,8 +144,9 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<div class="col-3"></div>
|
||||
<div class="col-3 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_purchase') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
@ -425,6 +426,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
<form method="post" action="<?php echo base_url('Report_supplier'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<label for="client_name">
|
||||
<?php echo 'Supplier'; ?>
|
||||
</label>
|
||||
@ -86,20 +86,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label for="client_name">
|
||||
<?php echo 'Material'; ?>
|
||||
</label>
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
foreach ($material as $it): { ?>
|
||||
<option <?php if(isset($prod) && ($prod == $it->MaterialName)){ echo 'selected'; } ?> value="<?php echo $it->MaterialName; ?>"><?php echo $it->MaterialName; ?></option>
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
@ -112,7 +99,7 @@
|
||||
endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
@ -126,10 +113,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<div class="col-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
@ -137,7 +121,11 @@
|
||||
<input type="date" class="form-control" name="from_date" id="max-date" value="<?php if(isset($frm)){ echo $frm; } ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
@ -146,8 +134,9 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<div class="col-6"></div>
|
||||
<div class="col-3 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_supplier') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
@ -272,6 +261,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
|
||||
@ -41,9 +41,9 @@
|
||||
<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"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> </b></h4>
|
||||
<h4 class="page-title"><b> Total Orders </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
@ -59,25 +59,36 @@
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action=" ">
|
||||
<div class="col-md-2">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Budget Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<label for="">Select Budget Year </label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option
|
||||
<?php echo isset($givenYear) && $givenYear == $item->financial_year
|
||||
? "selected" : "" ?>
|
||||
|
||||
value="<?php echo $item->financial_year;?>">
|
||||
<?php echo $item->financial_year ; ?>
|
||||
</option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-10 mt-2 text-right">
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('TotalOrder') ?>';">
|
||||
<input type="submit" class="btn btn-success" id="year" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<table id="req" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
@ -145,37 +156,39 @@
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||
|
||||
<script>
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
//messageTop: $('h3').text(),
|
||||
title: $('h3').text(),
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#req').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#financialyear').select2();
|
||||
})
|
||||
|
||||
</script>
|
||||
@ -4,9 +4,8 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#client_name").select2();
|
||||
$("#item_name").select2();
|
||||
$("#purchaseorder_number").select2();
|
||||
|
||||
$("#financialyear").select2();
|
||||
|
||||
|
||||
});
|
||||
@ -56,7 +55,7 @@
|
||||
<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>
|
||||
<h4 class="page-title"><b> Report - Year Wise </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
@ -74,19 +73,23 @@
|
||||
<form method="post" action="<?php echo base_url('Report_year_wise'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-2">
|
||||
<label for="financialyear"> Select Year</label>
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
foreach($finyear as $item):
|
||||
{?>
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
<option
|
||||
<?php echo isset($givenFinancialYear) && $givenFinancialYear == $item->financial_year ? "selected" : "" ?>
|
||||
value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6"></div>
|
||||
<div class="col-md-8"></div>
|
||||
<div class="col-md-2 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('Report_year_wise') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
@ -200,6 +203,13 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
|
||||
@ -456,14 +456,17 @@
|
||||
} ?>
|
||||
<?php if ($record->is_payslip_generated == 1) { ?> title="Payslip Calculated"
|
||||
style="text-align:right;color:blue;" <?php }else{ ?>style="text-align:right;" <?php } ?>>
|
||||
<?php if (!empty($record->Estimate)) {
|
||||
|
||||
<!-- <?php if (!empty($record->Estimate)) {
|
||||
echo $record->Estimate;
|
||||
$estTotal[] = $record->Estimate;
|
||||
} else {
|
||||
echo $empSalary[$i];
|
||||
$estTotal[] = $empSalary[$i];
|
||||
}
|
||||
?>
|
||||
?> -->
|
||||
|
||||
<?php echo $empSalary[$i]; $estTotal[] = $empSalary[$i]; ?>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
@ -14,9 +11,8 @@
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
table{
|
||||
width:auto;
|
||||
table {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.dataTables_filter input {
|
||||
@ -51,16 +47,16 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Pending </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Reports</a></li>
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Requisation</a></li>
|
||||
<li class="breadcrumb-item active">
|
||||
<h4 class="page-title"><b> Pending </b></h4>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -71,53 +67,72 @@
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="post" action="<?php echo base_url('reportpending'); ?>">
|
||||
|
||||
<form method="post" action="<?php echo base_url('reportpending'); ?>">
|
||||
|
||||
<div class="row form-group has-feedback">
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($finyear as $item):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="financialyear" name="financialyear">
|
||||
<option value="">Select Year</option>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
foreach ($finyear as $item): {; ?>
|
||||
|
||||
<option
|
||||
<?php echo (isset($givenYear) && $item->financial_year == $givenYear) ? "selected" : ""; ?>
|
||||
|
||||
value="<?php echo $item->financial_year; ?>">
|
||||
|
||||
<?php echo $item->financial_year; ?>
|
||||
|
||||
</option>
|
||||
|
||||
|
||||
<?php }
|
||||
endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'Month'; ?>
|
||||
<?php echo 'Month'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<select class="form-control" id="month" name="month">
|
||||
<option value="">Select Month</option>
|
||||
<option value="January">January</option>
|
||||
<option value="February">February</option>
|
||||
<option value="March">March</option>
|
||||
<option value="April">April</option>
|
||||
<option value="May">May</option>
|
||||
<option value="June">June</option>
|
||||
<option value="July">July</option>
|
||||
<option value="August">August</option>
|
||||
<option value="September">September</option>
|
||||
<option value="October">October</option>
|
||||
<option value="November">November</option>
|
||||
<option value="December">December</option>
|
||||
</select>
|
||||
</div>
|
||||
<select class="form-control" id="month" name="month">
|
||||
|
||||
<?php $monthArray = [
|
||||
'January',
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
] ?>
|
||||
|
||||
<option value="">Select Month</option>
|
||||
<?php foreach ($monthArray as $month): ?>
|
||||
<option value="<?= $month ?>" <?php if (isset($givenMonth) && $givenMonth == $month) {
|
||||
echo 'selected';
|
||||
} ?>>
|
||||
<?= $month ?>
|
||||
</option>
|
||||
<?php endforeach ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
@ -126,55 +141,56 @@
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_from" id="aging_from" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="Aging_To">
|
||||
<?php echo 'Aging To'; ?>
|
||||
</label>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="aging_to" id="aging_to" style="padding:4px;" class="form-control">
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3 "><br>
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="from_date" id="max-date" class="form-control datepicker"
|
||||
value="<?php echo isset($givenFrm) ? $givenFrm : "" ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="to_date">
|
||||
<?php echo 'To Date'; ?>
|
||||
</label>
|
||||
<div class="input-group">
|
||||
<input name="to_date" id="min-date" class="form-control datepicker"
|
||||
value="<?php echo isset($givenTo) ? $givenTo : "" ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 text-right"><br>
|
||||
<input type="button" class="btn btn-danger m-2" value="Reset" onclick="window.location.href='<?= base_url('reportpending') ?>';">
|
||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||
value="View Report">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
<table id="cc" class="table table-bordered table-hover wrap" style="background-color:#fff;width: 100% !important;">
|
||||
|
||||
@ -191,30 +207,29 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php if(!empty($pending_list)){
|
||||
foreach($pending_list as $lis)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<!-- <td><span><?php //$date = new DateTime($lis->ReqDate);echo $date->format('d-m-Y'); ?></span></td>-->
|
||||
<td><span><?php echo $lis->ReqDate?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php if (!empty($pending_list)) {
|
||||
foreach ($pending_list as $lis) {
|
||||
?>
|
||||
<tr>
|
||||
<!-- <td><span><?php //$date = new DateTime($lis->ReqDate);echo $date->format('d-m-Y');
|
||||
?></span></td>-->
|
||||
<td><span><?php echo $lis->ReqDate ?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo ?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby ?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName ?></span></td>
|
||||
<td><span><?php echo $lis->ReqType ?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging ?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
|
||||
</tfoot>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
@ -237,140 +252,140 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
// Initialize the DataTable with only pagination enabled
|
||||
var table = $('#cc').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excel',
|
||||
text: 'Excel',
|
||||
}
|
||||
],
|
||||
paging: true, // Enable pagination
|
||||
searching: true, // Disable search
|
||||
ordering: false, // Disable column sorting
|
||||
info: false, // Disable table information
|
||||
lengthChange: false, // Disable page length options
|
||||
pageLength: 10, // Default rows per page
|
||||
responsive: true, // Keep responsive design
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$( function() {
|
||||
$(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",
|
||||
from = $("#min-date")
|
||||
.datepicker({
|
||||
format: "mm/dd/yyyy",
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
orientation: "bottom"
|
||||
//numberOfMonths: 1
|
||||
|
||||
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
.on("change", function() {
|
||||
to.datepicker("option", "minDate", getDate(this));
|
||||
}),
|
||||
to = $("#max-date").datepicker({
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
orientation: "bottom"
|
||||
//numberOfMonths: 1
|
||||
|
||||
})
|
||||
.on("change", function() {
|
||||
from.datepicker("option", "maxDate", getDate(this));
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
function getDate(element) {
|
||||
var date;
|
||||
|
||||
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
|
||||
} catch( error ) {
|
||||
date = $.datepicker.parseDate(dateFormat, element.value);
|
||||
|
||||
} catch (error) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
} );
|
||||
});
|
||||
|
||||
|
||||
//$('.input-daterange').each(function() {
|
||||
// $(this).datepicker('clearDates');
|
||||
//});
|
||||
//$('.input-daterange').each(function() {
|
||||
// $(this).datepicker('clearDates');
|
||||
//});
|
||||
|
||||
|
||||
// Extend dataTables search
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function(settings, data, dataIndex) {
|
||||
var min = (moment($('#min-date').val(), "DD/MM/YYYY").isValid()) ? ~~moment($('#min-date').val(), "DD/MM/YYYY").format("X") : null;
|
||||
var max = (moment($('#max-date').val(), "DD/MM/YYYY").isValid()) ? ~~moment($('#max-date').val(), "DD/MM/YYYY").format("X") : null;
|
||||
var ReqDate = ~~moment(data[0], "DD/MM/YYYY").format("X"); // Our date column in the table
|
||||
// alert(min);
|
||||
if (min == null && max == null) {
|
||||
return true;
|
||||
}
|
||||
if (min == null && ReqDate <= max) {
|
||||
return true;
|
||||
}
|
||||
if (max == null && ReqDate >= min) {
|
||||
return true;
|
||||
}
|
||||
if (ReqDate <= max && ReqDate >= min) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
);
|
||||
// Extend dataTables search
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function(settings, data, dataIndex) {
|
||||
var min = (moment($('#min-date').val(), "DD/MM/YYYY").isValid()) ? ~~moment($('#min-date').val(), "DD/MM/YYYY").format("X") : null;
|
||||
var max = (moment($('#max-date').val(), "DD/MM/YYYY").isValid()) ? ~~moment($('#max-date').val(), "DD/MM/YYYY").format("X") : null;
|
||||
var ReqDate = ~~moment(data[0], "DD/MM/YYYY").format("X"); // Our date column in the table
|
||||
// alert(min);
|
||||
if (min == null && max == null) {
|
||||
return true;
|
||||
}
|
||||
if (min == null && ReqDate <= max) {
|
||||
return true;
|
||||
}
|
||||
if (max == null && ReqDate >= min) {
|
||||
return true;
|
||||
}
|
||||
if (ReqDate <= max && ReqDate >= min) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
// Re-draw the table when the a date range filter changes
|
||||
$('#min-date, #max-date').change(function() {
|
||||
table.draw();
|
||||
});
|
||||
// Re-draw the table when the a date range filter changes
|
||||
$('#min-date, #max-date').change(function() {
|
||||
table.draw();
|
||||
});
|
||||
|
||||
$('#my-table_filter').hide();
|
||||
$('#my-table_filter').hide();
|
||||
|
||||
//total order value range
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function( settings, data, dataIndex ) {
|
||||
var min = parseInt( $('#min').val(), 10 );
|
||||
var max = parseInt( $('#max').val(), 10 );
|
||||
var Aging = parseFloat( data[5] ) || 0;
|
||||
|
||||
if ( ( isNaN( min ) && isNaN( max ) ) ||
|
||||
( isNaN( min ) && Aging <= max ) ||
|
||||
( min <= Aging && isNaN( max ) ) ||
|
||||
( min <= Aging && Aging <= max ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
$(document).ready(function() {
|
||||
//var table = $('#qdetails').DataTable();
|
||||
|
||||
// Event listener to the two range filtering inputs to redraw on input
|
||||
$('#min, #max').keyup( function() {
|
||||
table.draw();
|
||||
} );
|
||||
} );
|
||||
//total order value range
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function(settings, data, dataIndex) {
|
||||
var min = parseInt($('#min').val(), 10);
|
||||
var max = parseInt($('#max').val(), 10);
|
||||
var Aging = parseFloat(data[5]) || 0;
|
||||
|
||||
if ((isNaN(min) && isNaN(max)) ||
|
||||
(isNaN(min) && Aging <= max) ||
|
||||
(min <= Aging && isNaN(max)) ||
|
||||
(min <= Aging && Aging <= max)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
$(document).ready(function() {
|
||||
//var table = $('#qdetails').DataTable();
|
||||
|
||||
// Event listener to the two range filtering inputs to redraw on input
|
||||
$('#min, #max').keyup(function() {
|
||||
table.draw();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//for clear button
|
||||
function Reset()
|
||||
{
|
||||
$('#min').val('');
|
||||
$('#max').val('');
|
||||
$('#min-date').val('');
|
||||
$('#max-date').val('');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
//for clear button
|
||||
function Reset() {
|
||||
$('#min').val('');
|
||||
$('#max').val('');
|
||||
$('#min-date').val('');
|
||||
$('#max-date').val('');
|
||||
$('#financialyear').val('');
|
||||
}
|
||||
</script>
|
||||
@ -55,10 +55,11 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-money-bill-alt"> Finance Reports </span></h4>
|
||||
<p class="uk-text uk-margin-remove">Cost Cente</p>
|
||||
<a href="<?php echo base_url(); ?>Report_costcenter" target="_blank"><p class="uk-text uk-margin-remove">Cost Center</p></a>
|
||||
<p class="uk-text uk-margin-remove">Production Salary Cost</p>
|
||||
</div>
|
||||
|
||||
|
||||
<!--
|
||||
currently not used in Ria..!!
|
||||
<div class="col-md-3">
|
||||
@ -69,9 +70,12 @@
|
||||
<a href="<?php // echo base_url(); ?>cashbookmonthlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Monthly Expenses</p></a>
|
||||
<a href="<?php //echo base_url(); ?>cashbookyearlyexpenses" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Yearly Expenses</p></a>
|
||||
</div> -->
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-mail-bulk "> GST Reports </span></h4>
|
||||
<p class="uk-text uk-margin-remove" target="_blank"> Monthly GST Summary Report </p>
|
||||
<a href="<?php echo base_url(); ?>Report_monthly_gst" target="_blank"><p class="uk-text uk-margin-remove">Monthly GST Summary Report</p></a>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-newspaper"> Sales Reports </span></h4>
|
||||
@ -81,14 +85,11 @@
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-credit-card"> PayRoll </span></h4>
|
||||
<p class="uk-text uk-margin-remove" target="_blank">Employee Payroll</p>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<h4><span class="fa fa-calendar"> Attendance </span></h4>
|
||||
<p class="uk-text uk-margin-remove" target="_blank">Employee Attendance</p>
|
||||
<p class="uk-text uk-margin-remove">Employee Performance</p>
|
||||
<p class="uk-text uk-margin-remove" target="_blank">Employee Performance</p>
|
||||
<a href="<?php echo base_url(); ?>leavereports" target="_blank"><p class="uk-text uk-margin-remove">Leave Report</p></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user