Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
9448b5d26d
@ -95,7 +95,6 @@ class Sales extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// echo "<pre>";
|
// echo "<pre>";
|
||||||
// print_r($data);
|
// print_r($data);
|
||||||
// die;
|
// die;
|
||||||
|
|||||||
@ -616,7 +616,7 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
|
|
||||||
$builder = $this->db->table('t_bagstockdetails tbd')
|
$builder = $this->db->table('t_bagstockdetails tbd')
|
||||||
->select('tbd.balanceStock, tmm.MaterialName ,tmm.MaterialCode')
|
->select('tbd.balanceStock, tmm.MaterialName ,tmm.MaterialCode ,tmm.UOM')
|
||||||
->join('t_materialmaster tmm', 'tmm.MaterialCode = tbd.materialCode')
|
->join('t_materialmaster tmm', 'tmm.MaterialCode = tbd.materialCode')
|
||||||
->where('tbd.date', $lastDateOfCurrentMonth)
|
->where('tbd.date', $lastDateOfCurrentMonth)
|
||||||
->get()
|
->get()
|
||||||
@ -626,7 +626,9 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
$materialCode =array_column($builder,'MaterialCode');
|
$materialCode =array_column($builder,'MaterialCode');
|
||||||
|
|
||||||
$body =array_column($builder,'balanceStock');
|
$body = array_column($builder,'balanceStock');
|
||||||
|
|
||||||
|
$uom = array_column($builder,'UOM');
|
||||||
|
|
||||||
|
|
||||||
$result [] = ['header' => $header];
|
$result [] = ['header' => $header];
|
||||||
@ -635,6 +637,7 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
$result [] = ['body' => $body ?? "Not Opened Yet" ] ;
|
$result [] = ['body' => $body ?? "Not Opened Yet" ] ;
|
||||||
|
|
||||||
|
$result [] = ['uom' => $uom ?? "No Units Pecified" ] ;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -643,7 +646,7 @@ class Ipinvoice_model extends Model
|
|||||||
case "resin":
|
case "resin":
|
||||||
|
|
||||||
$builder = $this->db->table('t_resinStockDetails trd')
|
$builder = $this->db->table('t_resinStockDetails trd')
|
||||||
->select('trd.balanceStock, tmm.MaterialName ,tmm.MaterialCode')
|
->select('trd.balanceStock, tmm.MaterialName ,tmm.MaterialCode ,tmm.UOM')
|
||||||
->join('t_materialmaster tmm', 'tmm.MaterialCode = trd.materialCode')
|
->join('t_materialmaster tmm', 'tmm.MaterialCode = trd.materialCode')
|
||||||
->where('trd.date', $lastDateOfCurrentMonth)
|
->where('trd.date', $lastDateOfCurrentMonth)
|
||||||
->get()
|
->get()
|
||||||
@ -655,6 +658,8 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
$body =array_column($builder,'balanceStock');
|
$body =array_column($builder,'balanceStock');
|
||||||
|
|
||||||
|
$uom =array_column($builder,'UOM');
|
||||||
|
|
||||||
|
|
||||||
$result [] = ['header' => $header];
|
$result [] = ['header' => $header];
|
||||||
|
|
||||||
@ -662,6 +667,8 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
$result [] = ['body' => $body ?? "Not Opened Yet" ] ;
|
$result [] = ['body' => $body ?? "Not Opened Yet" ] ;
|
||||||
|
|
||||||
|
$result [] = ['uom' => $uom ?? "No Units Pecified" ] ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -673,7 +680,7 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
|
|
||||||
$builder = $this->db->table('t_resinStockDetails trd')
|
$builder = $this->db->table('t_resinStockDetails trd')
|
||||||
->select('trd.balanceStock, tmm.MaterialName ,tmm.MaterialCode')
|
->select('trd.balanceStock, tmm.MaterialName ,tmm.MaterialCode , tmm.UOM')
|
||||||
->join('t_materialmaster tmm', 'tmm.MaterialCode = trd.materialCode')
|
->join('t_materialmaster tmm', 'tmm.MaterialCode = trd.materialCode')
|
||||||
->where('trd.date', $lastDateOfCurrentMonth)
|
->where('trd.date', $lastDateOfCurrentMonth)
|
||||||
->get()
|
->get()
|
||||||
@ -685,6 +692,8 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
$body =array_column($builder,'balanceStock');
|
$body =array_column($builder,'balanceStock');
|
||||||
|
|
||||||
|
$uom =array_column($builder,'UOM');
|
||||||
|
|
||||||
|
|
||||||
$result [] = ['header' => $header];
|
$result [] = ['header' => $header];
|
||||||
|
|
||||||
@ -692,6 +701,10 @@ class Ipinvoice_model extends Model
|
|||||||
|
|
||||||
$result [] = ['body' => $body ?? "Not Opened Yet" ] ;
|
$result [] = ['body' => $body ?? "Not Opened Yet" ] ;
|
||||||
|
|
||||||
|
$result [] = ['uom' => $uom ?? "No Units Pecified" ] ;
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
@ -194,7 +194,7 @@
|
|||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<a data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details" class="auditor-restricted-btn"
|
<a class="edit-btn" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details" class="auditor-restricted-btn"
|
||||||
href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||||
<i class="fa fa-pencil-alt" data-toggle="tooltip"> </i>
|
<i class="fa fa-pencil-alt" data-toggle="tooltip"> </i>
|
||||||
|
|
||||||
@ -204,7 +204,7 @@
|
|||||||
<?php
|
<?php
|
||||||
} else if ($statusCode == PO_AMENDED ) { ?>
|
} else if ($statusCode == PO_AMENDED ) { ?>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
<a class="edit-btn" data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType. '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||||
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Amendment Purchase Order details"></i>
|
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Amendment Purchase Order details"></i>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
@ -214,15 +214,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType
|
<a class="edit-btn" data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>">
|
||||||
. '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip"
|
<i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>
|
||||||
title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i>
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>"
|
<a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>" target="new">
|
||||||
target="new"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?>
|
<i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>
|
||||||
- Click here to Print the Purchase Order details"></i>
|
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -314,3 +315,31 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#po_list').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#po_list').on('click', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|||||||
@ -142,31 +142,48 @@
|
|||||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>HSN NO</th>
|
<th style="text-align: center;">HSN NO</th>
|
||||||
<th>Quantity</th>
|
<th style="text-align: center;">Quantity</th>
|
||||||
<th>Total Taxable Amount</th>
|
<th style="text-align: center;">Total Taxable Amount</th>
|
||||||
<th>CGST</th>
|
<th style="text-align: center;">CGST</th>
|
||||||
<th>SGST</th>
|
<th style="text-align: center;">SGST</th>
|
||||||
<th>IGST</th>
|
<th style="text-align: center;">IGST</th>
|
||||||
<th>Net Invoice Amount</th>
|
<th style="text-align: center;">Net Invoice Amount</th>
|
||||||
<th>Rate Of Tax</th>
|
<th style="text-align: center;">Rate Of Tax</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php if(!empty($hsnCreditNoteRegister)){ ?>
|
<?php if(!empty($hsnCreditNoteRegister)){
|
||||||
|
$totalQuantity = 0;
|
||||||
|
$totalTaxableAmount = 0;
|
||||||
|
$totalCgst = 0;
|
||||||
|
$totalSgst = 0;
|
||||||
|
$totalIgst = 0;
|
||||||
|
$totalNetInvoiceAmount = 0;
|
||||||
|
?>
|
||||||
|
|
||||||
<?php foreach($hsnCreditNoteRegister as $index => $hcn) { ?>
|
<?php foreach($hsnCreditNoteRegister as $index => $hcn) {
|
||||||
|
|
||||||
|
$totalQuantity += $hcn['quantity'];
|
||||||
|
$totalTaxableAmount += $hcn['totalTaxableAmount'];
|
||||||
|
$totalCgst += $hcn['cgst'];
|
||||||
|
$totalSgst += $hcn['sgst'];
|
||||||
|
$totalIgst += $hcn['igst'];
|
||||||
|
$totalNetInvoiceAmount += $hcn['netInvoiceAmount'];
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $hcn['hsnOrSac']; ?></td>
|
<td style="text-align: center;"><?php echo $hcn['hsnOrSac']; ?></td>
|
||||||
<td><?php echo $hcn['quantity']; ?></td>
|
<td style="text-align: right;"><?php echo $hcn['quantity']; ?></td>
|
||||||
<td><?php echo $hcn['totalTaxableAmount']; ?></td>
|
<td style="text-align: right;"><?php echo $hcn['totalTaxableAmount']; ?></td>
|
||||||
<td><?php echo $hcn['cgst']== 0 ? " " : $hcn['cgst']; ?></td>
|
<td style="text-align: right;"><?php echo $hcn['cgst']== 0 ? " " : $hcn['cgst']; ?></td>
|
||||||
<td><?php echo $hcn['sgst']== 0 ? " " : $hcn['sgst']; ?></td>
|
<td style="text-align: right;"><?php echo $hcn['sgst']== 0 ? " " : $hcn['sgst']; ?></td>
|
||||||
<td><?php echo $hcn['igst']== 0 ? " " : $hcn['igst']; ?></td>
|
<td style="text-align: right;"><?php echo $hcn['igst']== 0 ? " " : $hcn['igst']; ?></td>
|
||||||
<td><?php echo $hcn['netInvoiceAmount']; ?></td>
|
<td style="text-align: right;"><?php echo $hcn['netInvoiceAmount']; ?></td>
|
||||||
<td><?php echo $hcn['rateOfTax']; ?></td>
|
<td style="text-align: center;"><?php echo $hcn['rateOfTax']; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -179,6 +196,17 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th colspan="1" style="text-align: right;">Total:</th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalQuantity; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalTaxableAmount; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalCgst== 0 ? " " : $totalCgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalSgst== 0 ? " " : $totalSgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalIgst== 0 ? " " : $totalIgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalNetInvoiceAmount; ?></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div> <!-- end card body-->
|
</div> <!-- end card body-->
|
||||||
@ -201,31 +229,32 @@
|
|||||||
<script>
|
<script>
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
// Initialize the DataTable with only pagination enabled
|
|
||||||
var table = $('#cc').DataTable({
|
var table = $('#cc').DataTable({
|
||||||
dom: 'Blfrtip',
|
dom: 'Blfrtip',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'excel',
|
extend: 'excel',
|
||||||
text: 'Excel',
|
text: 'Excel',
|
||||||
|
footer: true // ✅ This includes the footer in the exported Excel file
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
paging: true, // Enable pagination
|
paging: true,
|
||||||
searching: true, // Disable search
|
searching: true, // You had this as 'true', so I left it unless you meant to disable it
|
||||||
ordering: false, // Disable column sorting
|
ordering: false,
|
||||||
info: false, // Disable table information
|
info: false,
|
||||||
lengthChange: false, // Disable page length options
|
lengthChange: false,
|
||||||
pageLength: 10, // Default rows per page
|
pageLength: 10,
|
||||||
responsive: true, // Keep responsive design
|
responsive: true,
|
||||||
language: {
|
language: {
|
||||||
paginate: {
|
paginate: {
|
||||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
next: '<i class="fas fa-angle-right"></i>',
|
||||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
previous: '<i class="fas fa-angle-left"></i>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -139,31 +139,50 @@
|
|||||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>HSN NO</th>
|
<th style="text-align: center;">HSN NO</th>
|
||||||
<th>Quantity</th>
|
<th style="text-align: center;">Quantity</th>
|
||||||
<th>Total Taxable Amount</th>
|
<th style="text-align: center;">Total Taxable Amount</th>
|
||||||
<th>CGST</th>
|
<th style="text-align: center;">CGST</th>
|
||||||
<th>SGST</th>
|
<th style="text-align: center;">SGST</th>
|
||||||
<th>IGST</th>
|
<th style="text-align: center;">IGST</th>
|
||||||
<th>Net Invoice Amount</th>
|
<th style="text-align: center;">Net Invoice Amount</th>
|
||||||
<th>Rate Of Tax</th>
|
<th style="text-align: center;">Rate Of Tax</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php if(!empty($hsnSalesRegister)){ ?>
|
<?php if(!empty($hsnSalesRegister)){
|
||||||
|
|
||||||
<?php foreach($hsnSalesRegister as $index => $hs) { ?>
|
$totalQuantity = 0;
|
||||||
|
$totalTaxableAmount = 0;
|
||||||
|
$totalCgst = 0;
|
||||||
|
$totalSgst = 0;
|
||||||
|
$totalIgst = 0;
|
||||||
|
$totalNetInvoiceAmount = 0;
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php foreach($hsnSalesRegister as $index => $hs) {
|
||||||
|
|
||||||
|
$totalQuantity += $hs['quantity'];
|
||||||
|
$totalTaxableAmount += $hs['totalTaxableAmount'];
|
||||||
|
$totalCgst += $hs['cgst'];
|
||||||
|
$totalSgst += $hs['sgst'];
|
||||||
|
$totalIgst += $hs['igst'];
|
||||||
|
$totalNetInvoiceAmount += $hs['netInvoiceAmount'];
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $hs['hsnOrSac']; ?></td>
|
<td style="text-align: center;"><?php echo $hs['hsnOrSac']; ?></td>
|
||||||
<td><?php echo $hs['quantity']; ?></td>
|
<td style="text-align: right;"><?php echo $hs['quantity']; ?></td>
|
||||||
<td><?php echo $hs['totalTaxableAmount']; ?></td>
|
<td style="text-align: right;"><?php echo $hs['totalTaxableAmount']; ?></td>
|
||||||
<td><?php echo $hs['cgst']== 0 ? " " : $hs['cgst']; ?></td>
|
<td style="text-align: right;"><?php echo $hs['cgst']== 0 ? " " : $hs['cgst']; ?></td>
|
||||||
<td><?php echo $hs['sgst']== 0 ? " " : $hs['sgst']; ?></td>
|
<td style="text-align: right;"><?php echo $hs['sgst']== 0 ? " " : $hs['sgst']; ?></td>
|
||||||
<td><?php echo $hs['igst']== 0 ? " " : $hs['igst']; ?></td>
|
<td style="text-align: right;"><?php echo $hs['igst']== 0 ? " " : $hs['igst']; ?></td>
|
||||||
<td><?php echo $hs['netInvoiceAmount']; ?></td>
|
<td style="text-align: right;"><?php echo $hs['netInvoiceAmount']; ?></td>
|
||||||
<td><?php echo $hs['rateOfTax']; ?></td>
|
<td style="text-align: center;"><?php echo $hs['rateOfTax']; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -176,6 +195,17 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th colspan="1" style="text-align: right;">Total:</th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalQuantity; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalTaxableAmount; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalCgst== 0 ? " " : $totalCgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalSgst== 0 ? " " : $totalSgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalIgst== 0 ? " " : $totalIgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalNetInvoiceAmount; ?></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div> <!-- end card body-->
|
</div> <!-- end card body-->
|
||||||
@ -198,31 +228,32 @@
|
|||||||
<script>
|
<script>
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
// Initialize the DataTable with only pagination enabled
|
|
||||||
var table = $('#cc').DataTable({
|
var table = $('#cc').DataTable({
|
||||||
dom: 'Blfrtip',
|
dom: 'Blfrtip',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'excel',
|
extend: 'excel',
|
||||||
text: 'Excel',
|
text: 'Excel',
|
||||||
|
footer: true // ✅ This includes the footer in the exported Excel file
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
paging: true, // Enable pagination
|
paging: true,
|
||||||
searching: true, // Disable search
|
searching: true, // You had this as 'true', so I left it unless you meant to disable it
|
||||||
ordering: false, // Disable column sorting
|
ordering: false,
|
||||||
info: false, // Disable table information
|
info: false,
|
||||||
lengthChange: false, // Disable page length options
|
lengthChange: false,
|
||||||
pageLength: 10, // Default rows per page
|
pageLength: 10,
|
||||||
responsive: true, // Keep responsive design
|
responsive: true,
|
||||||
language: {
|
language: {
|
||||||
paginate: {
|
paginate: {
|
||||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
next: '<i class="fas fa-angle-right"></i>',
|
||||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
previous: '<i class="fas fa-angle-left"></i>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -142,31 +142,49 @@
|
|||||||
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
<!-- <table class="table table-bordered table-hover" id="asset_list_table" style="background-color:#fff;font-size:12px;"> -->
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>HSN NO</th>
|
<th style="text-align: center;">HSN NO</th>
|
||||||
<th>Quantity</th>
|
<th style="text-align: center;">Quantity</th>
|
||||||
<th>Total Taxable Amount</th>
|
<th style="text-align: center;">Total Taxable Amount</th>
|
||||||
<th>CGST</th>
|
<th style="text-align: center;">CGST</th>
|
||||||
<th>SGST</th>
|
<th style="text-align: center;">SGST</th>
|
||||||
<th>IGST</th>
|
<th style="text-align: center;">IGST</th>
|
||||||
<th>Net Invoice Amount</th>
|
<th style="text-align: center;">Net Invoice Amount</th>
|
||||||
<th>Rate Of Tax</th>
|
<th style="text-align: center;">Rate Of Tax</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php if(!empty($hsnSummaryRegister)){ ?>
|
<?php if(!empty($hsnSummaryRegister)){
|
||||||
|
|
||||||
<?php foreach($hsnSummaryRegister as $index => $hsm) { ?>
|
$totalQuantity = 0;
|
||||||
|
$totalTaxableAmount = 0;
|
||||||
|
$totalCgst = 0;
|
||||||
|
$totalSgst = 0;
|
||||||
|
$totalIgst = 0;
|
||||||
|
$totalNetInvoiceAmount = 0;
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php foreach($hsnSummaryRegister as $index => $hsm) {
|
||||||
|
|
||||||
|
$totalQuantity += $hsm['quantity'];
|
||||||
|
$totalTaxableAmount += $hsm['totalTaxableAmount'];
|
||||||
|
$totalCgst += $hsm['cgst'];
|
||||||
|
$totalSgst += $hsm['sgst'];
|
||||||
|
$totalIgst += $hsm['igst'];
|
||||||
|
$totalNetInvoiceAmount += $hsm['netInvoiceAmount'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $hsm['hsnOrSac']; ?></td>
|
<td style="text-align: center;"><?php echo $hsm['hsnOrSac']; ?></td>
|
||||||
<td><?php echo $hsm['quantity']; ?></td>
|
<td style="text-align: right;"><?php echo $hsm['quantity']; ?></td>
|
||||||
<td><?php echo $hsm['totalTaxableAmount']; ?></td>
|
<td style="text-align: right;"><?php echo $hsm['totalTaxableAmount']; ?></td>
|
||||||
<td><?php echo $hsm['cgst']== 0 ? " " : $hsm['cgst']; ?></td>
|
<td style="text-align: right;"><?php echo $hsm['cgst']== 0 ? " " : round($hsm['cgst'],2); ?></td>
|
||||||
<td><?php echo $hsm['sgst']== 0 ? " " : $hsm['sgst']; ?></td>
|
<td style="text-align: right;"><?php echo $hsm['sgst']== 0 ? " " : round($hsm['sgst'],2); ?></td>
|
||||||
<td><?php echo $hsm['igst']== 0 ? " " : $hsm['igst']; ?></td>
|
<td style="text-align: right;"><?php echo $hsm['igst']== 0 ? " " : round($hsm['igst'],2); ?></td>
|
||||||
<td><?php echo $hsm['netInvoiceAmount']; ?></td>
|
<td style="text-align: right;"><?php echo $hsm['netInvoiceAmount']; ?></td>
|
||||||
<td><?php echo $hsm['rateOfTax']; ?></td>
|
<td style="text-align: center;"><?php echo $hsm['rateOfTax']; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -178,7 +196,16 @@
|
|||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<th colspan="1" style="text-align: right;">Total:</th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalQuantity; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalTaxableAmount; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalCgst== 0 ? " " : $totalCgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalSgst== 0 ? " " : $totalSgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalIgst== 0 ? " " : $totalIgst; ?></th>
|
||||||
|
<th colspan="1" style="text-align: right;"><?php echo $totalNetInvoiceAmount; ?></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div> <!-- end card body-->
|
</div> <!-- end card body-->
|
||||||
@ -201,31 +228,32 @@
|
|||||||
<script>
|
<script>
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
// Initialize the DataTable with only pagination enabled
|
|
||||||
var table = $('#cc').DataTable({
|
var table = $('#cc').DataTable({
|
||||||
dom: 'Blfrtip',
|
dom: 'Blfrtip',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'excel',
|
extend: 'excel',
|
||||||
text: 'Excel',
|
text: 'Excel',
|
||||||
|
footer: true // ✅ This includes the footer in the exported Excel file
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
paging: true, // Enable pagination
|
paging: true,
|
||||||
searching: true, // Disable search
|
searching: true, // You had this as 'true', so I left it unless you meant to disable it
|
||||||
ordering: false, // Disable column sorting
|
ordering: false,
|
||||||
info: false, // Disable table information
|
info: false,
|
||||||
lengthChange: false, // Disable page length options
|
lengthChange: false,
|
||||||
pageLength: 10, // Default rows per page
|
pageLength: 10,
|
||||||
responsive: true, // Keep responsive design
|
responsive: true,
|
||||||
language: {
|
language: {
|
||||||
paginate: {
|
paginate: {
|
||||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
next: '<i class="fas fa-angle-right"></i>',
|
||||||
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
|
previous: '<i class="fas fa-angle-left"></i>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="<?php echo base_url() . 'emppaydate/downloadEmpLoanData/' . $record->Pay_Data_ID; ?>"><i class="fas fa-download"></i></a>
|
<a href="<?php echo base_url() . 'emppaydate/downloadEmpLoanData/' . $record->Pay_Data_ID; ?>"><i class="fas fa-download"></i></a>
|
||||||
|
|
||||||
<a href="<?php echo base_url() . 'emppaydate/editOldemppay/' . $record->Pay_Data_ID; ?>"><i class="fas fa-pencil-alt"></i></a>
|
<a class="edit-btn" href="<?php echo base_url() . 'emppaydate/editOldemppay/' . $record->Pay_Data_ID; ?>"><i class="fas fa-pencil-alt"></i></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php }
|
<?php }
|
||||||
@ -85,3 +85,31 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#datatable').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#datatable').on('click', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|||||||
@ -140,7 +140,15 @@ if (empty($Status)) {
|
|||||||
$PODate = $podt->format('d-m-Y');
|
$PODate = $podt->format('d-m-Y');
|
||||||
echo $PODate;
|
echo $PODate;
|
||||||
?></td>
|
?></td>
|
||||||
<td><a style="cursor: pointer; color: #039985; text-decoration: none;" target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->RType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>"><?php echo $record->PONO ?> </td>
|
<td> <a style="cursor: pointer; color: #039985; text-decoration: none;"
|
||||||
|
target="_blank"
|
||||||
|
href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->RType ?>"
|
||||||
|
data-userid="<?php echo $record->PONO ?>"
|
||||||
|
>
|
||||||
|
<?php echo $record->PONO ?>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td><?php echo $record->RType ?> </td>
|
<td><?php echo $record->RType ?> </td>
|
||||||
<td><?php echo $record->CostCenterName ?> </td>
|
<td><?php echo $record->CostCenterName ?> </td>
|
||||||
|
|
||||||
@ -186,7 +194,7 @@ if (empty($Status)) {
|
|||||||
|
|
||||||
|
|
||||||
<select
|
<select
|
||||||
class="form-control"
|
class="form-control edit-btn"
|
||||||
name="selectId" id="selectId"
|
name="selectId" id="selectId"
|
||||||
onchange="showvalue('<?php echo $record->PONO ?>','<?php echo $index; ?>',this.options[this.selectedIndex].value,'<?php echo $record->Remarks ?>');"
|
onchange="showvalue('<?php echo $record->PONO ?>','<?php echo $index; ?>',this.options[this.selectedIndex].value,'<?php echo $record->Remarks ?>');"
|
||||||
style="width: 193px;">
|
style="width: 193px;">
|
||||||
@ -526,3 +534,31 @@ if (empty($Status)) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#po_release').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#po_release').on('change', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@ -264,7 +264,7 @@
|
|||||||
var table = $('#cc').DataTable({
|
var table = $('#cc').DataTable({
|
||||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||||
buttons: [
|
buttons: [
|
||||||
'copy', 'csv' // Export buttons
|
'excel' // Export buttons
|
||||||
],
|
],
|
||||||
pageLength: 10, // Default rows per page
|
pageLength: 10, // Default rows per page
|
||||||
lengthMenu: [
|
lengthMenu: [
|
||||||
|
|||||||
@ -173,7 +173,7 @@ if (!empty($Status)) {
|
|||||||
|
|
||||||
<td align="left" style="padding-left: 3%;"><?php echo strtoupper($record->StatusName); ?></td>
|
<td align="left" style="padding-left: 3%;"><?php echo strtoupper($record->StatusName); ?></td>
|
||||||
|
|
||||||
<td> <a data-toggle="tooltip"
|
<td> <a class="edit-btn" data-toggle="tooltip"
|
||||||
href="<?php echo base_url() . 'EditRequisitionForm?ReqNo=' . $record->ReqNo . '&ReqType=' . $record->ReqType; ?>"><i
|
href="<?php echo base_url() . 'EditRequisitionForm?ReqNo=' . $record->ReqNo . '&ReqType=' . $record->ReqType; ?>"><i
|
||||||
class="fas fa-pencil-alt" data-toggle="tooltip"
|
class="fas fa-pencil-alt" data-toggle="tooltip"
|
||||||
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i> </a>
|
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i> </a>
|
||||||
@ -315,3 +315,32 @@ if (!empty($Status)) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Ensure DataTable is initialized
|
||||||
|
let table = $('#requisition_listing').DataTable();
|
||||||
|
|
||||||
|
console.log("DataTable initialized:", table ? "Yes" : "No");
|
||||||
|
|
||||||
|
// Store page number on edit button click
|
||||||
|
$('#requisition_listing').on('click', '.edit-btn', function () {
|
||||||
|
const pageInfo = table.page.info();
|
||||||
|
|
||||||
|
console.log("Edit clicked, current page info:", pageInfo);
|
||||||
|
|
||||||
|
sessionStorage.setItem("datatablePage", pageInfo.page);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Restore page if saved
|
||||||
|
let startPage = sessionStorage.getItem("datatablePage");
|
||||||
|
if (startPage !== null) {
|
||||||
|
console.log("Restoring to page:", startPage);
|
||||||
|
table.page(parseInt(startPage)).draw('page');
|
||||||
|
sessionStorage.removeItem("datatablePage");
|
||||||
|
} else {
|
||||||
|
console.log("No page info found in sessionStorage.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|||||||
@ -121,8 +121,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<a class="btn btn-primary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=resin">Resin</a>
|
<a class="btn btn-primary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=resin">Resin</a>
|
||||||
<a class="btn btn-secondary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=bag">Bag</a>
|
<a class="btn btn-secondary btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=bag">Bag</a>
|
||||||
<a class="btn btn-danger btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=diesel">Diesel</a>
|
|
||||||
<a class="btn btn-success btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=gas">Gas</a>
|
<a class="btn btn-success btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=gas">Gas</a>
|
||||||
|
<a class="btn btn-danger btn-sm px-2" href="<?php echo base_url(); ?>sales_dashboard?stock=diesel">Diesel</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
@ -160,6 +161,7 @@
|
|||||||
<th>S.NO</th>
|
<th>S.NO</th>
|
||||||
<th>Material Code</th>
|
<th>Material Code</th>
|
||||||
<th>Material Description</th>
|
<th>Material Description</th>
|
||||||
|
<th>Unit Of Measurement</th>
|
||||||
<th>Closing Stock</th>
|
<th>Closing Stock</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -189,6 +191,7 @@
|
|||||||
<?php echo $stock[0]['header'][$index] ?>
|
<?php echo $stock[0]['header'][$index] ?>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td><?php echo $stock[3]['uom'][$index] ?> </td>
|
||||||
<td> <?php echo $body ?></td>
|
<td> <?php echo $body ?></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user