cumulative report temp total change

This commit is contained in:
venbatechnologies@gmail.com 2018-06-26 15:20:01 +05:30
parent 8effb72313
commit 7ae7736b5d
13 changed files with 1013 additions and 216 deletions

View File

@ -292,6 +292,12 @@ class amendmentpurchaseorder extends BaseController
$RowCount = $this->input->post('txtRowCount');
$dtt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updateddt = $dtt->format('Y-m-d H:i:s');
$qtycheck = $this->purchaseorder_model->getqtycheck($PONO);
$qtycheckresult='';
foreach($qtycheck as $qty)
{
$qtycheckresult= $qty->IsQualityChkReqired;
}
if(empty($Deliverydt))
{
$Deliverydt=null;
@ -302,7 +308,7 @@ class amendmentpurchaseorder extends BaseController
}
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'PORange'=>$PoRange,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Reference'=>$supplierreference,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'InsuranceNumber'=>$insuranceno,'POSubType'=>$revenuetype,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD);
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID,'POType'=>$POType,'PORange'=>$PoRange,'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'Mode_Of_Shipment'=>$Modeofshipment,'Supplier_Reference'=>$supplierreference,'Supplier_Offer_No'=>$supplieroffno,'Other_Reference'=>$otherreference,'Fincap'=>$fincap,'InsuranceStatus'=>$insurancestatus,'InsuranceNumber'=>$insuranceno,'POSubType'=>$revenuetype,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpecialInstruction,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'UpdatedOn'=>$updateddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD,'IsQualityChkReqired'=>$qtycheckresult);
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
if(count($LastPO)>0)
{
@ -581,6 +587,12 @@ class amendmentpurchaseorder extends BaseController
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$updateddt = $dt->format('Y-m-d H:i:s');
$WorkStatus=$this->input->post('workstatus');
$qtycheck = $this->purchaseorder_model->getqtycheck($PONO);
$qtycheckresult='';
foreach($qtycheck as $qty)
{
$qtycheckresult= $qty->IsQualityChkReqired;
}
// PO Master
if(empty($Deliverydt))
{
@ -589,7 +601,7 @@ class amendmentpurchaseorder extends BaseController
if($PaymentTerms != 'PT08'){
$Otherpayment='';
}
$POMaster = array('ParentPO'=>$PONO,'POType'=>$POType,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$scopeofwork,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'ServiceWorkStatus'=>$WorkStatus,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'Description_Of_Service'=>$DescriptionOfPo,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions);
$POMaster = array('ParentPO'=>$PONO,'POType'=>$POType,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>PO_RELEASED,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$scopeofwork,'CreatedBy'=>$updatedBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$updateddt,'PaymentTerms'=>$PaymentTerms,'PaymentOtherDescription'=>$Otherpayment,'ServiceWorkStatus'=>$WorkStatus,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'AmendedDetails'=>$MAD,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'Description_Of_Service'=>$DescriptionOfPo,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions,'IsQualityChkReqired'=>$qtycheckresult);
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$updatedBy,$PONO);
@ -814,6 +826,12 @@ class amendmentpurchaseorder extends BaseController
$createddt = $dt->format('Y-m-d H:i:s');
$updateddt = $dt->format('Y-m-d H:i:s');
$qtycheck = $this->purchaseorder_model->getqtycheck($PONO);
$qtycheckresult='';
foreach($qtycheck as $qty)
{
$qtycheckresult= $qty->IsQualityChkReqired;
}
if(empty($Deliverydt)){
$Deliverydt=null;
}
@ -822,7 +840,7 @@ class amendmentpurchaseorder extends BaseController
$Otherpayment='';
}
$updatedBy = $this->session->userdata ( 'userId' );
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$FinalTotalOrder,'POType'=>$POType,'PODate'=>$PODate,'Status'=>PO_RELEASED,'CapitalRange'=>$PoRange,'ExchangeRate'=>$ExchangeRate,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'PaymentTerms'=>$PaymentMethod,'PaymentOtherDescription'=>$Otherpayment,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CurrencyType'=>$currencytypeID,'AmendedDetails'=>$MAD,'Import_DispatchDetails'=>$curdispatch,'Import_PlaceofOrgin'=>$PlaceOforigin,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions);
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'TotalOrderValue'=>$FinalTotalOrder,'POType'=>$POType,'PODate'=>$PODate,'Status'=>PO_RELEASED,'CapitalRange'=>$PoRange,'ExchangeRate'=>$ExchangeRate,'ExchangeRateCalculatedon'=>$ExchangeRateOn,'PaymentTerms'=>$PaymentMethod,'PaymentOtherDescription'=>$Otherpayment,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'CurrencyType'=>$currencytypeID,'AmendedDetails'=>$MAD,'Import_DispatchDetails'=>$curdispatch,'Import_PlaceofOrgin'=>$PlaceOforigin,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions,'IsQualityChkReqired'=>$qtycheckresult);
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$CreateBy,$PONO);
foreach($LastPO as $PO):
@ -1135,6 +1153,12 @@ class amendmentpurchaseorder extends BaseController
$Insurance=$this->input->post('Insurance');
$qtycheck = $this->purchaseorder_model->getqtycheck($PONO);
$qtycheckresult='';
foreach($qtycheck as $qty)
{
$qtycheckresult= $qty->IsQualityChkReqired;
}
if($Insurance=='YES')
{
@ -1163,7 +1187,7 @@ class amendmentpurchaseorder extends BaseController
$MAD.=$MAD."Current Place of Origin:&nbsp;&nbsp;" . $beforePalaceoforigin."<br>";
}
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'Import_PlaceofOrgin'=>$Palaceoforigin,'Mode_Of_Shipment'=>$Shipmentmode,'Supplier_Reference'=>$SupplierRef,'Supplier_Offer_No'=>$SupplierOffer,'Other_Reference'=>$otherRef,'Fincap'=>$finCap,'AmendedDetails'=>$MAD,'PaymentOtherDescription'=>$OtherPayment,'InsuranceStatus'=>$insurestatus,'InsuranceNumber'=>$Insurancenumber,'POSubType'=>$importoption);
$POMaster = array('ParentPO'=>$PONO,'SupplierID'=>$SupplierID, 'POType'=>$POType,'TotalOrderValue'=>$TotalOrder,'PODate'=>$PODate,'Status'=>$POStatus,'PORange'=>$PoRange,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'Import_DispatchDetails'=>$Dispatch,'CreatedDate'=>$createddt,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ExchangeRate'=>$Exchangerate,'ExchangeRateCalculatedon'=>$ExchangeRateCalculatedon,'CurrencyType'=>$CurrencyType,'PaymentTerms'=>$PaymentTerms,'ReleasedBy'=>$updatedBy,'ReleasedOn'=>$updateddt,'Import_PlaceofOrgin'=>$Palaceoforigin,'Mode_Of_Shipment'=>$Shipmentmode,'Supplier_Reference'=>$SupplierRef,'Supplier_Offer_No'=>$SupplierOffer,'Other_Reference'=>$otherRef,'Fincap'=>$finCap,'AmendedDetails'=>$MAD,'PaymentOtherDescription'=>$OtherPayment,'InsuranceStatus'=>$insurestatus,'InsuranceNumber'=>$Insurancenumber,'POSubType'=>$importoption,'IsQualityChkReqired'=>$qtycheckresult);
$LastPO = $this->purchaseorder_model->addAmendPOMaster($POMaster,$CreateBy,$PONO);
$NewPO = '';
if(count($LastPO)>0)

View File

@ -417,19 +417,19 @@ table.dataTable thead > tr > td.sorting {
<tr>
<th style="text-align:center;">Supplier Name</th>
<th style="text-align:center;">Material Name</th>
<th style="text-align:center;">Apr &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">May &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Jun &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center;">Jul &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Aug &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center;">Sep &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Oct &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Nov &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Dec &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Jan &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align: center;">Feb &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align: center;">Mar &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align: center;">Total &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Apr &nbsp;(&#8377;)</th>
<th style="text-align:center;">May &nbsp;(&#8377;)</th>
<th style="text-align:center;">Jun &nbsp;(&#8377;)</th>
<th style="text-align:center;">Jul &nbsp;(&#8377;)</th>
<th style="text-align:center;">Aug &nbsp;(&#8377;)</th>
<th style="text-align:center;">Sep &nbsp;(&#8377;)</th>
<th style="text-align:center;">Oct &nbsp;(&#8377;)</th>
<th style="text-align:center;">Nov &nbsp;(&#8377;)</th>
<th style="text-align:center;">Dec &nbsp;(&#8377;)</th>
<th style="text-align:center;">Jan &nbsp;(&#8377;)</th>
<th style="text-align: center;">Feb &nbsp;(&#8377;)</th>
<th style="text-align: center;">Mar &nbsp;(&#8377;)</th>
<th style="text-align: center;">Total &nbsp;(&#8377;)</th>
</tr>
</thead>
@ -697,7 +697,49 @@ table.dataTable thead > tr > td.sorting {
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
var april_value_sum =0;
var april_quantity_sum= 0;
var may_value_sum =0;
var may_quantity_sum= 0;
var june_value_sum =0;
var june_quantity_sum= 0;
var july_value_sum =0;
var july_quantity_sum= 0;
var august_value_sum =0;
var august_quantity_sum= 0;
var september_value_sum =0;
var september_quantity_sum= 0;
var october_value_sum =0;
var october_quantity_sum= 0;
var november_value_sum =0;
var november_quantity_sum= 0;
var december_value_sum =0;
var december_quantity_sum= 0;
var january_value_sum =0;
var january_quantity_sum= 0;
var february_value_sum =0;
var february_quantity_sum= 0;
var march_value_sum =0;
var march_quantity_sum= 0;
var finalTotal_value_sum =0;
var finalTotal_quantity_sum= 0;
table = $('#tab').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>>",
@ -715,40 +757,141 @@ $(document).ready(function() {
},
'colvis'
],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
//var newText = $(this).find('span').text();
// Remove the formatting to get integer data for summation
var intVal = function ( i ) {
return typeof i === 'string' ?
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
typeof i === 'number' ?
parseFloat(i) : 0;
};
],
"footerCallback": function ( row, data, start, end, display )
{
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var april_value_value = $('#aprval'+count).text();
var may_value_value = $('#mayin'+count).text();
var june_value_value = $('#junin'+count).text();
var july_value_value = $('#jlyin'+count).text();
var august_value_value = $('#augin'+count).text();
var september_value_value = $('#sepin'+count).text();
var october_value_value = $('#octin'+count).text();
var november_value_value = $('#novin'+count).text();
var december_value_value = $('#decin'+count).text();
var january_value_value = $('#janin'+count).text();
var february_value_value = $('#febin'+count).text();
var march_value_value = $('#marin'+count).text();
var finalTotal_value_value = $('#totalvalue'+count).text();
TotalQTY = api
.column( 7, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 7 ).footer() ).html( TotalQTY );
TotalVALUE = api
.column( 10, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 10 ).footer() ).html( TotalVALUE.toFixed(2) );
april_value_sum += +april_value_value;
}
may_value_sum += +may_value_value;
june_value_sum += +june_value_value;
july_value_sum += +july_value_value;
august_value_sum += +august_value_value;
september_value_sum += +september_value_value;
october_value_sum += +october_value_value;
november_value_sum += +november_value_value;
december_value_sum += +december_value_value;
january_value_sum += +january_value_value;
february_value_sum += +february_value_value;
march_value_sum += +march_value_value;
finalTotal_value_sum += +finalTotal_value_value;
}
var api = this.api(), data;
$( api.column( 1 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 2 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 3 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 4 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 5 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 6 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 7 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 8 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 9 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 10 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 11 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 12 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 13 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 14 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 15 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 16 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 17 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 18 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 19 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 20 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 21 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 22 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 23 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 24 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 25 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 26 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_quantity_sum).toFixed(2).bold()+'</a>' );
}
} );
} );
$(document).ready(function() {
table = $('#ta').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
@ -767,7 +910,152 @@ $(document).ready(function() {
},
'colvis'
]
],
"footerCallback": function ( row, data, start, end, display )
{
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var april_value_value = $('#aprin'+count).text();
var april_quantity_value= $('#aprex'+count).text();
var may_value_value = $('#mayin'+count).text();
var may_quantity_value= $('#mayex'+count).text();
var june_value_value = $('#junin'+count).text();
var june_quantity_value= $('#junex'+count).text();
var july_value_value = $('#jlyin'+count).text();
var july_quantity_value= $('#jlyex'+count).text();
var august_value_value = $('#augin'+count).text();
var august_quantity_value= $('#augex'+count).text();
var september_value_value = $('#sepin'+count).text();
var september_quantity_value= $('#sepex'+count).text();
var october_value_value = $('#octin'+count).text();
var october_quantity_value= $('#octex'+count).text();
var november_value_value = $('#novin'+count).text();
var november_quantity_value= $('#novex'+count).text();
var december_value_value = $('#decin'+count).text();
var december_quantity_value= $('#decex'+count).text();
var january_value_value = $('#janin'+count).text();
var january_quantity_value= $('#janex'+count).text();
var february_value_value = $('#febin'+count).text();
var february_quantity_value= $('#febex'+count).text();
var march_value_value = $('#marin'+count).text();
var march_quantity_value= $('#marex'+count).text();
var finalTotal_value_value = $('#totalvalue'+count).text();
var finalTotal_quantity_value= $('#totalquantity'+count).text();
april_value_sum += +april_value_value;
april_quantity_sum += +april_quantity_value;
may_value_sum += +may_value_value;
may_quantity_sum += +may_quantity_value;
june_value_sum += +june_value_value;
june_quantity_sum += +june_quantity_value;
july_value_sum += +july_value_value;
july_quantity_sum += +july_quantity_value;
august_value_sum += +august_value_value;
august_quantity_sum += +august_quantity_value;
september_value_sum += +september_value_value;
september_quantity_sum += +september_quantity_value;
october_value_sum += +october_value_value;
october_quantity_sum += +october_quantity_value;
november_value_sum += +november_value_value;
november_quantity_sum += +november_quantity_value;
december_value_sum += +december_value_value;
december_quantity_sum += +december_quantity_value;
january_value_sum += +january_value_value;
january_quantity_sum += +january_quantity_value;
february_value_sum += +february_value_value;
february_quantity_sum += +february_quantity_value;
march_value_sum += +march_value_value;
march_quantity_sum += +march_quantity_value;
finalTotal_value_sum += +finalTotal_value_value;
finalTotal_quantity_sum += +finalTotal_quantity_value;
}
var api = this.api(), data;
$( api.column( 1 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 2 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 3 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 4 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 5 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 6 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 7 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 8 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 9 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 10 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 11 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 12 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 13 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 14 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 15 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 16 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 17 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 18 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 19 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 20 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 21 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 22 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 23 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 24 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_quantity_sum).toFixed(2).bold()+'</a>' );
$( api.column( 25 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_value_sum).toFixed(2).bold()+'</a>' );
$( api.column( 26 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_quantity_sum).toFixed(2).bold()+'</a>' );
}
} );
} );

View File

@ -288,19 +288,19 @@ $(document).ready(function () { $("#client_name").select2(); }); </script>
<tr>
<th style="text-align:center;">Supplier Name</th>
<th style="text-align:center;">Material Name</th>
<th style="text-align:center;">Apr &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">May &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Jun &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center;">Jul &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Aug &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center;">Sep &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Oct &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Nov &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Dec &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Jan &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align: center;">Feb &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align: center;">Mar &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align: center;">Total &nbsp;(<i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center;">Apr &nbsp;(&#8377;)</th>
<th style="text-align:center;">May &nbsp;(&#8377;)</th>
<th style="text-align:center;">Jun &nbsp;(&#8377;)</th>
<th style="text-align:center;">Jul &nbsp;(&#8377;)</th>
<th style="text-align:center;">Aug &nbsp;(&#8377;)</th>
<th style="text-align:center;">Sep &nbsp;(&#8377;)</th>
<th style="text-align:center;">Oct &nbsp;(&#8377;)</th>
<th style="text-align:center;">Nov &nbsp;(&#8377;)</th>
<th style="text-align:center;">Dec &nbsp;(&#8377;)</th>
<th style="text-align:center;">Jan &nbsp;(&#8377;)</th>
<th style="text-align: center;">Feb &nbsp;(&#8377;)</th>
<th style="text-align: center;">Mar &nbsp;(&#8377;)</th>
<th style="text-align: center;">Total &nbsp;(&#8377;)</th>
</tr>
</thead>
@ -488,7 +488,50 @@ $(document).ready(function() {
},
'colvis'
]
],
"footerCallback": function ( row, data, start, end, display )
{
var d_qsum= 0;
var d_valuesum= 0;
var m_qsum =0;
var m_valuesum= 0;
var y_quty=0;
var year_value = 0;
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var dte= $('#d_qty'+count).text();
var dvte= $('#d_value'+count).text();
var te= $('#m_quty'+count).text();
var m_value= $('#m_value'+count).text();
var y_qty= $('#y_qty'+count).text();
var y_value = $('#y_value'+count).text();
d_qsum += +dte;
d_valuesum += +dvte;
m_qsum += +te;
m_valuesum += +m_value;
y_quty += +y_qty;
year_value += +y_value;
}
var api = this.api(), data;
var FinalTotal =parseInt(m_qsum);
var DailyFinalToatal=parseInt(d_qsum);
var DailyvalueFinalTotal=parseInt(d_valuesum);
var MonthlyValueFinal = parseInt(m_valuesum);
var yearlyFinalQty = parseInt(y_quty);
var yearlyValueFinal = parseInt(year_value);
$( api.column( 2 ).footer() ).html( DailyFinalToatal.toFixed(2).bold() );
$( api.column( 3 ).footer() ).html( DailyvalueFinalTotal.toFixed(2).bold() );
$( api.column( 4 ).footer() ).html( FinalTotal.toFixed(2).bold() );
$( api.column( 5 ).footer() ).html( MonthlyValueFinal.toFixed(2).bold() );
$( api.column( 6 ).footer() ).html( yearlyFinalQty.toFixed(2).bold() );
$( api.column( 7 ).footer() ).html( yearlyValueFinal.toFixed(2).bold() );
}
} );
} );

View File

@ -46,13 +46,11 @@
<th style="text-align:center" rowspan="2">Supplier Name</th>
<th style="text-align:center" rowspan="2">Material Name</th>
<th style="text-align:center" colspan="2"><?php echo date('M-Y'); ?></th>
</tr>
<tr>
</tr>
<tr>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
</tr>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
</tr>
</thead>
<tbody>
<?php
@ -60,12 +58,12 @@
if(!empty($spurchse)){
$tqt=0;
$tvt=0;
$ab=$this->input->get('ab');
$month=date('F');
$m = $this->input->get('m');
$ab=$this->input->get('ab');
$month=date('F');
$m = $this->input->get('m');
//echo $month;
foreach($spurchse as $rel)
{
{
?>
<tr>

View File

@ -495,6 +495,7 @@ table.dataTable thead > tr > td.sorting {
<?php
$oct= $oct + number_format($result->vOctober,2,'.','');
?>
<a href="<?= base_url() ?>report/rawi_consolidate_month?ab=<?php echo $ab;?>&cat=<?php echo $result->category;?>&m=<?php echo 'October';?>"><?php echo number_format($result->vOctober,2,'.','');?> </a>
</td>
<td style="text-align:right;">

View File

@ -1,12 +1,4 @@
<?php
if(!empty($mms))
{
}
?>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}

View File

@ -1,12 +1,3 @@
<?php
if(!empty($mms))
{
}
?>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -101,7 +92,7 @@ if(!empty($mms))
}
$ab=$yearl;
foreach($cum as $rel)
foreach($cum as $index=>$rel)
{
?>
<tr>
@ -109,27 +100,25 @@ if(!empty($mms))
<a href="<?= base_url() ?>report/link_purchase?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&mid=<?php echo $rel->mid;?>"><?php echo $rel->supplier_name;?></a>
</span></td>
<td><span><?php echo $rel->material_name;?></span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="d_qty<?php echo $index;?>"><?php
$tqt= $tqt + round($rel->tquantity);
echo anchor('report/cum_day/'.$rel->sid . '/' . $rel->mid,round($rel->tquantity));?></span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="d_value<?php echo $index?>"><?php
$tvt= $tvt + number_format($rel->ttotal,2,'.','');
echo anchor('report/cum_day/'.$rel->sid . '/' . $rel->mid,number_format($rel->ttotal,2,'.',''));?></span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="m_quty<?php echo $index?>"><?php
$mqt= $mqt + round($rel->mquantity);
echo anchor('report/cum_month/'.$rel->sid . '/' . $rel->mid,round($rel->mquantity));?></span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="m_value<?php echo $index?>"><?php
$mvt= $mvt + number_format($rel->mtotal,2,'.','');
echo anchor('report/cum_month/'.$rel->sid . '/' . $rel->mid,number_format($rel->mtotal,2,'.',''));?></span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="y_qty<?php echo $index?>"><?php
$yqt= $yqt + round($rel->quantity);
echo anchor('report/cum_year/'.$rel->sid . '/' . $rel->mid,round($rel->quantity));?></span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="y_value<?php echo $index;?>"><?php
$yvt= $yvt + number_format($rel->total,2,'.','');
echo anchor('report/cum_year/'.$rel->sid . '/' . $rel->mid,number_format($rel->total,2,'.',''));?></span></td>
</tr>
<?php
}
@ -246,11 +235,14 @@ if(!empty($mms))
// 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',
@ -263,20 +255,58 @@ $(document).ready(function() {
},
'colvis'
]
} );
} );
],
"footerCallback": function ( row, data, start, end, display )
{
var d_qsum= 0;
var d_valuesum= 0;
var m_qsum =0;
var m_valuesum= 0;
var y_quty=0;
var year_value = 0;
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var dte= $('#d_qty'+count).text();
var dvte= $('#d_value'+count).text();
var te= $('#m_quty'+count).text();
var m_value= $('#m_value'+count).text();
var y_qty= $('#y_qty'+count).text();
var y_value = $('#y_value'+count).text();
d_qsum += +dte;
d_valuesum += +dvte;
m_qsum += +te;
m_valuesum += +m_value;
y_quty += +y_qty;
year_value += +y_value;
}
var api = this.api(), data;
var FinalTotal =parseInt(m_qsum);
var DailyFinalToatal=parseInt(d_qsum);
var DailyvalueFinalTotal=parseInt(d_valuesum);
var MonthlyValueFinal = parseInt(m_valuesum);
var yearlyFinalQty = parseInt(y_quty);
var yearlyValueFinal = parseInt(year_value);
$( api.column( 2 ).footer() ).html( DailyFinalToatal.toFixed(2).bold() );
$( api.column( 3 ).footer() ).html( DailyvalueFinalTotal.toFixed(2).bold() );
$( api.column( 4 ).footer() ).html( FinalTotal.toFixed(2).bold() );
$( api.column( 5 ).footer() ).html( MonthlyValueFinal.toFixed(2).bold() );
$( api.column( 6 ).footer() ).html( yearlyFinalQty.toFixed(2).bold() );
$( api.column( 7 ).footer() ).html( yearlyValueFinal.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){
table
.column(4)
.search(this.value)
.draw();
});
});
</script>
</script>

View File

@ -1,12 +1,4 @@
<?php
if(!empty($mms))
{
}
?>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -74,11 +66,11 @@ if(!empty($mms))
</tr>
<tr>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
</tr>
</thead>
@ -243,6 +235,9 @@ if(!empty($mms))
// 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>>",
@ -260,7 +255,50 @@ $(document).ready(function() {
},
'colvis'
]
],
"footerCallback": function ( row, data, start, end, display )
{
var d_qsum= 0;
var d_valuesum= 0;
var m_qsum =0;
var m_valuesum= 0;
var y_quty=0;
var year_value = 0;
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var dte= $('#d_qty'+count).text();
var dvte= $('#d_value'+count).text();
var te= $('#m_quty'+count).text();
var m_value= $('#m_value'+count).text();
var y_qty= $('#y_qty'+count).text();
var y_value = $('#y_value'+count).text();
d_qsum += +dte;
d_valuesum += +dvte;
m_qsum += +te;
m_valuesum += +m_value;
y_quty += +y_qty;
year_value += +y_value;
}
var api = this.api(), data;
var FinalTotal =parseInt(m_qsum);
var DailyFinalToatal=parseInt(d_qsum);
var DailyvalueFinalTotal=parseInt(d_valuesum);
var MonthlyValueFinal = parseInt(m_valuesum);
var yearlyFinalQty = parseInt(y_quty);
var yearlyValueFinal = parseInt(year_value);
$( api.column( 1 ).footer() ).html( DailyFinalToatal.toFixed(2).bold() );
$( api.column( 2 ).footer() ).html( DailyvalueFinalTotal.toFixed(2).bold() );
$( api.column( 3 ).footer() ).html( FinalTotal.toFixed(2).bold() );
$( api.column( 4 ).footer() ).html( MonthlyValueFinal.toFixed(2).bold() );
$( api.column( 5 ).footer() ).html( yearlyFinalQty.toFixed(2).bold() );
$( api.column( 6 ).footer() ).html( yearlyValueFinal.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){

View File

@ -1,12 +1,3 @@
<?php
if(!empty($mms))
{
}
?>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -73,11 +64,11 @@ if(!empty($mms))
</tr>
<tr>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(<i class="fa fa-rupee "></i>)</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
</tr>
</thead>
@ -109,40 +100,38 @@ if(!empty($mms))
<td><span>
<a href="<?= base_url() ?>report/ilink_purchase?ab=<?php echo $ab;?>&cat=<?php echo $rel->category;?>"><?php echo $rel->category;?></a>
</span></td>
<td style="text-align:right"><span>
<td style="text-align:right"><span id="d_qty<?php echo $index;?>">
<?php
$tqt= $tqt + round($rel->tquantity);
?>
<a href="<?= base_url() ?>report/rawi_cum_day?cat=<?php echo $rel->category;?>&ab=<?php echo $ab;?>"><?php echo round($rel->tquantity);?></a>
</span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="d_value<?php echo $index?>"><?php
$tvt= $tvt + number_format($rel->ttotal,2,'.','');
?>
<a href="<?= base_url() ?>report/rawi_cum_day?cat=<?php echo $rel->category;?>&ab=<?php echo $ab;?>"><?php echo number_format($rel->ttotal,2,'.','');?></a>
</span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="m_quty<?php echo $index?>"><?php
$mqt= $mqt + round($rel->mquantity);
?>
<a href="<?= base_url() ?>report/rawi_cum_month?cat=<?php echo $rel->category;?>&ab=<?php echo $ab;?>"><?php echo round($rel->mquantity);?></a>
</span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="m_value<?php echo $index?>"><?php
$mvt= $mvt + number_format($rel->mtotal,2,'.','');
?>
<a href="<?= base_url() ?>report/rawi_cum_month?cat=<?php echo $rel->category;?>&ab=<?php echo $ab;?>"><?php echo number_format($rel->mtotal,2,'.','');?></a>
</span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="y_qty<?php echo $index?>"><?php
$yqt= $yqt + round($rel->quantity);
?>
<a href="<?= base_url() ?>report/rawi_cum_year?cat=<?php echo $rel->category;?>&ab=<?php echo $ab;?>"><?php echo round($rel->quantity);?></a>
</span></td>
<td style="text-align:right"><span><?php
<td style="text-align:right"><span id="y_value<?php echo $index;?>"><?php
$yvt= $yvt + number_format($rel->total,2,'.','');
?>
<a href="<?= base_url() ?>report/rawi_cum_year?cat=<?php echo $rel->category;?>&ab=<?php echo $ab;?>"><?php echo number_format($rel->total,2,'.','');?></a>
</span></td>
</tr>
<?php
}
@ -251,6 +240,9 @@ if(!empty($mms))
// 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>>",
@ -268,9 +260,52 @@ $(document).ready(function() {
},
'colvis'
]
} );
} );
],
"footerCallback": function ( row, data, start, end, display )
{
var d_qsum= 0;
var d_valuesum= 0;
var m_qsum =0;
var m_valuesum= 0;
var y_quty=0;
var year_value = 0;
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var dte= $('#d_qty'+count).text();
var dvte= $('#d_value'+count).text();
var te= $('#m_quty'+count).text();
var m_value= $('#m_value'+count).text();
var y_qty= $('#y_qty'+count).text();
var y_value = $('#y_value'+count).text();
d_qsum += +dte;
d_valuesum += +dvte;
m_qsum += +te;
m_valuesum += +m_value;
y_quty += +y_qty;
year_value += +y_value;
}
var api = this.api(), data;
var FinalTotal =parseInt(m_qsum);
var DailyFinalToatal=parseInt(d_qsum);
var DailyvalueFinalTotal=parseInt(d_valuesum);
var MonthlyValueFinal = parseInt(m_valuesum);
var yearlyFinalQty = parseInt(y_quty);
var yearlyValueFinal = parseInt(year_value);
$( api.column( 1 ).footer() ).html( DailyFinalToatal.toFixed(2).bold() );
$( api.column( 2 ).footer() ).html( DailyvalueFinalTotal.toFixed(2).bold() );
$( api.column( 3 ).footer() ).html( FinalTotal.toFixed(2).bold() );
$( api.column( 4 ).footer() ).html( MonthlyValueFinal.toFixed(2).bold() );
$( api.column( 5 ).footer() ).html( yearlyFinalQty.toFixed(2).bold() );
$( api.column( 6 ).footer() ).html( yearlyValueFinal.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){
table

View File

@ -72,7 +72,7 @@ if(!empty($mms))
</tr>
<tr>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;( <i class="fa fa-rupee " ></i>)</th>
<th style="text-align:center">Value &nbsp;( &#8377;)</th>
</tr>
@ -198,7 +198,37 @@ $(document).ready(function() {
},
'colvis'
]
],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
// Remove the formatting to get integer data for summation
var intVal = function ( i ) {
return typeof i === 'string' ?
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
typeof i === 'number' ?
parseFloat(i) : 0;
};
TotalQTY = api
.column( 3, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
TotalVALUE = api
.column( 4, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){

View File

@ -192,6 +192,9 @@ if(!empty($mms))
// 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>>",
@ -209,7 +212,37 @@ $(document).ready(function() {
},
'colvis'
]
],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
// Remove the formatting to get integer data for summation
var intVal = function ( i ) {
return typeof i === 'string' ?
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
typeof i === 'number' ?
parseFloat(i) : 0;
};
TotalQTY = api
.column( 3, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
TotalVALUE = api
.column( 4, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){

View File

@ -1,8 +1,4 @@
<?php
$tiapr=0.00;$timay=0.00;$tijun=0.00;$tijul=0.00;$tiaug=0.00;$tisep=0.00;$tioct=0.00;$tinov=0.00;$tidec=0.00;
$teapr=0.00;$temay=0.00;$tejun=0.00;$tejul=0.00;$teaug=0.00;$tesep=0.00;$teoct=0.00;$tenov=0.00;$tedec=0.00;
$tinjan=0.00;$tinfeb=0.00;$tinmar=0.00;$rowwiseincome = 0.00;
$texjan=0.00;$texfeb=0.00;$texmar=0.00;$rowwiseexpense = 0.00;
if (date('m') >= 4) {
$yearl = date('Y').'-'.(date('Y')+1);
} else {
@ -174,71 +170,49 @@ if (date('m') >= 4) {
<?php
if(!empty($datas)){
foreach($datas as $d)
foreach($datas as $index=> $d)
{
?>
<tr>
<td><?php echo $d->name; ?></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tiapr= $tiapr + number_format($d->AprilIncome,2,'.',''); echo number_format($d->AprilIncome,2,'.',''); ?></span></a></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teapr= $teapr + number_format($d->AprilExpense,2,'.',''); echo number_format($d->AprilExpense,2,'.',''); ?></span></a></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $timay= $timay + number_format($d->MayIncome,2,'.',''); echo number_format($d->MayIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $temay= $temay + number_format($d->MayExpense,2,'.',''); echo number_format($d->MayExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tijun= $tijun + number_format($d->JuneIncome,2,'.',''); echo number_format($d->JuneIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tejun= $tejun + number_format($d->JuneExpense,2,'.',''); echo number_format($d->JuneExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tijul= $tijul + number_format($d->JulyIncome,2,'.',''); echo number_format($d->JulyIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tejul= $tejul + number_format($d->JulyExpense,2,'.',''); echo number_format($d->JulyExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tiaug= $tiaug + number_format($d->AugustIncome,2,'.',''); echo number_format($d->AugustIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teaug= $teaug + number_format($d->AugustExpense,2,'.',''); echo number_format($d->AugustExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tisep= $tisep + number_format($d->SepIncome,2,'.',''); echo number_format($d->SepIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tesep= $tesep + number_format($d->SepExpense,2,'.',''); echo number_format($d->SepExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tioct= $tioct + number_format($d->OctIncome,2,'.',''); echo number_format($d->OctIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teoct= $teoct + number_format($d->OctExpense,2,'.',''); echo number_format($d->OctExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinov= $tinov + number_format($d->NovIncome,2,'.',''); echo number_format($d->NovIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tenov= $tenov + number_format($d->NovExpense,2,'.',''); echo number_format($d->NovExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tidec= $tidec + number_format($d->DecIncome,2,'.',''); echo number_format($d->DecIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tedec= $tedec + number_format($d->DecExpense,2,'.',''); echo number_format($d->DecExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinjan= $tinjan + number_format($d->JanIncome,2,'.',''); echo number_format($d->JanIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texjan= $texjan + number_format($d->JanExpense,2,'.',''); echo number_format($d->JanExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinfeb= $tinfeb + number_format($d->FebIncome,2,'.',''); echo number_format($d->FebIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texfeb= $texfeb + number_format($d->FebExpense,2,'.',''); echo number_format($d->FebExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinmar= $tinmar + number_format($d->MarIncome,2,'.',''); echo number_format($d->MarIncome,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texmar= $texmar + number_format($d->MarExpense,2,'.',''); echo number_format($d->MarExpense,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $rowwiseincome = $rowwiseincome + number_format($d->receiptoverall,2,'.',''); echo number_format($d->receiptoverall,2,'.',''); ?></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $rowwiseexpense = $rowwiseexpense + number_format($d->paymentoverall,2,'.',''); echo number_format($d->paymentoverall,2,'.',''); ?></span></td>
<td id ="aprin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AprilIncome,2,'.',''); ?></span></a></td>
<td id ="aprex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AprilExpense,2,'.',''); ?></span></a></td>
<td id ="mayin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MayIncome,2,'.',''); ?></span></td>
<td id ="mayex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MayExpense,2,'.',''); ?></span></td>
<td id ="junin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JuneIncome,2,'.',''); ?></span></td>
<td id ="junex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JuneExpense,2,'.',''); ?></span></td>
<td id ="jlyin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JulyIncome,2,'.',''); ?></span></td>
<td id ="jlyex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JulyExpense,2,'.',''); ?></span></td>
<td id ="augin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AugustIncome,2,'.',''); ?></span></td>
<td id ="augex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AugustExpense,2,'.',''); ?></span></td>
<td id ="sepin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->SepIncome,2,'.',''); ?></span></td>
<td id ="sepex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->SepExpense,2,'.',''); ?></span></td>
<td id ="octin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->OctIncome,2,'.',''); ?></span></td>
<td id ="octex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->OctExpense,2,'.',''); ?></span></td>
<td id ="novin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->NovIncome,2,'.',''); ?></span></td>
<td id ="novex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->NovExpense,2,'.',''); ?></span></td>
<td id ="decin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->DecIncome,2,'.',''); ?></span></td>
<td id ="decex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->DecExpense,2,'.',''); ?></span></td>
<td id ="janin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JanIncome,2,'.',''); ?></span></td>
<td id ="janex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JanExpense,2,'.',''); ?></span></td>
<td id ="febin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->FebIncome,2,'.',''); ?></span></td>
<td id ="febex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->FebExpense,2,'.',''); ?></span></td>
<td id ="marin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MarIncome,2,'.',''); ?></span></td>
<td id ="marex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MarExpense,2,'.',''); ?></span></td>
<td id ="totalincome<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->receiptoverall,2,'.',''); ?></span></td>
<td id ="totalexpense<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->paymentoverall,2,'.',''); ?></span></td>
</tr>
<?php } ?>
</tbody>
<tfoot width="100%">
<tr>
<td><b><?php echo "TOTAL" ?></b></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tiapr,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teapr,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($timay,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($temay,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tijun,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tejun,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tijul,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tejul,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tiaug,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teaug,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tisep,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tesep,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tioct,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teoct,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinov,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tenov,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tidec,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tedec,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinjan,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texjan,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinfeb,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texfeb,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinmar,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texmar,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($rowwiseincome,2,'.',''); ?></b></span></td>
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($rowwiseexpense,2,'.',''); ?></b></span></td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
<td></td><td></td>
</tr>
</tfoot>
<?php } ?>
@ -288,10 +262,193 @@ $(document).ready(function() {
},
'colvis'
]
} );
} );
],
"footerCallback": function ( row, data, start, end, display )
{
var april_income_sum =0;
var april_expense_sum= 0;
var may_income_sum =0;
var may_expense_sum= 0;
var june_income_sum =0;
var june_expense_sum= 0;
var july_income_sum =0;
var july_expense_sum= 0;
var august_income_sum =0;
var august_expense_sum= 0;
var september_income_sum =0;
var september_expense_sum= 0;
var october_income_sum =0;
var october_expense_sum= 0;
var november_income_sum =0;
var november_expense_sum= 0;
var december_income_sum =0;
var december_expense_sum= 0;
var january_income_sum =0;
var january_expense_sum= 0;
var february_income_sum =0;
var february_expense_sum= 0;
var march_income_sum =0;
var march_expense_sum= 0;
var finalTotal_income_sum =0;
var finalTotal_expense_sum= 0;
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var april_income_value = $('#aprin'+count).text();
var april_expense_value= $('#aprex'+count).text();
var may_income_value = $('#mayin'+count).text();
var may_expense_value= $('#mayex'+count).text();
var june_income_value = $('#junin'+count).text();
var june_expense_value= $('#junex'+count).text();
var july_income_value = $('#jlyin'+count).text();
var july_expense_value= $('#jlyex'+count).text();
var august_income_value = $('#augin'+count).text();
var august_expense_value= $('#augex'+count).text();
var september_income_value = $('#sepin'+count).text();
var september_expense_value= $('#sepex'+count).text();
var october_income_value = $('#octin'+count).text();
var october_expense_value= $('#octex'+count).text();
var november_income_value = $('#novin'+count).text();
var november_expense_value= $('#novex'+count).text();
var december_income_value = $('#decin'+count).text();
var december_expense_value= $('#decex'+count).text();
var january_income_value = $('#janin'+count).text();
var january_expense_value= $('#janex'+count).text();
var february_income_value = $('#febin'+count).text();
var february_expense_value= $('#febex'+count).text();
var march_income_value = $('#marin'+count).text();
var march_expense_value= $('#marex'+count).text();
var finalTotal_income_value = $('#totalincome'+count).text();
var finalTotal_expense_value= $('#totalexpense'+count).text();
april_income_sum += +april_income_value;
april_expense_sum += +april_expense_value;
may_income_sum += +may_income_value;
may_expense_sum += +may_expense_value;
june_income_sum += +june_income_value;
june_expense_sum += +june_expense_value;
july_income_sum += +july_income_value;
july_expense_sum += +july_expense_value;
august_income_sum += +august_income_value;
august_expense_sum += +august_expense_value;
september_income_sum += +september_income_value;
september_expense_sum += +september_expense_value;
october_income_sum += +october_income_value;
october_expense_sum += +october_expense_value;
november_income_sum += +november_income_value;
november_expense_sum += +november_expense_value;
december_income_sum += +december_income_value;
december_expense_sum += +december_expense_value;
january_income_sum += +january_income_value;
january_expense_sum += +january_expense_value;
february_income_sum += +february_income_value;
february_expense_sum += +february_expense_value;
march_income_sum += +march_income_value;
march_expense_sum += +march_expense_value;
finalTotal_income_sum += +finalTotal_income_value;
finalTotal_expense_sum += +finalTotal_expense_value;
}
var api = this.api(), data;
$( api.column( 1 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 2 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 3 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 4 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 5 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 6 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 7 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 8 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 9 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 10 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 11 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 12 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 13 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 14 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 15 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 16 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 17 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 18 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 19 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 20 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 21 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 22 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 23 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 24 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 25 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 26 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_expense_sum).toFixed(2).bold()+'</a>' );
}
} );
} );
</script>

View File

@ -148,6 +148,10 @@
color:#5d0411 !important;
}
.li .active { background:blue }
.sidebar {
height: 600px;
overflow: auto;
}
</style>
<!-- <title>Resico (India) Pvt Ltd</title> -->
@ -171,15 +175,14 @@
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- New login-->
<div class="navbar-custom-menu collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- New login-->
<div class="navbar-custom-menu collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?php if(in_array($full_path,$files)) {
if($this->profilepic != '') {
@ -431,6 +434,131 @@
<?php if ($check == 1){break;}}?>
<?php }?>
<!-- Master Menus Ends -->
<!--STOCK -->
<?php if(empty($DepAccesslist)){?>
<?php if($DEPCode == PRODUCTION){?>
<li class="treeview">
<a href="#">
<i class="fa fa-check-square-o"></i>
<span>Stock Details</span>
<span class="pull-right-container">
<i class="fa fa-angle-down pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<!-- <li class="treeview">
<a href="<?php echo base_url(); ?>Stock">
<i class="fa fa-dashboard"></i> <span>Stock</span>
</a>
</li> -->
<li>
<a href="<?php echo base_url(); ?>FinalProduct">
<i class="fa fa-dashboard"></i> <span>Final Product</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>FinalProductHistory">
<i class="fa fa-dashboard"></i> <span>Finished Product History</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>FinalProduct">
<i class="fa fa-dashboard"></i> <span>Final Product Listing</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>MaterailAdjustment">
<i class="fa fa-dashboard"></i> <span>Material Adjustment</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>MaterailAdjustmentlist">
<i class="fa fa-dashboard"></i> <span>Material Adjustment List</span>
</a>
</li>
</ul></li>
<?php } }
else{
$check25=0;
foreach($DepAccesslist as $dep){
$assd=$dep->AssDep;
if($assd == PRODUCTION || $DEPCode == PRODUCTION){
$check25 =1
?>
<li class="treeview">
<a href="#">
<i class="fa fa-check-square-o"></i>
<span>Store Details</span>
<span class="pull-right-container">
<i class="fa fa-angle-down pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<!-- <li class="treeview">
<a href="<?php echo base_url(); ?>Stock">
<i class="fa fa-dashboard"></i> <span>Stock </span>
</a>
</li> -->
<li>
<a href="<?php echo base_url(); ?>FinalProduct">
<i class="fa fa-dashboard"></i> <span>Final Product</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>FinalProductHistory">
<i class="fa fa-dashboard"></i> <span>Finished Product History</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>FinalProductlisting">
<i class="fa fa-dashboard"></i> <span>Final Product Listing</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>MaterailAdjustment">
<i class="fa fa-dashboard"></i> <span>Material Adjustment</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>MaterailAdjustmentlist">
<i class="fa fa-dashboard"></i> <span>Material Adjustment List</span>
</a>
</li>
<li>
<a href="<?php echo base_url(); ?>MaterialHistory">
<i class="fa fa-dashboard"></i> <span>Material History</span>
</a>
</li>
</ul></li>
<?php } if($check25 == 1){break;} } } ?>
<!-- Requisition Starts Ends -->
<?php if($DEPCode != HR){?>
<?php if($DEPCode != SECURITY){?>