cashbook-report and bank-report issues fixes

This commit is contained in:
venbatechnologies@gmail.com 2018-05-19 17:08:55 +05:30
parent 1912eddc75
commit 952a9c1831
47 changed files with 539 additions and 675 deletions

View File

@ -728,6 +728,7 @@ class batchcard extends BaseController
$data['emplist'] = $this->batchcard_model->getEmplistforReport();
$data['MachineList'] = $this->batchcard_model->getmachine_codename();
$data['supplist'] = $this->batchcard_model->getSupplierlist();
$data['MaintEdit'] = $this->batchcard_model->getmaint_dtl_MntID($MntID);
$data['MaintFileEdit'] = $this->batchcard_model->getfiledetails($MntID);
//print_r($data);
@ -740,8 +741,14 @@ class batchcard extends BaseController
$type = $this->input->post('radiobtn');
//$maintenance_date = $this->input->post('maintenance_date');
$machinecode = $this->input->post('machine');
if($type == '0'){ $maintenance_subtype = $this->input->post('maintenance_subtype');}
else{ $maintenance_subtype = NULL; }
if($type == '0'){
$maintenance_subtype = $this->input->post('maintenance_subtype');
if($maintenance_subtype == '1'){
$supplier = $this->input->post('supplier');
}
else{ $supplier = NULL; }
}
else{ $maintenance_subtype = NULL;$supplier = NULL; }
//$maintenance_time= $this->input->post('maintenance_time');
$location = $this->input->post('location');
$maintenance_description = $this->input->post('maintenance_description');
@ -759,7 +766,7 @@ class batchcard extends BaseController
$approvedby = $this->input->post('approvedby');
$workdoneby = $this->input->post('workdoneby');
$addmntbr = array('Type'=>$type,'Machine_Code'=>$machinecode,'Maint_Subtype'=>$maintenance_subtype, 'Maint_Location'=>$location, 'Maint_Description'=>$maintenance_description, 'Maint_Reason'=>$maintenance_reason, 'Maint_Time_from'=>$maintenance_time_from, 'Maint_Time_to'=>$maintenance_time_to, 'Maint_Total_hrs'=>$maintenance_total_hrs, 'Cost_Material'=>$cost_material, 'Cost_Labour'=>$cost_labour,'WorkDone_By'=>$workdoneby,'Approved_By'=>$approvedby,'CreatedBy'=>$createdby);
$addmntbr = array('Type'=>$type,'Machine_Code'=>$machinecode,'Maint_Subtype'=>$maintenance_subtype, 'Maint_Supplier'=>$supplier,'Maint_Location'=>$location, 'Maint_Description'=>$maintenance_description, 'Maint_Reason'=>$maintenance_reason, 'Maint_Time_from'=>$maintenance_time_from, 'Maint_Time_to'=>$maintenance_time_to, 'Maint_Total_hrs'=>$maintenance_total_hrs, 'Cost_Material'=>$cost_material, 'Cost_Labour'=>$cost_labour,'WorkDone_By'=>$workdoneby,'Approved_By'=>$approvedby,'CreatedBy'=>$createdby);
//'Maint_Date'=>$maintenance_date,'Maint_Time'=>$maintenance_time,
//print_r($addmntbr);
//die();
@ -828,8 +835,14 @@ class batchcard extends BaseController
$type = $this->input->post('radiobtn');
$mntid = $this->input->post('mntid');
$machinecode = $this->input->post('machine');
if($type == '0'){ $maintenance_subtype = $this->input->post('maintenance_subtype'); }
else{ $maintenance_subtype = NULL; }
if($type == '0'){
$maintenance_subtype = $this->input->post('maintenance_subtype');
if($maintenance_subtype == '1'){
$supplier = $this->input->post('supplier');
}
else{ $supplier = NULL; }
}
else{ $maintenance_subtype = NULL; $supplier = NULL; }
// $maintenance_date = $this->input->post('maintenance_date');
// $maintenance_time= $this->input->post('maintenance_time');
$location = $this->input->post('location');
@ -850,7 +863,7 @@ class batchcard extends BaseController
// $date = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
// $updatedon = $date->format('d-m-Y H:i:s');
$editmntbr = array('Type'=>$type,'Machine_Code'=>$machinecode,'Maint_Subtype'=>$maintenance_subtype, 'Maint_Location'=>$location, 'Maint_Description'=>$maintenance_description, 'Maint_Reason'=>$maintenance_reason, 'Maint_Time_from'=>$maintenance_time_from, 'Maint_Time_to'=>$maintenance_time_to, 'Maint_Total_hrs'=>$maintenance_total_hrs, 'Cost_Material'=>$cost_material, 'Cost_Labour'=>$cost_labour,'WorkDone_By'=>$workdoneby,'Approved_By'=>$approvedby,'UpdatedBy'=>$updatedby);
$editmntbr = array('Type'=>$type,'Machine_Code'=>$machinecode,'Maint_Subtype'=>$maintenance_subtype, 'Maint_Subtype'=>$maintenance_subtype,'Maint_Location'=>$location, 'Maint_Description'=>$maintenance_description, 'Maint_Reason'=>$maintenance_reason, 'Maint_Time_from'=>$maintenance_time_from, 'Maint_Time_to'=>$maintenance_time_to, 'Maint_Total_hrs'=>$maintenance_total_hrs, 'Cost_Material'=>$cost_material, 'Cost_Labour'=>$cost_labour,'WorkDone_By'=>$workdoneby,'Approved_By'=>$approvedby,'UpdatedBy'=>$updatedby);
//'Maint_Date'=>$maintenance_date,'Maint_Time'=>$maintenance_time,
//print_r($editmntbr);
//die();

View File

@ -157,7 +157,8 @@ class cashbook extends BaseController
//$data['dropdownvalues'] = $this->cashbook_model->getAccounTypes();
//print_r($data['dropdownvalues']);die();
$data['bankdetails']=$this->employeedetails_model->getBankDetails();
$this->global['pageTitle'] = 'Siddharth : Cash Book: Add New Income Expense ';
//$this->global['pageTitle'] = 'Siddharth : Cash Book: Add New Income Expense ';
$this->global['pageTitle'] = 'Siddharth : Bank Report - File Upload';
$this->loadViews("bankingfile", $this->global, $data , NULL);
}
function bankfileupload()
@ -766,7 +767,7 @@ class cashbook extends BaseController
public function bankdata()
{
$this->global['pageTitle'] = 'Siddharth : Bank Statement';
if ($this->input->post('btn_submit'))
{
$this->global['pageTitle'] = 'Siddharth : bankstatement';
@ -788,6 +789,7 @@ class cashbook extends BaseController
}
public function bankdebitdata()
{
$this->global['pageTitle'] = 'Siddharth : Bank Debit Report';
if ($this->input->post('btn_submit'))
{
$Supplierid = $this->input->post('SupplierName');
@ -805,6 +807,7 @@ class cashbook extends BaseController
}
public function bankinvoice()
{
$this->global['pageTitle'] = 'Siddharth : Bank Invoice Report';
if ($this->input->post('btn_submit'))
{
$Customer = $this->input->post('Customer');
@ -823,7 +826,8 @@ class cashbook extends BaseController
{
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
// $this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Settlements';
$SupplierName = $this->input->post('SupplierName');
$fdate = $this->input->post('from_date');
$tdate = $this->input->post('to_date');
@ -840,7 +844,8 @@ class cashbook extends BaseController
{
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
//$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Credited Settlements';
$SupplierName = $this->input->post('SupplierName');
$fdate = $this->input->post('from_date');
$tdate = $this->input->post('to_date');
@ -857,7 +862,8 @@ class cashbook extends BaseController
{
$this->global['pageTitle'] = 'Siddharth : mappingdebit';
// $this->global['pageTitle'] = 'Siddharth : mappingdebit';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Details';
$SupplierName = $this->input->post('SupplierName');
$fdate = $this->input->post('from_date');
$tdate = $this->input->post('to_date');
@ -870,7 +876,8 @@ class cashbook extends BaseController
{
$this->global['pageTitle'] = 'Siddharth : mappingcredit';
// $this->global['pageTitle'] = 'Siddharth : mappingcredit';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Credited Details ';
$SupplierName = $this->input->post('SupplierName');
$fdate = $this->input->post('from_date');
$tdate = $this->input->post('to_date');
@ -885,7 +892,8 @@ class cashbook extends BaseController
// die();
$check = $this->input->post('check');
$rw = $this->input->post('rw');
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
//$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Store Debited Details';
$date = $this->input->post('podate');
$date = date_create($date);//,'Y-m-d');
$date = date_format($date,'Y-m-d');
@ -959,12 +967,12 @@ class cashbook extends BaseController
$podata1 = array('Podate'=>$date,'PONO'=>$pono,'Suppliername'=>$sname,'Totalpoamount'=>$tot,'Amountpaid'=>$ip,'Balancetopay'=>$balancetopay,'mid'=>$bankid);
print_r($podata1);
//print_r($podata1);
//die();
$podata = array('Podate'=>$date,'PONO'=>$pono,'Suppliername'=>$sname,'Totalpoamount'=>$tot,'Amountpaid'=>$amtpaid,'Balancetopay'=>$balancetopay,'mid'=>$bankid);
$result3 = $this->cashbook_model->poupdate($pono);
$result3 = $this->cashbook_model->getpono($pono);
$resultn = $this->cashbook_model->mappingpo($podata1);
if(count($result3)<=0)
@ -976,7 +984,7 @@ class cashbook extends BaseController
else
{
//echo "update";
$result3 = $this->cashbook_model->poupdate1($podata,$pono);
$result3 = $this->cashbook_model->poupdate($podata,$pono);
}
if($rw == $rowcount)
@ -999,7 +1007,8 @@ class cashbook extends BaseController
}
public function invoiceamount1()
{
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
//$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Store Credited Details';
$check = $this->input->post('check');
$rw = $this->input->post('rw');
@ -1119,7 +1128,8 @@ class cashbook extends BaseController
$this->global['pageTitle'] = 'Siddharth : amountpaid';
//$this->global['pageTitle'] = 'Siddharth : amountpaid';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Amount Payment Details';
if ($this->input->post('btn_submit'))
{
$SupplierName = $this->input->post('SupplierName');
@ -1131,7 +1141,7 @@ class cashbook extends BaseController
$data['amountpaid'] = $this->cashbook_model->paided();
$data['supplier'] = $this->cashbook_model->getsupplier();
$this->loadViews("bankamountpaid", $this->global,$data, NULL);
}
public function amountreceived()
@ -1139,7 +1149,8 @@ class cashbook extends BaseController
// $this->load->model('cashbook_model');
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
//$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
$this->global['pageTitle'] = 'Siddharth : Bank Report - Received Amount Details';
if ($this->input->post('btn_submit'))
{
$Customer = $this->input->post('Customer');

View File

@ -609,15 +609,15 @@ class report extends BaseController
$data['cust']=$this->dahsboard_Model->customer_name();
$data['finyear']=$this->dahsboard_Model->report_finyear();
if($this->DEPCode == MANAGEMENT)
{
// if($this->DEPCode == MANAGEMENT)
// {
$this->loadviews("Report_attach_inward",$this->global,$data, NULL);
}
// }
else
{
$this->loadViews("access", $this->global, $data, NULL);
}
// else
// {
// $this->loadViews("access", $this->global, $data, NULL);
// }

View File

@ -17,6 +17,15 @@ class batchcard_model extends CI_Model
}
function getSupplierlist(){
$this->db->select('SupplierName,SupplierID');
$this->db->from('T_SupplierDetailsN');
$supp = $this->db->get();
return $supp->result();
}
function saveHourlyBatchInfo($datatostore)
{
$this->db->insert('T_hourly_batch_info',$datatostore);

View File

@ -508,7 +508,7 @@ function debitpolist($bankid)
}
public function poupdate($pono)
public function getpono($pono)
{
$this->db->select('PONO');
$this->db->from('T_Bankporeport');
@ -612,7 +612,7 @@ function debitpolist($bankid)
}
public function poupdate1($podata,$pono)
public function poupdate($podata,$pono)
{
$this->db->where('PONO', $pono);

View File

@ -2613,51 +2613,41 @@ function daybeforetotal($yesterday){
$aa=$yr2;
}
$sql = "SELECT sub.name as name,sub.tincyear,
sub.expensetotal as Finyeartotalexpense,
sub.incometotal as Finyeartotalincome,
IF(month = 'Jan', sub.expensetotal, 0) AS 'Janexp',
IF(month = 'Feb', sub.expensetotal, 0) AS 'Febexp',
IF(month = 'Mar', sub.expensetotal, 0) AS 'Marexp',
IF(month = 'Apr', sub.expensetotal, 0) AS 'Aprexp',
IF(month = 'May', sub.expensetotal, 0) AS 'Mayexp',
IF(month = 'Jun', sub.expensetotal, 0) AS 'Junexp',
IF(month = 'Jul', sub.expensetotal, 0) AS 'Julexp',
IF(month = 'Aug', sub.expensetotal, 0) AS 'Augexp',
IF(month = 'Sep', sub.expensetotal, 0) AS 'Sepexp',
IF(month = 'Oct', sub.expensetotal, 0) AS 'Octexp',
IF(month = 'Nov', sub.expensetotal, 0) AS 'Novexp',
IF(month = 'Dec', sub.expensetotal, 0) AS 'Decexp',
IF(month = 'Jan', sub.incometotal, 0) AS 'Janinc',
IF(month = 'Feb', sub.incometotal, 0) AS 'Febinc',
IF(month = 'Mar', sub.incometotal, 0) AS 'Marinc',
IF(month = 'Apr', sub.incometotal, 0) AS 'Aprinc',
IF(month = 'May', sub.incometotal, 0) AS 'Mayinc',
IF(month = 'Jun', sub.incometotal, 0) AS 'Juninc',
IF(month = 'Jul', sub.incometotal, 0) AS 'Julinc',
IF(month = 'Aug', sub.incometotal, 0) AS 'Auginc',
IF(month = 'Sep', sub.incometotal, 0) AS 'Sepinc',
IF(month = 'Oct', sub.incometotal, 0) AS 'Octinc',
IF(month = 'Nov', sub.incometotal, 0) AS 'Novinc',
IF(month = 'Dec', sub.incometotal, 0) AS 'Decinc'
FROM (
select DATE_FORMAT(tinc1.date, '%b') AS month,year(tinc1.date) as tincyear,ac1.name,
ifnull(case
when tinc1.type = 'PAYMENT'
then sum(tinc1.total)
end,'0') as expensetotal,
ifnull(case
when tinc1.type = 'RECEIPT'
then sum(tinc1.total)
end, '0') as incometotal
FROM t_income_expense tinc1
join t_accountcode ac1 on ac1.code = tinc1.account_code
WHERE (tinc1.date >='".$fa."-04-01' and tinc1.date <= '".$aa."-03-31')";
if ($cname!= ''){
$sql = "select tinc.account_code,ac.name,
SUM(IF(month(tinc.date) = 4, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS AprilExpense,
SUM(IF(month(tinc.date) = 4, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS AprilIncome,
SUM(IF(month(tinc.date) = 5, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS MayExpense,
SUM(IF(month(tinc.date) = 5, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS MayIncome,
SUM(IF(month(tinc.date) = 6, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS JuneExpense,
SUM(IF(month(tinc.date) = 6, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS JuneIncome,
SUM(IF(month(tinc.date) = 7, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS JulyExpense,
SUM(IF(month(tinc.date) = 7, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS JulyIncome,
SUM(IF(month(tinc.date) = 8, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS AugustExpense,
SUM(IF(month(tinc.date) = 8, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS AugustIncome,
SUM(IF(month(tinc.date) = 9, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS SepExpense,
SUM(IF(month(tinc.date) = 9, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS SepIncome,
SUM(IF(month(tinc.date) = 10, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS OctExpense,
SUM(IF(month(tinc.date) = 10, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS OctIncome,
SUM(IF(month(tinc.date) = 11, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS NovExpense,
SUM(IF(month(tinc.date) = 11, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS NovIncome,
SUM(IF(month(tinc.date) = 12, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS DecExpense,
SUM(IF(month(tinc.date) = 12, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS DecIncome,
SUM(IF(month(tinc.date) = 1, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS JanExpense,
SUM(IF(month(tinc.date) = 1, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS JanIncome,
SUM(IF(month(tinc.date) = 2, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS FebExpense,
SUM(IF(month(tinc.date) = 2, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS FebIncome,
SUM(IF(month(tinc.date) = 3, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS MarExpense,
SUM(IF(month(tinc.date) = 3, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS MarIncome,
SUM(IF(tinc.type = 'RECEIPT', tinc.total, 0)) AS receiptoverall,
SUM(IF(tinc.type = 'PAYMENT', tinc.total, 0)) AS paymentoverall,
SUM(tinc.total) as overalltotal
from t_income_expense tinc
join t_accountcode ac on ac.code = tinc.account_code
where (tinc.date >='".$fa."-04-01' and tinc.date <= '".$aa."-03-31')";
if ($cname!= ''){
$sql.="and ac1.name = '".$cname."'";
}
$sql.= "GROUP BY ac1.name ) as sub
GROUP BY name ";
}
$sql.= "tinc.account_code";
$query = $this->db->query($sql);
return $query->result();

View File

@ -59,6 +59,13 @@
<input type="radio" id="mainttype2" name="maintenance_subtype" value="1" >External
</div>
<div class="col-md-3" id ="suppdiv" style="display: none;">
<label>Select Supplier:</label></br>
<select class="form-control select2" id="supplier" name="supplier" style="width:230px !important;">
<option value=" ">Select Supplier</option>
</select>
</div>
<!--<div class="col-md-3">
<label>Date</label>
<input type="text" id="maintenance_date" name="maintenance_date" class="form-control" style="text-align:right;" onkeypress="return false;"/>
@ -166,10 +173,12 @@ $(function() {
$('#maintenance_date_time').val('');
var mach_arr = [];
var emp_arr = [];
var supp_arr = [];
$("#machine").select2();
$("#approvedby").select2();
$("#workdoneby").select2();
$("#supplier").select2();
$('#maintenance_date').datepicker({
//minDate : 'year+16',
@ -245,6 +254,12 @@ $(function() {
$("#machine").append( $('<option></option>').val(ma.Machine_Code).html(ma.Machine_Code+'-'+ma.Machine_Name));
});
supp_arr = <?php echo json_encode($supplist)?>;
$.each(supp_arr,function(s,supp){
$("#supplier").append( $('<option></option>').val(supp.SupplierID).html(supp.SupplierID+' - '+supp.SupplierName));
});
emp_arr = <?php echo json_encode($emplist)?>;
// $.each(emp_arr,function(e,ea){
@ -256,19 +271,36 @@ $(function() {
$("#approvedby , #workdoneby").append( $('<option></option>').val(ea.EmpID).html(ea.FirstName+' '+ea.LastName));
});
var value = $( 'input[name=radiobtn]:checked' ).val();
var value = $( 'input[name=radiobtn]:checked' ).val();
if(value == '0'){
$("#subtype").show();}
} );
$("#subtype").show();
var subtype_value = $( 'input[name=maintenance_subtype]:checked' ).val();
if(subtype_value == '1'){ $("#suppdiv").show(); } else{ $("#suppdiv").hide();}
}
} );
$('input[name=radiobtn]').change(function(){
var value = $( 'input[name=radiobtn]:checked' ).val();
var value = $( 'input[name=radiobtn]:checked' ).val();
if(value == '0'){
$("#subtype").show();
var subtype_value = $( 'input[name=maintenance_subtype]:checked' ).val();
if(subtype_value == '1'){ $("#suppdiv").show(); } else{ $("#suppdiv").hide();}
}
else{
//alert('br'+value);
$("#subtype").hide();
$("#mainttype2").attr('checked','false');
$("#mainttype1").attr('checked','true');
$("#suppdiv").hide();
}
});
$('input[name=maintenance_subtype]').change(function(){
var subtype_value = $( 'input[name=maintenance_subtype]:checked' ).val();
if(subtype_value == '1'){
$("#suppdiv").show();
}
else{
$("#suppdiv").hide();
}
});

View File

@ -4,6 +4,7 @@ $Mnt_Id = '';
$Type = '';
$Machinecode = '';
$Mnt_Subtype = '';
$Mnt_Supplier = '';
$Location = '';
$Mnt_Date ='';
$Mnt_Time = '';
@ -25,7 +26,8 @@ if(!empty($MaintEdit))
{
$Mnt_Id = $Me->Maint_ID;
$Machinecode = $Me->Machine_Code;
$Mnt_Subtype = $Me->Maint_Subtype;
$Mnt_Subtype = $Me->Maint_Subtype;
$Mnt_Supplier = $Me->Maint_Supplier;
$Mnt_Date = $Me->Maint_Date;
$Mnt_Time = $Me->Maint_Time;
$Type = $Me->Type;
@ -111,6 +113,13 @@ if(!empty($MaintEdit))
<input type="radio" id="mainttype2" name="maintenance_subtype" value="1" >External
</div>
<div class="col-md-3" id ="suppdiv" style="display: none;">
<label>Select Supplier:</label></br>
<select class="form-control select2" id="supplier" name="supplier" style="width:230px !important;">
<option value=" ">Select Supplier</option>
</select>
</div>
<!-- <div class="col-md-3">
<label>Date</label>
<input type="text" id="maintenance_date" name="maintenance_date" class="form-control" style="text-align:right;" value="<?php echo $Mnt_Date ?>"/>
@ -227,13 +236,16 @@ var counter = 0;
var counterConstant = 0;
$(function() {
$("#suppdiv").hide();
var mach_arr = [];
var file_arr = [];
var emp_arr = [];
var supp_arr = [];
$("#machine").select2();
$("#approvedby").select2();
$("#workdoneby").select2();
$("#supplier").select2();
$('#maintenance_date').datepicker({
//minDate : 'year+16',
@ -243,6 +255,7 @@ $(function() {
mach_arr = <?php echo json_encode($MachineList)?>;
file_arr = <?php echo json_encode($MaintFileEdit)?>;
emp_arr = <?php echo json_encode($emplist)?>;
supp_arr = <?php echo json_encode($supplist)?>;
$.each(emp_arr,function(e,ea){
$("#approvedby , #workdoneby").append( $('<option></option>').val(ea.EmpID).html(ea.FirstName+' '+ea.LastName));
@ -251,10 +264,15 @@ $(function() {
$.each(mach_arr,function(m,ma){
$("#machine").append( $('<option></option>').val(ma.Machine_Code).html(ma.Machine_Code+'-'+ma.Machine_Name));
});
$.each(supp_arr,function(s,supp){
$("#supplier").append( $('<option></option>').val(supp.SupplierID).html(supp.SupplierID+' - '+supp.SupplierName));
});
$('#machine option[value="<?php echo $Machinecode ?>"]').prop('selected', true);
$('#approvedby option[value="<?php echo $Approved_by ?>"]').prop('selected', true);
$('#workdoneby option[value="<?php echo $Workdone_by ?>"]').prop('selected', true);
$('#supplier option[value="<?php echo $Mnt_Supplier; ?>"]').prop('selected', true);
var mybaseurl='<?php echo base_url('uploads/images');?>';
@ -336,38 +354,57 @@ $(function() {
var type = "<?php echo $Type;?>";
var subtype = "<?php echo $Mnt_Subtype;?>";
if(type == "0")
{
$('#radiobtn1').attr('checked','true');
$("#subtype").show();
}
else
{
$('#radiobtn2').attr('checked','true');
$("#subtype").hide();
}
if(type == "0" && subtype == '')
{
$('#radiobtn1').attr('checked','true');
$("#subtype").show();
}
else if(type == "0" && subtype == '0')
{
$('#radiobtn1').attr('checked','true');
$("#subtype").show();
$('#mainttype1').attr('checked','true');
$("#suppdiv").hide();
}
else if(type == "0" && subtype == '1')
{
$('#radiobtn1').attr('checked','true');
$("#subtype").show();
$('#mainttype2').attr('checked','true');
$("#suppdiv").show();
}
else if(type == "1" && subtype == '')
{
$('#radiobtn2').attr('checked','true');
$("#subtype").hide();
$("#suppdiv").hide();
}
$('input[name=radiobtn]').change(function(){
var value = $( 'input[name=radiobtn]:checked' ).val();
if(value == '0'){
$("#subtype").show();
}
$("#mainttype1").attr('checked','true');
$("#suppdiv").hide();
}
else{
//alert('br'+value);
$("#subtype").hide();
$("#suppdiv").hide();
}
});
var subtype = "<?php echo $Mnt_Subtype;?>";
if(subtype == '0')
{
$('#mainttype1').attr('checked','true');
}
else
{
$('#mainttype2').attr('checked','true');
}
$('input[name=maintenance_subtype]').change(function(){
var subtype_value = $( 'input[name=maintenance_subtype]:checked' ).val();
if(subtype_value == '1'){
$("#suppdiv").show();
}
else{
$("#suppdiv").hide();
}
});
// var value = $( 'input[name=radiobtn]:checked' ).val();
// if(value == '0'){

View File

@ -225,8 +225,8 @@ if(!empty($mms))
?></span></td>
<td style="text-align:center"><span>
<?php
if(!empty($rel->file1)){ ?>
<a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $rel->file1 ?>" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button>File Available</button></a>
if(!empty($rel->file)){ ?>
<a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $rel->file ?>" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button>File Available</button></a>
<?php
}else
{

View File

@ -360,10 +360,9 @@ table.dataTable thead > tr > td.sorting {
<td style="text-align:right"><span><?php echo '-';?></span></td>
<td style="text-align:right"><span><?php echo '-';?></span></td>
<td style="text-align:right"><span><?php echo '-';?></span></td>
<!-- <td style="text-align:right"><span><?php
$tot_tot= $tot_tot + round($cb->Total,2);
echo number_format($cb->Total,2,'.','');
?>
<!-- <td style="text-align:right"><span>
//$tot_tot= $tot_tot + round($cb->Total,2);
//echo number_format($cb->Total,2,'.','');
</span></td> -->
<td style="text-align:right"><span><?php
$tot_tot= $tot_tot + round($cb->Total,2);

View File

@ -7,15 +7,6 @@ if(!empty($amountpaid))
{
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
@ -139,10 +130,10 @@ if(!empty($amountpaid))
<th>Date</th>
<th>PONO</th>
<th>Supplier Name</th>
<th>Total PO Amount<?php echo '('.$inrsymbol.')' ?></th>
<!--<th>Advance PO Amount<?php echo '('.$inrsymbol.')' ?></th>-->
<th>Balance To Pay<?php echo '('.$inrsymbol.')' ?></th>
<th>Amount Paid<?php echo '('.$inrsymbol.')' ?></th>
<th>Total PO Amount (&#8377;)</th>
<!--<th>Advance PO Amount (&#8377;)</th>-->
<th>Balance To Pay (&#8377;)</th>
<th>Amount Paid (&#8377;)</th>

View File

@ -6,25 +6,15 @@
if(!empty($amountpaid))
{
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
}
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
} ?>
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -137,10 +127,10 @@ if(!empty($amountpaid))
<th>Date</th>
<th>INVOICENO</th>
<th>Supplier Name</th>
<th>Total Invoice Amount<?php echo '('.$inrsymbol.')' ?></th>
<!--<th>Advance PO Amount<?php echo '('.$inrsymbol.')' ?></th>-->
<th>Balance To Received<?php echo '('.$inrsymbol.')' ?></th>
<th>Amount Received<?php echo '('.$inrsymbol.')' ?></th>
<th>Total Invoice Amount (&#8377;)</th>
<!--<th>Advance PO Amount (&#8377;)</th>-->
<th>Balance To Received (&#8377;)</th>
<th>Amount Received (&#8377;)</th>
@ -237,7 +227,7 @@ if(!empty($amountpaid))
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -18,14 +18,7 @@
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
@ -33,7 +26,7 @@
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -165,7 +158,7 @@
<!--<th>Account Code</th>-->
<th>Account Code</th>
<th>To Whom</th>
<th>Total<?php echo '('.$inrsymbol.')' ?></th>
<th>Total (&#8377;)</th>
<th>Balance</th>
<th>Amountpaid</th>
@ -274,7 +267,7 @@
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquesry.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -16,15 +16,6 @@
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
@ -33,7 +24,7 @@
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -165,7 +156,7 @@
<!--<th>Account Code</th>-->
<th>Account Code</th>
<th>To Whom</th>
<th>Total<?php echo '('.$inrsymbol.')' ?></th>
<th>Total (&#8377;)</th>
<th>Amountpaid</th>
@ -272,7 +263,7 @@
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -1,104 +1,61 @@
<?php
foreach($cash as $c)
{
}
foreach($bankid as $i)
{
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
} ?>
}
?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
<style>
.dataTables_filter input {padding: 4px;}
.dataTables_filter {
width: 50%;
float: right;
text-align: right;
}
.dataTables_paginate {
.dataTables_paginate {
width: 50%;
float: right;
text-align: right;
}
div.dt-buttons {
div.dt-buttons {
position: relative;
float: right;
}
</style>
</style>
<div class="content-wrapper">
<section class="content">
<div class="row">
<section class="content">
<div class="row">
<!-- Left col -->
<div class="col-md-12">
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info" id="content">
<!--<div class="box-header with-border">-->
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
<!--</div>-->
<!-- /.box-header -->
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
<!-- Left col -->
<div class="col-md-12">
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info" id="content">
<div class="box-body">
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Invoice Report</b></p></h3></center>
<div class="box-body">
<div class="row">
<div class="row">
<div class="col-md-3">
<label for="from_date">
<?php echo 'From Date'; ?>
</label>
<label for="from_date"> <?php echo 'From Date'; ?></label>
<div class="input-group">
<input name="from_date" id="max-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</span>
</div>
</div>
</div>
<div class="col-md-3">
<div class="col-md-3">
<label for="to_date">
<?php echo 'To Date'; ?>
</label>
@ -106,76 +63,67 @@
<input name="to_date" id="min-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</span>
</div>
</div>
<div class="col-md-3" >
</div>
<div class="col-md-3" >
<label for="customer">
<?php echo 'Customer'; ?>
</label>
<select class="form-control" id="Customer" name="Customer">
<option value="">Select Customer</option>
<?php
foreach($getcustomer as $gc):
{?>
<option value="<?php echo $gc->client_id;?>"><?php echo $gc->client_name ; ?></option>
<select class="form-control" id="Customer" name="Customer">
<option value="">Select Customer</option>
<?php
foreach($getcustomer as $gc):
{?>
<option value="<?php echo $gc->client_id;?>"><?php echo $gc->client_name ; ?></option>
<?php } endforeach; ?>
</select>
</div>
<div class="col-md-1" style="margin-top:24px;">
</select>
</div>
<div class="col-md-1" style="margin-top:24px;">
<input type="submit" class="btn btn-success" name="btn_submit"
value="View Report">
</div>
</div>
</div>
</div><!--/ inside 1st .row closed -->
<br>
<br>
<br>
<br>
<div class="row">
<div class="row">
<input type="hidden" id="debitamount" value="<?php echo $cash; ?>" readonly>
<input type="hidden" id="debitamount" value="<?php echo $cash; ?>" placeholder="Debit Amount" readonly>
<input type="hidden" id="bankid" value="<?php echo $bankid; ?>" readonly>
<input type="hidden" id="bankid" value="<?php echo $bankid; ?>" placeholder="Bank Id" readonly>
<div class="col-md-3 col-md-offset-9">
<div style=" border: 2px solid black;margin-left:0%;margin-top: -55px;font-size:14px;background-color:#ccc;">
<p style="margin-left:25px;" id="bid" value=""</b>>Payment ID:&nbsp;&nbsp; </p>
<p style="margin-left:25px;">Payment Mode:&nbsp;&nbsp;Bank</p>
<p style="margin-left:25px;" id="bamount" value="">Payment Amount:&nbsp;&nbsp; </p>
</div>
</div>
</div>
</form>
<div class="col-md-3 col-md-offset-9">
<div style=" border: 2px solid black;margin-left:0%;margin-top: -55px;font-size:14px;background-color:#ccc;">
<p style="margin-left:25px;" id="bid" value=""</b>>Payment ID:&nbsp;&nbsp; </p>
<p style="margin-left:25px;">Payment Mode:&nbsp;&nbsp;Bank</p>
<p style="margin-left:25px;" id="bamount" value="">Payment Amount:&nbsp;&nbsp; </p>
</div>
</div>
</div><!--/ inside 2nd .row closed -->
</form>
<br>
<br>
<input type="hidden" name="Rowid" id="Rowid">
<input type="hidden" name="Rowid" id="Rowid" placeholder="Row Id" readonly >
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
<thead>
<tr>
<th>Select</th>
<th>Select</th>
<th>Date</th>
<th>Invoice Number</th>
<th>Invoice Number</th>
<th>Customer Name</th>
<th>Invoice Amount<?php echo '('.$inrsymbol.')' ?></th>
<th>Invoice Amount (&#8377;)</th>
<th>Balance To Received</th>
<th>AmountReceived</th>
</tr>
</thead>
<tbody>
@ -184,45 +132,29 @@
$ti=0.00;
$tvt=0.00;
if(!empty($bankinvoicedata)){
//print_r($bankdepit);
//die();
foreach($bankinvoicedata as $t)
//print_r($bankinvoicedata);
foreach($bankinvoicedata as $t)
{
$status=$t->Paymentstatus;
$balancetopay=$t->Balancetopay;
// $invoice_total=$t->invoice_total;
// $amountreceived=$t->amountreceived;
// $balancetoreceived=$invoice_total-$amountreceived
//print_r($$status);
if($status !='ST057')
{
?>
<tr>
?>
<tr>
<td data-name="sell"><input type="checkbox" onchange="GetPayment(<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>";></td>
<td data-name="sell"><input type="checkbox" onchange="GetPayment(<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>";></td>
<td align="left" id="invoicedate<?php echo $i ?>"><span><?php echo date_format(date_create($t->invoice_date_created),'d-m-Y');?></span></td>
<td align="left" id="invoice_id<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $t->invoice_number;?>"><span><?php echo $t->invoice_number?></span></td>
<td align="left" id="client_name<?php echo $i ?>"><span><?php echo $t->client_name?></span></td>
<td align="left" id="invoice_paid<?php echo $i ?>"><span><?php echo $t->invoice_total?></span></td>
<td align="left" id="invoice_balance<?php echo $i ?>"><span><?php echo ($t->invoice_total)-($t->amountreceived)?></span></td>
<td data-name="sel"><input type="text" onkeypress="return isNumberKey(event)" onchange="GetAmount(<?php echo $i ?>)" id="invoicereceived<?php echo $i ?>"></td>
<td data-name="sel"><input type="text" onkeypress="return isNumberKey(event)" onchange="GetAmount(<?php echo $i ?>)" id="invoicereceived<?php echo $i ?>"></td>
</tr>
<?php
$i++;
}
}
}
?>
</tbody>
<tfoot width="100%">
@ -231,10 +163,9 @@
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="amount"><strong>
<!-- 4545 -->
<input type="text" id="addvalue" name="addvalue">
@ -247,45 +178,40 @@
</tr>
</tfoot>
<?php } ?>
</table>
<div class="col-md-2 col-md-offset-10" style="margin-top:24px;">
<a style="float:right;" class="btn btn-success ajax-loader" ID="Save" onclick="Save()" >&nbsp;&nbsp;<span class="bold">Save</span></a>
</div>
</div>
</div>
</div>
</div><!-- / .box-body closed -->
</div><!-- /.box box-info closed-->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</section>
</div>
</div><!--/ .col (col-md-12)-->
</div><!-- /. 1st row closed -->
<div class="row">
<div class="col-md-12" id="invoicedate1"></div>
<div class="col-md-12" id="HideInvoiceDateDiv"></div>
<div class="col-md-12" id="invoiceid1"></div>
<div class="col-md-12" id="HideInvoiceIdDiv"></div>
<div class="col-md-12" id="customername1"></div>
<div class="col-md-12" id="HideCustomerNameDiv"></div>
<div class="col-md-12" id="invoiceamount1"></div>
<div class="col-md-12" id="HideInvoiceAmtDiv"></div>
<div class="col-md-12" id="invoicerec"></div>
<div class="col-md-12" id="HideInvoiceRecdDiv"></div>
<input type="hidden" name="Recid" id="Recid" value="" placeholder="Rec Id" readonly>
</div><!-- /. 2nd row closed -->
<input type="hidden" name="Recid" id="Recid" value="">
</section>
</div>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
@ -298,54 +224,50 @@
var res=localStorage.getItem('test2');
$('#debitamount').val(localStorage.getItem('tes'));
var amount=localStorage.getItem('tes');
document.getElementById("bamount").innerHTML='Payment Amount:'+amount+'Rs';
document.getElementById("bamount").innerHTML='Payment Amount:'+amount+'Rs';
var res1 = res.split(',');
var i;
$.each(res1, function(index, value)
{
var res2 = value.split('-');
var bid=res2[0];
var bam=res2[1];
//alert(bid);
//alert(bam);
$('#bankid').val(bid);
document.getElementById("bid").innerHTML='Payment ID:' +bid;
});
//alert($data['cash']);
// $('#debitamount').val('10');
table = $('#req').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
messageTop: $('h3').text(),
title: 'cashbook Overall Report',
exportOptions: {
columns: ':visible'
var res2 = value.split('-');
var bid=res2[0];
var bam=res2[1];
$('#bankid').val(bid);
document.getElementById("bid").innerHTML='Payment ID:' +bid;
});/** foreach closed */
table = $('#req').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
messageTop: $('h3').text(),
title: 'cashbook Overall Report',
exportOptions: {
columns: ':visible'
}
},
}
},
'colvis'
]
} );
} );
var tempinvoice=[];
var tot=0;
var tot1=0;
var intex=1;
'colvis'
]
} );/** datatable closed */
} );/** ready closed */
var tempinvoice=[]; // tempinvoice - This array for Invoice no with its value and its checkbox select number('checkbox_select_number'-'id'-'value').
var tempTotal = []; // tempTotal - This array for get value from "tempinvoice" to calculate grandtotal
var row=0;
var j=1;
var tott=0;
var intex=1;
function GetPayment(i)
{
var x = document.getElementById('checkboxcheckbox'+i).checked;
//alert(x);
var amount= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val())
var negative=0;
if(amount<0)
@ -359,169 +281,111 @@ temp=intex;
if(x==true)
{
row= parseInt(row)+1;
//alert(row);
row = parseInt(row)+1;
$('#Rowid').val(row);
var date= document.getElementById ( "invoicedate"+i ).innerText;
var invid =document.getElementById ( "invoice_id"+i ).innerText;
//alert(invid+'invid');
var cusname =document.getElementById ("client_name"+i ).innerText;
var invoiceamount =document.getElementById ("invoice_paid"+i ).innerText;
var invoicereceived=document.getElementById ("invoice_balance"+i ).innerText;
//alert(invoicereceived+'invamount');
$('#invoicereceived'+i).val(invoicereceived);
var RowCount= $('#Rowid').val();
var invoicevalue = invid+'-'+invoicereceived;
tempinvoice.push(invoicevalue);
var total=0;
$.each(tempinvoice, function( index, value )
{
var res2 = value.split('-');
var invoiceno=res2[0];
var cam=res2[1];
total=parseFloat(cam)+parseFloat(total);
$('#addvalue').val(parseFloat(total).toFixed(2));
});
$('<input>').attr({
type:'hidden',
name:'invoicedate1'+j,
id:'invoicedate1'+j,
name:'hideinvoicedate'+i,
id:'hideinvoicedate'+i,
value:date
}).appendTo('#invoicedate1');
}).appendTo('#HideInvoiceDateDiv');
$('<input>').attr({
type:'hidden',
name:'invoiceid1'+j,
id:'invoiceid1'+j,
name:'hideinvoiceid'+i,
id:'hideinvoiceid'+i,
value:invid
}).appendTo('#invoiceid1');
}).appendTo('#HideInvoiceIdDiv');
$('<input>').attr({
type:'hidden',
name:'customername1'+j,
id:'customername1'+j,
name:'hidecustomername'+i,
id:'hidecustomername'+i,
value:cusname
}).appendTo('#customername1');
}).appendTo('#HideCustomerNameDiv');
$('<input>').attr({
type:'hidden',
name:'invoiceamount1'+j,
id:'invoiceamount1'+j,
name:'hideinvoiceamount'+i,
id:'hideinvoiceamount'+i,
value:invoiceamount
}).appendTo('#invoiceamount1');
}).appendTo('#HideInvoiceAmtDiv');
$('<input>').attr({
type:'hidden',
name:'invoicerec'+j,
id:'invoicerec'+j,
name:'hideinvoicerecd'+i,
id:'hideinvoicerecd'+i,
value:invoicereceived
}).appendTo('#invoicerec');
}).appendTo('#HideInvoiceRecdDiv');
//j= parseInt(j)+1;
if(negative==1)
{
// alert()
for(o=1;o<j;o++)
for(o=1;o<i;o++)//need to ask
{
$('#invoice_balance1'+o).val('')
}
}
intex = parseInt(intex)+1;
j=parseInt(j)+1;
var to=0;
// for(t=1;t<j;t++)
// {
// //var tt= $('#inv_amount'+t).val();
// var tt=parseFloat( $('#invoiceamount1'+t).val() == '' ? '0.00' : $('#invoiceamount1'+t).val());
// to = parseFloat(to) + parseFloat (tt);
// $('#addvalue').val(parseFloat(to).toFixed(2));
// }
var invoicevalue = i+'-'+invid+'-'+invoicereceived;
tempinvoice.push(invoicevalue);
calculategrandtotal();
intex = parseInt(intex)+1;
}
else
{
//alert(i)
var rr= $('#Rowid').val();
var ro= parseInt(rr)-1;
row = parseInt(rr)-1;
var Payment= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val());
var Inid = document.getElementById ('invoice_id'+i ).innerText
var invoicevalue = Inid+'-'+Payment;
//alert(Inid+'else');
//temppo.pull(Inid);
var invoicevalue = i+'-'+Inid+'-'+Payment;
var a = tempinvoice.indexOf(invoicevalue);
//console.log(a);
var b = tempTotal.indexOf(Payment);
if(a!=-1)
{
tempinvoice.splice(a,1);
//console.log(temppo);
//console.log(tempinvoice);
}
if(b!=-1)
{
tempTotal.splice(a,1);
//console.log(tempTotal);
}
calculategrandtotal();
for(s=1;s<=j;s++)
{
var ch= $('#invoiceid1'+s).val();
//alert(ch);
if(Inid==ch)
{
var w=s;
delamount= $('#invoicerec'+w).val();
//alert(delamount)
break;
}
}
// //alert(w);
var tote= $('#addvalue').val();
//alert(tote)
var afterdeltot= parseFloat(tote)- parseFloat(delamount);
//alert(afterdeltot)
tot=parseFloat(tot)-parseFloat(Payment);
$('#invoicereceived'+i).val('');
$('#addvalue').val(parseFloat(afterdeltot).toFixed(2));
//alert(ro);
$('#Rowid').val(ro);
$('#invoicereceived'+i).val('');
$('#invoicedate1'+i).val('');
$('#invoiceid1'+i).val('');
$('#customername1'+i).val('');
$('#invoiceamount1'+i).val('');
$('#invoicerec'+i).val('');
$('#Rowid').val(row);
//$('#aa'+i).val('');
$('#invoicereceived'+i).val('');
$('#hideinvoicedate'+i).val('');
$('#hideinvoiceid'+i).val('');
$('#hidecustomername'+i).val('');
$('#hideinvoiceamount'+i).val('');
$('#hideinvoicerecd'+i).val('');
$('#hideinvoicedate'+i).remove();
$('#hideinvoiceid'+i).remove();
$('#hidecustomername'+i).remove();
$('#hideinvoiceamount'+i).remove();
$('#hideinvoicerecd'+i).remove();
}
@ -540,7 +404,7 @@ function isNumberKey(evt)
}
function GetAmount(i)
{
//alert("hai");
var amount= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val());
var negative=0;
@ -553,17 +417,17 @@ function GetAmount(i)
var x = document.getElementById('checkboxcheckbox'+i).checked;
if(x==true && negative == 0)
{
//alert(x);
var date= document.getElementById ( "invoicedate"+i ).innerText;
var invid =document.getElementById ( "invoice_id"+i ).innerText;
var cusname =document.getElementById ("client_name"+i ).innerText;
var invoiceamount =document.getElementById ("invoice_paid"+i ).innerText;
var invid =document.getElementById ( "invoice_id"+i ).innerText;
var cusname =document.getElementById ("client_name"+i ).innerText;
var invoiceamount =document.getElementById ("invoice_paid"+i ).innerText;
var invoicereceived=document.getElementById ("invoice_balance"+i ).innerText;
var invoicereceived=document.getElementById ("invoice_balance"+i ).innerText;
for(k=1;k<=j-1;k++)
for(k=1;k<=i;k++)
{
var idcheck=$('#invoiceid1'+k).val();
var idcheck=$('#hideinvoiceid'+k).val();
if(invid==idcheck)
{
var cid=k;
@ -574,74 +438,92 @@ function GetAmount(i)
}
if(amount<=invoiceamount)
if(amount<=invoiceamount)//amount value is less than or equal to invoice received value means
{
$('#invoicedate1').val(date);
$('#invoiceid1'+cid).val(invid);
$('#customername1'+cid).val(cusname);
$('#invoiceamount1'+cid).val(invoiceamount);
$('#invoicerec'+cid).val(amount);
$('#hideinvoicedate').val(date);
$('#hideinvoiceid'+cid).val(invid);
$('#hidecustomername'+cid).val(cusname);
$('#hideinvoiceamount'+cid).val(invoiceamount);
$('#hideinvoicerecd'+cid).val(amount);
var totalvalue=$('#addvalue').val();
var bid=$('#bankid').val();
}
else
{
alert('You are exceeding the payment get!!');
$('#invoicereceived'+i).val(amount)
location.reload();
else
{
alert('You are exceeding the payment get!!');
$('#invoicereceived'+i).val(amount)
location.reload();
}
var tot11=0
for(l=1;l<j;l++)
{
//var Payingamount= $('#inv_amount'+l).val();
var Payingamount=parseFloat( $('#invoicerec'+l).val() == '' ? '0.00' : $('#invoicerec'+l).val());
//alert(Payingamount)
tot11= parseFloat(tot11)+parseFloat(Payingamount)
//alert(tot11)
$('#addvalue').val(parseFloat(tot11).toFixed(2));
}
}
$.each(tempinvoice, function( index, value )
{
var res2 = value.split('-');
if(res2[1] == invid){
tempinvoice[index] = i+'-'+invid+'-'+amount;
}
});
calculategrandtotal();
}
}
function calculategrandtotal(){
$.each(tempinvoice, function( index, value )
{
var res2 = value.split('-');
tempTotal[index]=parseFloat(res2[2]);
});
//console.log(tempTotal);
var sum = 0;
for (var i = 0; i < tempTotal.length; i++) {
sum += tempTotal[i] << 0;
}
$('#addvalue').val(parseFloat(sum).toFixed(2));
}
function Save()
{
$('#content').loader('show');
var totalvalue=$('#addvalue').val();
var rowCount= $('#Rowid').val();
//alert(rowCount);
//die();
var rowCount = $('#Rowid').val();
var check= 0;
var rw= 0;
for(i=1;i<=rowCount;i++)
{
//alert(i);
var arrval = tempinvoice[i-1];
var number = arrval.split('-');
number = number[0];
//alert('rowcount'+i+'selectedcheckboxnumber'+number+'tempinvoice'+arrval);
rw= parseFloat(rw)+1;
check = parseFloat(check)+1;
var bankdebitamount=$('#debitamount').val();
var bid=$('#bankid').val();
var date =$('#invoicedate1'+i).val();
var invid =$('#invoiceid1'+i).val();
//alert(invid+'iid');
var customername=$('#customername1'+i).val();
var invoiceamount=$('#invoiceamount1'+i).val();
var amountreceived=$('#invoicerec'+i).val();
//alert(amountreceived+'amr');
var invoicereceived=$('#invoicereceived'+i).text();
//var payment = parseFloat(invoiceamount);
var date =$('#hideinvoicedate'+number).val();
var invid =$('#hideinvoiceid'+number).val();
var customername=$('#hidecustomername'+number).val();
var invoiceamount=$('#hideinvoiceamount'+number).val();
var amountreceived=$('#hideinvoicerecd'+number).val();
var invoicereceived=$('#invoicereceived'+number).val();
//var payment = parseFloat(invoiceamount);
if(parseFloat(totalvalue)<=parseFloat(bankdebitamount))
{
@ -660,52 +542,15 @@ function Save()
}
}
});
//}
// else{
// alert('You are payment exceeding');
// location.reload();
// }
//}
// else{
// alert('You are payment exceedingsave');
// location.reload();
// }
}
// alert('i'+i);
// if(rowCount<=i)
// {
// if(data)
// {
// alert(data);
// location.reload();
// }
// else
// {
//alert("Error");
// }
// }
// }
// });
// alert(i);
// }
else{
else{
alert('You are payment exceeding');
location.reload();
}
// j=j+1;
}
}
</script>
<script>
$( function() {
@ -745,6 +590,4 @@ $( function() {
return date;
}
} );
</script>
</script>

View File

@ -9,13 +9,13 @@ if(!empty($debitmapping))
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
// $inrsymbol='';
// if(!empty($Indiancurrency))
// {
// foreach ($Indiancurrency as $inr)
// {
// $inrsymbol = $inr->FontCode2000;
// }}
foreach($financialyear as $item)
{
@ -24,7 +24,7 @@ if(!empty($debitmapping))
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -179,7 +179,7 @@ if(!empty($debitmapping))
<th>Date</th>
<th>INVOICE NO</th>
<th>Customer Name</th>
<th>Total Amount<?php echo '('.$inrsymbol.')' ?></th>
<th>Total Amount (&#8377;)</th>
<th>Balance To Received</th>
<th>Received Amount</th>
@ -270,9 +270,9 @@ if(!empty($debitmapping))
<th>Account Name</th>
<th>Bankid</th>
<th>Amount Type</th>
<th>Total Amount<?php echo '('.$inrsymbol.')' ?></th>
<!--<th>Advance PO Amount<?php echo '('.$inrsymbol.')' ?></th>-->
<th>Option<?php echo '('.$inrsymbol.')' ?></th>
<th>Total Amount (&#8377;)</th>
<!--<th>Advance PO Amount (&#8377;)</th>-->
<th>Option (&#8377;)</th>
@ -338,7 +338,7 @@ if(!empty($debitmapping))
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -7,24 +7,13 @@ if(!empty($debitmapping))
{
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
} ?>
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -59,7 +48,8 @@ if(!empty($debitmapping))
</div>-->
<div class="content-wrapper">
<section class="content">
<!-- Left col -->
@ -131,9 +121,8 @@ if(!empty($debitmapping))
<th>Bank ID</th>
<th>Narration</th>
<th>InvoiceNO</th>
<th>Amount Received<?php echo '('.$inrsymbol.')' ?></th>
<th>InvoiceNO</th>
<th>Amount Received (&#8377;)</th>
@ -218,13 +207,15 @@ if(!empty($debitmapping))
<!-- /.box -->
</div>
<!-- /.col -->
</section>
</div>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -9,13 +9,7 @@ if(!empty($debitmapping))
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
@ -24,7 +18,7 @@ if(!empty($debitmapping))
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -89,7 +83,7 @@ if(!empty($debitmapping))
<th>Narration</th>
<th>PONO</th>
<th>Amount Paid<?php echo '('.$inrsymbol.')' ?></th>
<th>Amount Paid (&#8377;) </th>
@ -182,7 +176,7 @@ if(!empty($debitmapping))
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -8,14 +8,6 @@ if(!empty($mapping))
}
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
@ -24,7 +16,7 @@ if(!empty($mapping))
} ?>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
@ -187,10 +179,10 @@ if(!empty($mapping))
<th>Date</th>
<th>PONO</th>
<th>Supplier Name</th>
<th>Total PO Amount<?php echo '('.$inrsymbol.')' ?></th>
<!--<th>Advance PO Amount<?php echo '('.$inrsymbol.')' ?></th>-->
<th>Balance To Pay<?php echo '('.$inrsymbol.')' ?></th>
<th>Amount Paid<?php echo '('.$inrsymbol.')' ?></th>
<th>Total PO Amount (&#8377;)</th>
<!--<th>Advance PO Amount (&#8377;)</th>-->
<th>Balance To Pay (&#8377;)</th>
<th>Amount Paid (&#8377;)</th>
<th>File</th>
@ -295,9 +287,9 @@ if(!empty($mapping))
<th>Account Name</th>
<th>Bankid</th>
<th>Amount Type</th>
<th>Total Amount<?php echo '('.$inrsymbol.')' ?></th>
<!--<th>Advance PO Amount<?php echo '('.$inrsymbol.')' ?></th>-->
<th>Option<?php echo '('.$inrsymbol.')' ?></th>
<th>Total Amount (&#8377;)</th>
<!--<th>Advance PO Amount (&#8377;)</th>-->
<th>Option (&#8377;)</th>
@ -366,7 +358,7 @@ if(!empty($mapping))
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -1,23 +1,8 @@
<?php
$inrsymbol='';
if(!empty($Indiancurrency))
{
foreach ($Indiancurrency as $inr)
{
$inrsymbol = $inr->FontCode2000;
}}
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
} ?>
foreach($financialyear as $item)
{
$finyear = $item->financial_year;
} ?>
@ -185,15 +170,15 @@
<th>Cod</th>
<!--<th>Paid Type(RECEIPT)</th>-->
<!--<th>Paid Type(PAYMENTS)</th>-->
<th style="text-align:right;"> Debit <?php echo '('.$inrsymbol.')' ?></th>
<th style="text-align:right;"> Debit (&#8377;)</th>
<!--<th style="text-align:right;">Balance <?php echo '('.$inrsymbol.')' ?></th>-->
<th style="text-align:right;"> Cleard Balance <?php echo '('.$inrsymbol.')' ?></th>
<th style="text-align:right;"> Balance to Clear <?php echo '('.$inrsymbol.')' ?></th>
<th style="text-align:right;"> Status <?php echo '('.$inrsymbol.')' ?></th>
<th style="text-align:right;"> Credit <?php echo '('.$inrsymbol.')' ?></th>
<th style="text-align:right;"> Cleard Balance <?php echo '('.$inrsymbol.')' ?></th>
<th style="text-align:right;"> Balance to Clear <?php echo '('.$inrsymbol.')' ?></th>
<!--<th style="text-align:right;">Balance (&#8377;)</th>-->
<th style="text-align:right;"> Cleard Balance (&#8377;)</th>
<th style="text-align:right;"> Balance to Clear (&#8377;)</th>
<th style="text-align:right;"> Status </th>
<th style="text-align:right;"> Credit (&#8377;)</th>
<th style="text-align:right;"> Cleard Balance (&#8377;)</th>
<th style="text-align:right;"> Balance to Clear (&#8377;)</th>
<th>Status</th>
</tr>
@ -571,8 +556,7 @@ if (x==true)
var i=i1;
var avalue= $('#addvalue').val();
alert(avalue);
//alert(avalue);
localStorage.setItem('test',avalue);
var e = document.getElementById("selectedId");
var value = e.options[e.selectedIndex].value;

View File

@ -1,6 +1,7 @@
<?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;$tijan=0.00;$tifeb=0.00;$timar=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;$tejan=0.00;$tefeb=0.00;$temar=0.00;
$rowwise = 0.00;
if (date('m') >= 4) {
$yearl = date('Y').'-'.(date('Y')+1);
} else {
@ -135,8 +136,9 @@ if (date('m') >= 4) {
<th style="text-align:center" colspan="2">November</th>
<th style="text-align:center" colspan="2">December</th>
<th style="text-align:center" colspan="2">January</th>
<th style="text-align:center" colspan="2">February </th>
<th style="text-align:center" colspan="2">February</th>
<th style="text-align:center" colspan="2">March</th>
<th style="text-align:center" rowspan="2">Total</th>
</tr>
<tr>
<th style="text-align:center">Receipt &nbsp;(<i class="fa fa-rupee "></i>)</th>
@ -174,30 +176,31 @@ if (date('m') >= 4) {
?>
<tr>
<td><?php echo $d->name; ?></td>
<td><?php $tiapr= $tiapr + number_format($d->Aprinc,2,'.',''); echo number_format($d->Aprinc,2,'.',''); ?></td>
<td><?php $teapr= $teapr + number_format($d->Aprexp,2,'.',''); echo number_format($d->Aprexp,2,'.',''); ?></td>
<td><?php $timay= $timay + number_format($d->Mayinc,2,'.',''); echo number_format($d->Mayinc,2,'.',''); ?></td>
<td><?php $temay= $temay + number_format($d->Mayexp,2,'.',''); echo number_format($d->Mayexp,2,'.',''); ?></td>
<td><?php $tijun= $tijun + number_format($d->Juninc,2,'.',''); echo number_format($d->Juninc,2,'.',''); ?></td>
<td><?php $tejun= $tejun + number_format($d->Junexp,2,'.',''); echo number_format($d->Junexp,2,'.',''); ?></td>
<td><?php $tijul= $tijul + number_format($d->Julinc,2,'.',''); echo number_format($d->Julinc,2,'.',''); ?></td>
<td><?php $tejul= $tejul + number_format($d->Julexp,2,'.',''); echo number_format($d->Julexp,2,'.',''); ?></td>
<td><?php $tiaug= $tiaug + number_format($d->Auginc,2,'.',''); echo number_format($d->Auginc,2,'.',''); ?></td>
<td><?php $teaug= $teaug + number_format($d->Augexp,2,'.',''); echo number_format($d->Augexp,2,'.',''); ?></td>
<td><?php $tisep= $tisep + number_format($d->Sepinc,2,'.',''); echo number_format($d->Sepinc,2,'.',''); ?></td>
<td><?php $tesep= $tesep + number_format($d->Sepexp,2,'.',''); echo number_format($d->Sepexp,2,'.',''); ?></td>
<td><?php $tioct= $tioct + number_format($d->Octinc,2,'.',''); echo number_format($d->Octinc,2,'.',''); ?></td>
<td><?php $teoct= $teoct + number_format($d->Octexp,2,'.',''); echo number_format($d->Octexp,2,'.',''); ?></td>
<td><?php $tinov= $tinov + number_format($d->Novinc,2,'.',''); echo number_format($d->Novinc,2,'.',''); ?></td>
<td><?php $tenov= $tenov + number_format($d->Novexp,2,'.',''); echo number_format($d->Novexp,2,'.',''); ?></td>
<td><?php $tidec= $tidec + number_format($d->Decinc,2,'.',''); echo number_format($d->Decinc,2,'.',''); ?></td>
<td><?php $tedec= $tedec + number_format($d->Decexp,2,'.',''); echo number_format($d->Decexp,2,'.',''); ?></td>
<td><?php $tijan= $tijan + number_format($d->Janinc,2,'.',''); echo number_format($d->Janinc,2,'.',''); ?></td>
<td><?php $tejan= $tejan + number_format($d->Janexp,2,'.',''); echo number_format($d->Janexp,2,'.',''); ?></td>
<td><?php $tifeb= $tifeb + number_format($d->Febinc,2,'.',''); echo number_format($d->Febinc,2,'.',''); ?></td>
<td><?php $tefeb= $tefeb + number_format($d->Febexp,2,'.',''); echo number_format($d->Febexp,2,'.',''); ?></td>
<td><?php $timar= $timar + number_format($d->Marinc,2,'.',''); echo number_format($d->Marinc,2,'.',''); ?></td>
<td><?php $timar= $temar + number_format($d->Marexp,2,'.',''); echo number_format($d->Marexp,2,'.',''); ?></td>
<td><?php $tiapr= $tiapr + number_format($d->AprilIncome,2,'.',''); echo number_format($d->Aprinc,2,'.',''); ?></td>
<td><?php $teapr= $teapr + number_format($d->AprilExpense,2,'.',''); echo number_format($d->Aprexp,2,'.',''); ?></td>
<td><?php $timay= $timay + number_format($d->MayIncome,2,'.',''); echo number_format($d->Mayinc,2,'.',''); ?></td>
<td><?php $temay= $temay + number_format($d->MayExpense,2,'.',''); echo number_format($d->Mayexp,2,'.',''); ?></td>
<td><?php $tijun= $tijun + number_format($d->JuneIncome,2,'.',''); echo number_format($d->Juninc,2,'.',''); ?></td>
<td><?php $tejun= $tejun + number_format($d->JuneExpense,2,'.',''); echo number_format($d->Junexp,2,'.',''); ?></td>
<td><?php $tijul= $tijul + number_format($d->JulyIncome,2,'.',''); echo number_format($d->Julinc,2,'.',''); ?></td>
<td><?php $tejul= $tejul + number_format($d->JulyExpense,2,'.',''); echo number_format($d->Julexp,2,'.',''); ?></td>
<td><?php $tiaug= $tiaug + number_format($d->AugustIncome,2,'.',''); echo number_format($d->Auginc,2,'.',''); ?></td>
<td><?php $teaug= $teaug + number_format($d->AugustExpense,2,'.',''); echo number_format($d->Augexp,2,'.',''); ?></td>
<td><?php $tisep= $tisep + number_format($d->SepIncome,2,'.',''); echo number_format($d->Sepinc,2,'.',''); ?></td>
<td><?php $tesep= $tesep + number_format($d->SepExpense,2,'.',''); echo number_format($d->Sepexp,2,'.',''); ?></td>
<td><?php $tioct= $tioct + number_format($d->OctIncome,2,'.',''); echo number_format($d->Octinc,2,'.',''); ?></td>
<td><?php $teoct= $teoct + number_format($d->OctExpense,2,'.',''); echo number_format($d->Octexp,2,'.',''); ?></td>
<td><?php $tinov= $tinov + number_format($d->NovIncome,2,'.',''); echo number_format($d->Novinc,2,'.',''); ?></td>
<td><?php $tenov= $tenov + number_format($d->NovExpense,2,'.',''); echo number_format($d->Novexp,2,'.',''); ?></td>
<td><?php $tidec= $tidec + number_format($d->DecIncome,2,'.',''); echo number_format($d->Decinc,2,'.',''); ?></td>
<td><?php $tedec= $tedec + number_format($d->DecExpense,2,'.',''); echo number_format($d->Decexp,2,'.',''); ?></td>
<td><?php $tijan= $tijan + number_format($d->JanIncome,2,'.',''); echo number_format($d->Janinc,2,'.',''); ?></td>
<td><?php $tejan= $tejan + number_format($d->JanExpense,2,'.',''); echo number_format($d->Janexp,2,'.',''); ?></td>
<td><?php $tifeb= $tifeb + number_format($d->FebIncome,2,'.',''); echo number_format($d->Febinc,2,'.',''); ?></td>
<td><?php $tefeb= $tefeb + number_format($d->FebExpense,2,'.',''); echo number_format($d->Febexp,2,'.',''); ?></td>
<td><?php $timar= $timar + number_format($d->MarIncome,2,'.',''); echo number_format($d->Marinc,2,'.',''); ?></td>
<td><?php $timar= $temar + number_format($d->MarExpense,2,'.',''); echo number_format($d->Marexp,2,'.',''); ?></td>
<td><?php $rowwise = $rowwise + number_format($d->overalltotal,2,'.',''); echo number_format($d->overalltotal,2,'.',''); ?></td>
</tr>
<?php } ?>
</tbody>
@ -228,6 +231,7 @@ if (date('m') >= 4) {
<td><b><?php echo number_format($tifeb,2,'.',''); ?></b></td>
<td><b><?php echo number_format($timar,2,'.',''); ?></b></td>
<td><b><?php echo number_format($timar,2,'.',''); ?></b></td>
<td><b><?php echo number_format($rowwise,2,'.',''); ?></b></td>
</tr>
</tfoot>
<?php } ?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB