BankStatement
This commit is contained in:
parent
3294b2800a
commit
9c65a6f993
@ -261,7 +261,7 @@ $route['Cashstatement']= "cashbook/cashreceipt";
|
|||||||
$route['BankingFile']= "cashbook/bankfileupload";
|
$route['BankingFile']= "cashbook/bankfileupload";
|
||||||
//$route['Filelist']="cashbook/filelist";
|
//$route['Filelist']="cashbook/filelist";
|
||||||
//$route['Bankingrecord']= "cashbook/bankdata";
|
//$route['Bankingrecord']= "cashbook/bankdata";
|
||||||
$route['Bankamountpaid']= "cashbook/amountpaid";
|
$route['Bankamountpaid']= "cashbook/amountpaid"; // conform this function
|
||||||
$route['Bankamountreceived']= "cashbook/amountreceived";
|
$route['Bankamountreceived']= "cashbook/amountreceived";
|
||||||
$route['Receipt']= "cashbook/cashreceipt";
|
$route['Receipt']= "cashbook/cashreceipt";
|
||||||
$route['Payment']= "cashbook/cashpayment";
|
$route['Payment']= "cashbook/cashpayment";
|
||||||
@ -270,6 +270,18 @@ $route['Bankcash']= "cashbook/cashbanking";
|
|||||||
$route['DeleteInvoice']="cashbook/deletemappingiv";
|
$route['DeleteInvoice']="cashbook/deletemappingiv";
|
||||||
$route['DeletePo']="cashbook/Deletemappingporeport";
|
$route['DeletePo']="cashbook/Deletemappingporeport";
|
||||||
$route['MappingInvoice']="cashbook/mappinginvoice";
|
$route['MappingInvoice']="cashbook/mappinginvoice";
|
||||||
|
// new added on cashbook controller
|
||||||
|
$route['MappingPo']="cashbook/mappingpo";
|
||||||
|
$route['Bankledgersupplier']="cashbook/supplierledger";
|
||||||
|
$route['Bankledgercustomer']="cashbook/customerledger";
|
||||||
|
//$route['Bankamountpaid']= "cashbook/amountpaidsupplier";
|
||||||
|
$route['Bankamountunpaid']= "cashbook/amountunpaid";
|
||||||
|
|
||||||
|
$route['Bankamountreceived']= "cashbook/bankreceivedsupp";
|
||||||
|
$route['Bankamountunreceived']= "cashbook/bankunreceivedsupp";
|
||||||
|
$route['Receiptamount']="cashbook/receipt";
|
||||||
|
$route['Amountreceived']="cashbook/amountreceived";
|
||||||
|
|
||||||
|
|
||||||
/**------------Application Stock Details---------------**/
|
/**------------Application Stock Details---------------**/
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
1555
application/logs/log-2019-01-04.php
Normal file
1555
application/logs/log-2019-01-04.php
Normal file
File diff suppressed because it is too large
Load Diff
3904
application/logs/log-2019-01-05.php
Normal file
3904
application/logs/log-2019-01-05.php
Normal file
File diff suppressed because it is too large
Load Diff
1550
application/logs/log-2019-01-07.php
Normal file
1550
application/logs/log-2019-01-07.php
Normal file
File diff suppressed because it is too large
Load Diff
1935
application/logs/log-2019-01-08.php
Normal file
1935
application/logs/log-2019-01-08.php
Normal file
File diff suppressed because it is too large
Load Diff
16865
application/logs/log-2019-01-09.php
Normal file
16865
application/logs/log-2019-01-09.php
Normal file
File diff suppressed because it is too large
Load Diff
27695
application/logs/log-2019-01-10.php
Normal file
27695
application/logs/log-2019-01-10.php
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
//echo $suppliername;
|
||||||
if(!empty($amountpaid))
|
if(!empty($amountpaid))
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -50,22 +50,23 @@ if(!empty($amountpaid))
|
|||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<section class ="content">
|
<section class ="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
|
<div id="content" > </div>
|
||||||
<div class="modal fade" id="Fileshow" role="dialog">
|
<div class="modal fade" id="Fileshow" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content-->
|
<!-- Modal. content-->
|
||||||
<form>
|
<form>
|
||||||
<div class="modal-content" style="width:800px;">
|
|
||||||
|
<div class="modal-content" style="width:800px;">
|
||||||
<!-- Table to show the line item of po -->
|
<!-- Table to show the line item of po -->
|
||||||
<div id="content" > </div>
|
|
||||||
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
|
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
|
||||||
<thead style="background-color:#ddf">
|
<thead style="background-color:#ddf">
|
||||||
<tr>
|
<tr>
|
||||||
@ -93,13 +94,102 @@ if(!empty($amountpaid))
|
|||||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>amountpaidsupplier" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Bank Debit Amount Paid Reports</b></p></h3></center>
|
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Bank Debit Amount Paid Reports
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</p></h3></center>
|
||||||
|
<center><h4 style="color:#5d0411"><span><?php echo $suppliername;?></span></h4></center>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="supplier" name="supplier" value="<?php echo $supplierid;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="suppliername" name="suppliername" value="<?php echo $suppliername;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
@ -124,34 +214,16 @@ if(!empty($amountpaid))
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3" >
|
|
||||||
<label for="from_date">
|
|
||||||
<?php echo 'Customer'; ?>
|
|
||||||
</label>
|
|
||||||
<select class="form-control" id="SupplierName" name="SupplierName">
|
|
||||||
<option value="">Select Supplier</option>
|
|
||||||
<?php
|
|
||||||
foreach($supplier as $gs):
|
|
||||||
|
|
||||||
{
|
|
||||||
print_r($gs->SupplierID);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2" style="margin-top:24px;">
|
<div class="col-md-2" style="margin-top:24px;">
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
value="View Report">
|
value="View Paid">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
@ -159,10 +231,11 @@ if(!empty($amountpaid))
|
|||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
|
<th>BankDate</th>
|
||||||
<th>PONO</th>
|
<th>PONO</th>
|
||||||
<th>IGR NO</th>
|
<th>IGR NO</th>
|
||||||
<th>IGRItemNo</th>
|
<!--<th>IGRItemNo</th>-->
|
||||||
<th>Supplier Name</th>
|
<!--<th>Supplier Name</th>-->
|
||||||
<th>Total PO Amount (₹)</th>
|
<th>Total PO Amount (₹)</th>
|
||||||
<!--<th>Advance PO Amount (₹)</th>-->
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
<th>Balance To Pay (₹)</th>
|
<th>Balance To Pay (₹)</th>
|
||||||
@ -177,13 +250,16 @@ if(!empty($amountpaid))
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
if(!empty($bankdebit)){
|
if(!empty($bankdebit)){
|
||||||
foreach($bankdebit as $ap)
|
foreach($bankdebit as $ap)
|
||||||
{
|
{
|
||||||
// $id=$ap->id;
|
$rate=$ap->Amountpaid;
|
||||||
|
// $id=$ap->id;
|
||||||
|
//print_r($ap);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -193,32 +269,39 @@ if(!empty($amountpaid))
|
|||||||
<input type="hidden" name="clearbal" id="clearbal<?php echo $i ?>" value="<?php echo $ap->Clearbalance; ?>"/>
|
<input type="hidden" name="clearbal" id="clearbal<?php echo $i ?>" value="<?php echo $ap->Clearbalance; ?>"/>
|
||||||
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->mid; ?>"/>
|
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->mid; ?>"/>
|
||||||
|
|
||||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->MaterialRcvdDate),'d-m-Y'); ?></span></td>
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->Podate),'d-m-Y'); ?></span></td>
|
||||||
<td align="left" id="pono<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></a></td>
|
<td align="left" id="bankdate<?php echo $i ?>"><span><?php echo date_format(date_create($ap->BankDate),'d-m-Y'); ?></span></td>
|
||||||
|
<td align="left" id="pono<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></td>
|
||||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||||
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $ap->IGRNO?></span></td>
|
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $ap->IGRNO?></span></td>
|
||||||
<td align="left" id="igritemno<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
<!--<td align="left" id="igritemno<?php echo $i ?>"><?php echo $ap->IGRLineItemNo?></span></a></td>-->
|
||||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>-->
|
||||||
<td align="left" id="tpoa<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
<td align="left" id="tpoa<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
||||||
<td align="left" id="btp<?php echo $i ?>"><span><?php echo $ap->Totalpoamount-$ap->Amountpaid?></span></td>
|
<td align="left" id="btp<?php echo $i ?>"><span><?php echo $ap->Totalpoamount-$ap->Amountpaid;?></span></td>
|
||||||
<td align="left" id="ap<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
|
<td align="left" id="ap<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($rate)?> <?php echo round($rate,2)?></span></td>
|
||||||
<?php
|
<?php
|
||||||
if($ap->file !='')
|
if($ap->igrfile !='')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrfile(<?php echo $i ?>)"></i></a> </td>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
else if($ap->Fpath !='')
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<td>N/A</td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if($ap->pofile !='')
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="pofile(<?php echo $i ?>)"></i></a> </td>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -228,22 +311,9 @@ if(!empty($amountpaid))
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
if($ap->FilePath=='')
|
|
||||||
{
|
?>
|
||||||
?>
|
|
||||||
<td>N/A</td>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<td>
|
|
||||||
<a data-toggle="tooltip" ><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> - Click here to Delete details" onclick="pono(<?php echo $i ?>)"></i> </a>
|
|
||||||
</td>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="podelete(<?php echo $i ?>)"></i> </a>
|
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="podelete(<?php echo $i ?>)"></i> </a>
|
||||||
</td>
|
</td>
|
||||||
@ -259,16 +329,39 @@ if(!empty($amountpaid))
|
|||||||
<?php
|
<?php
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
<!--<td> </td>
|
||||||
|
<td> </td>-->
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section></div>
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -285,37 +378,34 @@ if(!empty($amountpaid))
|
|||||||
<script>
|
<script>
|
||||||
function podelete(i)
|
function podelete(i)
|
||||||
{
|
{
|
||||||
|
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
|
|
||||||
|
|
||||||
var totalamount=$('#tpoa'+i).text();
|
var totalamount=$('#tpoa'+i).text();//totalpoamount
|
||||||
|
|
||||||
|
var paidamount=$('#ap'+i).text();//amountpaid
|
||||||
|
|
||||||
|
|
||||||
var paidamount=$('#ap'+i).text();//amount
|
|
||||||
|
|
||||||
var balancetopay=$('#btp'+i).text();
|
var balancetopay=$('#btp'+i).text();//balancetopay
|
||||||
|
|
||||||
|
var igrno=$('#igrno'+i).text();//igritemno
|
||||||
|
|
||||||
|
var pono=$('#pono'+i).text();//pono
|
||||||
|
|
||||||
|
var bankid=$('#bankingid'+i).val();//bankid
|
||||||
|
|
||||||
|
|
||||||
var Igritemno=$('#igritemno'+i).text();
|
|
||||||
|
|
||||||
|
|
||||||
var bankid=$('#bankingid'+i).val();
|
|
||||||
|
|
||||||
var mappingid=$('#mapid'+i).val();
|
var mappingid=$('#mapid'+i).val();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var bankingclear=$('#bankingbalclear'+i).val();
|
var bankingclear=$('#bankingbalclear'+i).val();
|
||||||
|
|
||||||
var clearedbalance=$('#clearbal'+i).val();
|
var clearedbalance=$('#clearbal'+i).val();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
$.ajax(
|
data:{mappingid:mappingid,Totalpoamount:totalamount,paidamount:paidamount,balancetopay:balancetopay,pono:pono,igrno:igrno,bankid:bankid,balancetobankingclear:bankingclear,clearbalance:clearedbalance},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
data:{mappingid:mappingid,Totalpoamount:totalamount,paidamount:paidamount,balancetopay:balancetopay,IGRItemNo:Igritemno,bankid:bankid,balancetobankingclear:bankingclear,clearbalance:clearedbalance},
|
|
||||||
type:"POST",
|
type:"POST",
|
||||||
url:"<?php echo base_url() ?>DeletePo",
|
url:"<?php echo base_url() ?>DeletePo",
|
||||||
success:function(data)
|
success:function(data)
|
||||||
@ -323,9 +413,9 @@ $.ajax(
|
|||||||
|
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
|
//$('#content').loader('hide');
|
||||||
|
|
||||||
|
window.location.href ="amountpaidsupplier";
|
||||||
window.location.href ="Bankingstatement";
|
|
||||||
//location.reload();
|
//location.reload();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -333,10 +423,85 @@ $.ajax(
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function pono(i)
|
function igrfile(i)
|
||||||
{
|
{
|
||||||
var igrno=$('#igrno'+i).text();
|
var igrno=$('#igrno'+i).text();
|
||||||
var pono=$('#pono'+i).text();
|
var pono=$('#pono'+i).text();
|
||||||
|
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url()?>cashbook/IGRFilelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
var FilePath ='';
|
||||||
|
var Filename = '';
|
||||||
|
var PONO ='';
|
||||||
|
var BillNO ='';
|
||||||
|
i=0;
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
|
if(item.file == null)
|
||||||
|
{ if(item.Remarks ==null)
|
||||||
|
{
|
||||||
|
//alert()
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
Filename =item.FilePath;
|
||||||
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
|
}else{
|
||||||
|
Filename ="BillDetails";
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
FilePath = item.FilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
Filename = item.file;
|
||||||
|
PONO =item.pono;
|
||||||
|
BillNO = '-';
|
||||||
|
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Filename != null)
|
||||||
|
{
|
||||||
|
i=i+1;
|
||||||
|
i=i-1;
|
||||||
|
trHTML += '<tr id='+i+'>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||||
|
'<td>' + PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
function pofile(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
|
||||||
$("#Fileshow").modal('show');
|
$("#Fileshow").modal('show');
|
||||||
$.ajax(
|
$.ajax(
|
||||||
|
|
||||||
@ -406,7 +571,7 @@ $( function() {
|
|||||||
|
|
||||||
})
|
})
|
||||||
.on( "change", function() {
|
.on( "change", function() {
|
||||||
to.datepicker("option", "minDate", getDate( this ) );
|
to.datepicker("option", "minDate", getDate( this ));
|
||||||
}),
|
}),
|
||||||
to = $( "#max-date" ).datepicker({
|
to = $( "#max-date" ).datepicker({
|
||||||
dateFormat: "dd-mm-yy",
|
dateFormat: "dd-mm-yy",
|
||||||
@ -432,85 +597,12 @@ $( function() {
|
|||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
function igrno(i)
|
|
||||||
{
|
|
||||||
var igrno=$('#igrno'+i).text();
|
|
||||||
var pono =$('#pono'+i).text();
|
|
||||||
$("#Fileshow").modal('show');
|
|
||||||
$.ajax(
|
|
||||||
|
|
||||||
{
|
|
||||||
data:{igrno:igrno,pono:pono},
|
|
||||||
type:"POST",
|
|
||||||
url:"<?php echo base_url() ?>cashbook/IGRFilelist",
|
|
||||||
success:function(data)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
var trHTML = '';
|
|
||||||
var FilePath ='';
|
|
||||||
var Filename = '';
|
|
||||||
var PONO ='';
|
|
||||||
var BillNO ='';
|
|
||||||
i=0;
|
|
||||||
$.each($.parseJSON(data),function (i, item) {
|
|
||||||
|
|
||||||
if(item.file == null)
|
|
||||||
{
|
|
||||||
// if(item.Remarks ==null)
|
|
||||||
// {
|
|
||||||
//alert()
|
|
||||||
PONO =item.PONO;
|
|
||||||
BillNO =item.BillNo;
|
|
||||||
Filename =item.FilePath;
|
|
||||||
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// Filename ="BillDetails";
|
|
||||||
// PONO =item.PONO;
|
|
||||||
// BillNO =item.BillNo;
|
|
||||||
// FilePath = item.FilePath;
|
|
||||||
// }
|
|
||||||
|
|
||||||
}else{
|
|
||||||
Filename = item.file;
|
|
||||||
PONO =item.pono;
|
|
||||||
BillNO = '-';
|
|
||||||
|
|
||||||
FilePath =item.file;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(Filename != null)
|
|
||||||
{
|
|
||||||
i=i+1;
|
|
||||||
i=i-1;
|
|
||||||
trHTML += '<tr id='+i+'>' +
|
|
||||||
'<td align="right">' + i + '</td>' +
|
|
||||||
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
|
||||||
'<td>' + PONO+ '</td>' +
|
|
||||||
|
|
||||||
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
|
||||||
|
|
||||||
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
|
||||||
'</tr>';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#tbleAppend1").empty();
|
|
||||||
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ foreach($financialyear as $item)
|
|||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- <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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -62,14 +62,118 @@ foreach($financialyear as $item)
|
|||||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
<!-- /.box-header -->
|
<!-- /.box-header -->
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>Bankamountreceived" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b>Bank Credit Amount Received Report</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Amount Received Reports <?php if(!empty($fa)){
|
||||||
<div class="box-body">
|
echo $fa;
|
||||||
|
}
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<center><h4 style="color:#5d0411"><span><?php echo $clientname;?></span></h4></center>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="customer" name="customer" value="<?php echo $clientname;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="clientid" name="clientid" value="<?php echo $clientid;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -82,7 +186,7 @@ foreach($financialyear as $item)
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label for="to_date">
|
<label for="to_date">
|
||||||
<?php echo 'To Date'; ?>
|
<?php echo 'To Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -90,35 +194,45 @@ foreach($financialyear as $item)
|
|||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
<span class="input-group-addon">
|
<span class="input-group-addon">
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3" >
|
<!--<div class="col-md-2" >
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'Customer'; ?>
|
<?php echo 'Customer'; ?>
|
||||||
</label>
|
</label>
|
||||||
<select class="form-control" id="Customer" name="Customer">
|
<select class="form-control" id="CustomerName" name="CustomerName">
|
||||||
<option value="">Select Customer</option>
|
<option value="">Select Customer</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($getcustomer as $gs):
|
foreach($getcustomer as $gc):
|
||||||
|
|
||||||
{?>
|
{
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
<option value="<?php echo $gs->client_id;?>"><?php echo $gs->client_name ; ?></option>
|
<option value="<?php echo $gc->client_id;?>"><?php echo $gc->client_name ;?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>-->
|
||||||
<div class="col-md-2" style="margin-top:24px;">
|
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit"
|
|
||||||
value="View Report">
|
|
||||||
|
|
||||||
</div>
|
<div class="col-md-2" style="margin-top:23px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Received" >
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
@ -126,8 +240,9 @@ foreach($financialyear as $item)
|
|||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
|
<th>BankDate</th>
|
||||||
<th>INVOICENO</th>
|
<th>INVOICENO</th>
|
||||||
<th>Supplier Name</th>
|
<!--<th>Supplier Name</th>-->
|
||||||
<th>Total Invoice Amount (₹)</th>
|
<th>Total Invoice Amount (₹)</th>
|
||||||
<!--<th>Advance PO Amount (₹)</th>-->
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
<th>Balance To Received (₹)</th>
|
<th>Balance To Received (₹)</th>
|
||||||
@ -140,11 +255,12 @@ foreach($financialyear as $item)
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
if(!empty($bankcredit)){
|
if(!empty($amountreceived)){
|
||||||
foreach($bankcredit as $ap)
|
foreach($amountreceived as $ap)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -159,14 +275,15 @@ foreach($financialyear as $item)
|
|||||||
<!-- <td align="left" id="date<?php echo $i ?>"><span><?php echo $ap->indate?></span></td> -->
|
<!-- <td align="left" id="date<?php echo $i ?>"><span><?php echo $ap->indate?></span></td> -->
|
||||||
|
|
||||||
<td align="left"><?php $Pdt = new DateTime($ap->indate);$Created_Date = $Pdt->format('d-m-Y'); echo $Created_Date?></td>
|
<td align="left"><?php $Pdt = new DateTime($ap->indate);$Created_Date = $Pdt->format('d-m-Y'); echo $Created_Date?></td>
|
||||||
|
<td align="left" id="bankdate<?php echo $i ?>"><span><?php echo date_format(date_create($ap->BankDate),'d-m-Y'); ?></span></td>
|
||||||
|
|
||||||
<td align="left" id="invno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $ap->invoiceno;?>"><span><?php echo $ap->invoiceno?></span></a></td>
|
<td align="left" id="invno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $ap->invoiceno;?>"><span><?php echo $ap->invoiceno?></span></a></td>
|
||||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||||
|
|
||||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>-->
|
||||||
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||||
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount- $ap->amountreceived?></span></td>
|
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount- $ap->amountreceived?></span></td>
|
||||||
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php echo $ap->amountreceived?></span></td>
|
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round( $ap->amountreceived)?><?php echo $ap->amountreceived?></span></td>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
||||||
</td>
|
</td>
|
||||||
@ -186,40 +303,21 @@ foreach($financialyear as $item)
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<!--<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;"><strong>Total</strong></td>
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
|
||||||
<td style="text-align:right"><strong>
|
|
||||||
<?php
|
|
||||||
{
|
|
||||||
echo number_format($ti,2,'.','');
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</strong>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right"><strong>
|
|
||||||
<?php
|
|
||||||
{
|
|
||||||
echo number_format($tvt,2,'.','');
|
|
||||||
|
|
||||||
}
|
<td class="amount"><strong>
|
||||||
?>
|
<?php echo $tot_amount; ?>
|
||||||
</strong>
|
</strong></td>
|
||||||
</td>
|
<td> </td>
|
||||||
|
|
||||||
<td> </td>
|
</tr>
|
||||||
<td> </td>
|
</tfoot>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tfoot>-->
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -237,86 +335,16 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <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://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function invoice(i)
|
|
||||||
{
|
|
||||||
|
|
||||||
$('#content').loader('show');
|
|
||||||
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
|
||||||
var balancetoreceived=$('#balancetoreceived'+i).text();
|
|
||||||
var invoiceno=$('#invno'+i).text();
|
|
||||||
var amountreceived=$('#amountreceived'+i).text();
|
|
||||||
var bankid=$('#bankid'+i).val();
|
|
||||||
var mappingid=$('#mapid'+i).val();
|
|
||||||
|
|
||||||
var bankingclear=$('#ccbalance'+i).val();
|
|
||||||
var bankingbalclear=$('#btc'+i).val();
|
|
||||||
|
|
||||||
$.ajax(
|
|
||||||
|
|
||||||
{
|
|
||||||
data:{mappingid:mappingid,invoiceno:invoiceno,bankid:bankid,amountreceived:amountreceived,bankingclear:bankingclear,bankingbalclear:bankingbalclear,totinvoiceamount:totinvoiceamount,balancetoreceived:balancetoreceived},
|
|
||||||
type:"POST",
|
|
||||||
url:"<?php echo base_url() ?>DeleteInvoice",
|
|
||||||
success:function(data)
|
|
||||||
{
|
|
||||||
|
|
||||||
if(data)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
window.location.href ="Bankingstatement";
|
|
||||||
//location.reload();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(document).ready(function() {
|
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
||||||
|
|
||||||
table = $('#req').DataTable( {
|
|
||||||
|
|
||||||
"aaSorting": [[ 0, "desc" ]],
|
|
||||||
"info": true,
|
|
||||||
|
|
||||||
"autoWidth": false,
|
|
||||||
orderCellsTop: true,
|
|
||||||
|
|
||||||
"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'
|
|
||||||
]
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
|
|
||||||
$( function() {
|
$( function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
from = $( "#min-date" )
|
from = $( "#min-date" )
|
||||||
@ -354,8 +382,80 @@ $( function() {
|
|||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
function invoice(i)
|
||||||
|
{
|
||||||
|
|
||||||
|
$('#content').loader('show');
|
||||||
|
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
||||||
|
|
||||||
|
var balancetoreceived=$('#balancetoreceived'+i).text();
|
||||||
|
var invoiceno=$('#invno'+i).text();
|
||||||
|
var amountreceived=$('#amountreceived'+i).text();
|
||||||
|
|
||||||
|
var bankid=$('#bankid'+i).val();
|
||||||
|
var mappingid=$('#mapid'+i).val();
|
||||||
|
|
||||||
|
var bankingclear=$('#ccbalance'+i).val();
|
||||||
|
var bankingbalclear=$('#btc'+i).val();
|
||||||
|
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{mappingid:mappingid,invoiceno:invoiceno,bankid:bankid,amountreceived:amountreceived,bankingclear:bankingclear,bankingbalclear:bankingbalclear,totinvoiceamount:totinvoiceamount,balancetoreceived:balancetoreceived},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>DeleteInvoice",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
window.location.href ="Bankingstatement";
|
||||||
|
//location.reload();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
|
||||||
|
table = $('#req').DataTable( {
|
||||||
|
|
||||||
|
"aaSorting": [[ 0, "desc" ]],
|
||||||
|
"info": true,
|
||||||
|
|
||||||
|
"autoWidth": false,
|
||||||
|
orderCellsTop: true,
|
||||||
|
|
||||||
|
"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: $('h4').text(),
|
||||||
|
title: 'Amount Received Reports',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
572
application/views/bankamountunpaid.php
Normal file
572
application/views/bankamountunpaid.php
Normal file
@ -0,0 +1,572 @@
|
|||||||
|
<?php
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="modal fade" id="Fileshow" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<!-- Modal. content-->
|
||||||
|
<form>
|
||||||
|
<div class="modal-content" style="width:800px;">
|
||||||
|
|
||||||
|
<!-- Table to show the line item of po -->
|
||||||
|
<div id="content" > </div>
|
||||||
|
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
|
||||||
|
<thead style="background-color:#ddf">
|
||||||
|
<tr>
|
||||||
|
<th>SNo</th>
|
||||||
|
<th>BillNO</th>
|
||||||
|
<th>PONO</th>
|
||||||
|
<th>FileName</th>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="tbleAppend1">
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info" id="content">
|
||||||
|
<br>
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>amountunpaid" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Un Paid Reports(<?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>)</p></h3></center>
|
||||||
|
<center><h4 style="color:#5d0411"><span><?php echo $t->SupplierName?></span></h4></center>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if(!empty($bankunpaid)){
|
||||||
|
foreach($bankunpaid as $t)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<center><h4 style="color:#5d0411"><span><?php echo $t->supplier_name?></span></h4></center>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="supplier" name="supplier" value="<?php echo $suppliername;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Payable">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<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>Invoice No</th>
|
||||||
|
<!--delivery challandate /igrmaster -->
|
||||||
|
<th>PONO</th>
|
||||||
|
<th>IGRNO</th>
|
||||||
|
<th>IGR Created Date</th><!-- IGRCreatedDate /igrmaster -->
|
||||||
|
<th>Material Received Date</th><!--MaterialReceivedDate -->
|
||||||
|
|
||||||
|
<!--<th>IGR Item No</th>-->
|
||||||
|
<th>PO Amount (₹)</th>
|
||||||
|
<th style="display:none;">IGR File</th>
|
||||||
|
<th style="display:none;">PO File</th>
|
||||||
|
<!--<th>Over Due Days</th>DATEDIFF(CURDATE(),T_IGR_Master.MaterialReceivedDate)as days-->
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$i=1;
|
||||||
|
$tot_amount = 0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankunpaid)){
|
||||||
|
foreach($bankunpaid as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
$status=$t->Paymentstatus;
|
||||||
|
$balancetopay=$t->Balancetopay;
|
||||||
|
$ReceivedQuantity=$t->ReceivedQuantity;
|
||||||
|
$rate=$t->total;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if($t->DeliveryChellanOrInvoiceNo=='')
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<td>-</td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<td align="left" id="delivey"><span><?php echo $t->DeliveryChellanOrInvoiceNo?></span></a></td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td align="left" id="pono<?php echo $i ?>"><span><?php echo $t->pono?></span></a></td>
|
||||||
|
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $t->igrn?></span></a></td>
|
||||||
|
<td align="left" id="Ddate<?php echo $i ?>"><span><?php echo date_format(date_create($t->created_date),'d-m-Y');?></span></td>
|
||||||
|
<td align="left" id="Ddate<?php echo $i ?>"><span><?php echo date_format(date_create($t->materialrcvddate),'d-m-Y');?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<td align="left" id="igrlineitem<?php echo $i ?>" ><span><?php echo $t->IGRItemNo?></span></td>-->
|
||||||
|
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><?php $tot_amount=$tot_amount+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||||
|
<?php
|
||||||
|
if($t->iwFpath !='')
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<td style="display:none;"> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrfile(<?php echo $i ?>)"></i></a> </td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<td style="display:none;" >NA</td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
if($t->poFilePath !='')
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<td style="display:none;" > <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="pofile(<?php echo $i ?>)"></i></a> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
} else
|
||||||
|
{ ?>
|
||||||
|
<td style="display:none;" >N/A</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<td align="left" id="tov<?php echo $i ?>" ><span><?php echo $t->days?></span></td>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
|
||||||
|
<td style="display:none;" > </td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.box -->
|
||||||
|
</div><!-- /.col -->
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function pofile(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/filelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
i=i+1;
|
||||||
|
trHTML += '<tr>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
|
||||||
|
'<td>' + item.BillNo+ '</td>' +
|
||||||
|
'<td>' + item.PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td>' +item.FilePath+"<?php echo base_url().'uploads/BillFiles/'?>"> +'</td>'
|
||||||
|
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
function igrfile(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono=$('#pono'+i).text();
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url()?>cashbook/IGRFilelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
var FilePath ='';
|
||||||
|
var Filename = '';
|
||||||
|
var PONO ='';
|
||||||
|
var BillNO ='';
|
||||||
|
i=0;
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
|
if(item.file == null)
|
||||||
|
{ if(item.Remarks ==null)
|
||||||
|
{
|
||||||
|
//alert()
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
Filename =item.FilePath;
|
||||||
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
|
}else{
|
||||||
|
Filename ="BillDetails";
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
FilePath = item.FilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
Filename = item.file;
|
||||||
|
PONO =item.pono;
|
||||||
|
BillNO = '-';
|
||||||
|
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Filename != null)
|
||||||
|
{
|
||||||
|
i=i+1;
|
||||||
|
i=i-1;
|
||||||
|
trHTML += '<tr id='+i+'>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||||
|
'<td>' + PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
/** jquery on ready for DataPicker. */
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
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: $('h4').text(),
|
||||||
|
title: 'Unpaid Purchase Order Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );/** ready closed */
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
306
application/views/bankamountunreceived.php
Normal file
306
application/views/bankamountunreceived.php
Normal file
@ -0,0 +1,306 @@
|
|||||||
|
<?php
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<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="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>bankunreceivedsupp" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">Receivable Invoice Report(<?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>)</p></h3></center>
|
||||||
|
<?php
|
||||||
|
if(!empty($amountunreceived)){
|
||||||
|
foreach($amountunreceived as $t)
|
||||||
|
|
||||||
|
{
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<center><h4 style="color:#3c8dbc"><?php echo $t->client_name?></h4></center>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="client" name="client" value="<?php echo $client;?>"maxlength="250"></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;"> -->
|
||||||
|
|
||||||
|
<input type="hidden" id="debitamount" value="<?php echo $cash; ?>" placeholder="Debit Amount" readonly>
|
||||||
|
|
||||||
|
<input type="hidden" id="bankid" value="<?php echo $bankid; ?>" placeholder="Bank Id" readonly>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Receivable">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<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>Date</th>
|
||||||
|
<th>Invoice Number</th>
|
||||||
|
<!--<th>Customer Name</th>-->
|
||||||
|
<th>Invoice Amount (₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountunreceived)){
|
||||||
|
foreach($amountunreceived as $t)
|
||||||
|
|
||||||
|
{
|
||||||
|
//print_r($bankinvoicedata);
|
||||||
|
$status=$t->Paymentstatus;
|
||||||
|
$balancetopay=$t->Balancetopay;
|
||||||
|
if($status !='ST057')
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
<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 ?>"><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 $tot_amount=$tot_amount+$t->invoice_total?><?php echo $t->invoice_total?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div><!-- / .box-body closed -->
|
||||||
|
</div><!-- /.box box-info closed-->
|
||||||
|
|
||||||
|
</div><!--/ .col (col-md-12)-->
|
||||||
|
|
||||||
|
</div><!-- /. 1st row closed -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
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: 'Unpaid Purchase Order Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );/** ready closed */
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
@ -26,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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -24,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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|||||||
484
application/views/bankcustomerledger.php
Normal file
484
application/views/bankcustomerledger.php
Normal file
@ -0,0 +1,484 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
//echo $suppliername;
|
||||||
|
foreach($openingbalance as $balance)
|
||||||
|
{
|
||||||
|
$openbalance=$balance->payment;
|
||||||
|
}
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
|
||||||
|
} ?>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
p {
|
||||||
|
font-family: verdana;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div id="container"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class ="content">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info">
|
||||||
|
<div id="content" > </div>
|
||||||
|
<div class="modal fade" id="Fileshow" role="dialog">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<!-- Modal. content-->
|
||||||
|
<form>
|
||||||
|
|
||||||
|
<div class="modal-content" style="width:800px;">
|
||||||
|
<!-- Table to show the line item of po -->
|
||||||
|
|
||||||
|
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
|
||||||
|
<thead style="background-color:#ddf">
|
||||||
|
<tr>
|
||||||
|
<th>SNo</th>
|
||||||
|
<th>BillNO</th>
|
||||||
|
<th>PONO</th>
|
||||||
|
<th>FileName</th>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="tbleAppend1">
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--<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()); ?>">
|
||||||
|
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Customer Ledger
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</p></h3></center>
|
||||||
|
<?php
|
||||||
|
foreach($customerledger as $cl)
|
||||||
|
{
|
||||||
|
$clientname=$cl->client_name;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<center><h4 style="color:#3c8dbc"><span><?php echo $clientname;?></span></h4></center>
|
||||||
|
<p><?php echo $tot_amount; ?></p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="supplier" name="supplier" value="<?php echo $supplierid;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="suppliername" name="suppliername" value="<?php echo $suppliername;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2" >
|
||||||
|
<label for="customer">
|
||||||
|
<?php echo 'Supplier'; ?>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" id="Customer" name="Customer">
|
||||||
|
<option value="">Select Supplier</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-2" style="margin-top:24px;">
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
|
value="View CusLedger">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$i=1;
|
||||||
|
$amount_receive=0;
|
||||||
|
$total_invoice=0;
|
||||||
|
$balance_due=0;
|
||||||
|
|
||||||
|
if(!empty($customerledger)){
|
||||||
|
foreach($customerledger as $cls)
|
||||||
|
{
|
||||||
|
$totalinvoice=$cls->amount;
|
||||||
|
$total_invoice=$total_invoice+$totalinvoice;
|
||||||
|
$amountreceived=$cls->payment;
|
||||||
|
$amount_receive= $amount_receive+$amountreceived;
|
||||||
|
$balance_due=$total_invoice-$amount_receive;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
?>
|
||||||
|
<p style="color:green" "font-size:22px";><strong>Opening Balance</strong> : <?php echo $openbalance ?>(₹)</p>
|
||||||
|
<p style="color:green";><strong>Invoiced Amount </strong>: <?php echo $total_invoice ?>(₹)</p>
|
||||||
|
<p style="color:green";><strong>Amount Paid </strong> : <?php echo $amount_receive?>(₹)</p>
|
||||||
|
<!--<p style="color:green";><strong>Balance Due </strong> : <?php echo $balance_due?>(₹)</p>-->
|
||||||
|
<?php
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Date</th>
|
||||||
|
|
||||||
|
<th>Transactions</th>
|
||||||
|
<th>Document No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Payments(₹)</th>
|
||||||
|
<th>Balance (₹)</th>
|
||||||
|
<!--<th>Print</th>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amountreceived=0;
|
||||||
|
$tot_amount=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($customerledger)){
|
||||||
|
foreach($customerledger as $cl)
|
||||||
|
{
|
||||||
|
$total=$cl->amount;
|
||||||
|
$payments=$cl->payment;
|
||||||
|
$amountreceived=$cl->amountreceived;
|
||||||
|
$Balance=$total-$amountreceived;
|
||||||
|
$invoice_status_idcheck=$cl->invoice_status_id;
|
||||||
|
// $id=$ap->id;
|
||||||
|
//print_r($ap);
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
<input type="hidden" name="mapid" id="mapid<?php echo $i ?>" value="<?php echo $ap->id; ?>"/>
|
||||||
|
<input type="hidden" name="bankingbalclear" id="bankingbalclear<?php echo $i ?>" value="<?php echo $ap->Balancetocleared; ?>"/>
|
||||||
|
<input type="hidden" name="clearbal" id="clearbal<?php echo $i ?>" value="<?php echo $ap->Clearbalance; ?>"/>
|
||||||
|
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->mid; ?>"/>
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="bankdate<?php echo $i ?>"><span><?php echo date_format(date_create($cl->date),'d-m-Y'); ?></span></td>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if($invoice_status_idcheck==2)
|
||||||
|
{
|
||||||
|
$invoice_status_id='Invoice';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$invoice_status_id=$cl->invoice_status_id;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $invoice_status_id?></span></td>
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $cl->id?></span></td>
|
||||||
|
|
||||||
|
<td align="left" id="tpoa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($total)?> <?php echo $total;?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="btp<?php echo $i ?>"><span><?php $tot_amountreceived=$tot_amountreceived+round($payments)?> <?php echo round($payments,2);?></span></td>
|
||||||
|
<td align="left" id="ap<?php echo $i ?>"><span><?php $tot_balance=$tot_balance+round($Balance)?> <?php echo round($Balance,2)?></span></td>
|
||||||
|
|
||||||
|
<!--<td>
|
||||||
|
<a data-toggle="tooltip" ><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="podelete(<?php echo $i ?>)"></i> </a>
|
||||||
|
</td> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Balance Due</strong></td>
|
||||||
|
<!--<td> </td>-->
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount;?>
|
||||||
|
</strong></td>
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amountreceived; ?>
|
||||||
|
</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ));
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
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: $('h4').text(),
|
||||||
|
title: 'Customer Ledger',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -24,8 +24,6 @@ foreach($financialyear as $item)
|
|||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
|
||||||
border: 2px solid #5d0411 !important;}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -35,24 +33,24 @@ foreach($financialyear as $item)
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE:. LATEST ORDERS -->
|
||||||
<div class="box box-info" id="content">
|
<div class="box box-info" id="content">
|
||||||
<br>
|
<br>
|
||||||
<div class="col-md-1 col-md-offset-11">
|
<div class="col-md-1 col-md-offset-11">
|
||||||
<a href="<?php base_url() ?>Bankingstatement" class="btn btn-primary" value="Back"/>Back</a>
|
<a href="<?php base_url() ?>Bankingstatement" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
</div>
|
</div>
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo $pageTitle." - View Purchase " ?> </b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>View Purchase </b></p></h3></center>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th style="text-align:center">Payment ID</th>
|
<th>Payment ID</th>
|
||||||
<th style="text-align:center">Payment Mode</th>
|
<th>Payment Mode</th>
|
||||||
<th style="text-align:center">Payment Amount (₹)</th>
|
<th>Payment Amount (₹)</th>
|
||||||
<th style="text-align:center">Payment date </th>
|
<th>Payment date </th>
|
||||||
<th style="text-align:center">Narration </th>
|
<th>Narration </th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -60,10 +58,10 @@ foreach($financialyear as $item)
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><p style="margin-left:25px;" id="bid"></p></td>
|
<td><p style="margin-left:25px;" id="bid"></p></td>
|
||||||
<td style="text-align:center">Bank</td>
|
<td>Bank</td>
|
||||||
<td><p style="text-align:center" id="bamount" ></p></td>
|
<td><p style="margin-left:25px;" id="bamount" ></p></td>
|
||||||
<td><p style="margin-left:25px;" id="bdate"></p></td>
|
<td><p style="margin-left:25px;" id="bdate"></p></td>
|
||||||
<td><p style="text-align:center" id="narration"></p></td>
|
<td><p style="margin-left:25px;" id="narration"></p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -83,7 +81,17 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
@ -117,7 +125,7 @@ foreach($financialyear as $item)
|
|||||||
<option value="">Select Supplier</option>
|
<option value="">Select Supplier</option>
|
||||||
<?php foreach($getsupplier as $gs):
|
<?php foreach($getsupplier as $gs):
|
||||||
{?>
|
{?>
|
||||||
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ; ?></option>
|
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ;?></option>
|
||||||
<?php } endforeach; ?>
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
@ -145,12 +153,14 @@ foreach($financialyear as $item)
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Select</th>
|
<th>Select</th>
|
||||||
<th>Date</th>
|
<th>IGR Created Date</th>
|
||||||
|
<th>Material Received Date</th>
|
||||||
<th>PONO</th>
|
<th>PONO</th>
|
||||||
<th>IGRNO</th>
|
<th>IGRNO</th>
|
||||||
<th>IGR Item No</th>
|
<!--<th>IGR Item No</th>-->
|
||||||
<th>Supplier Name</th>
|
<th>Supplier Name</th>
|
||||||
<th>IGR Amount (₹)</th>
|
<th style="display:none;">Supplier ID</th>
|
||||||
|
<th>PO Amount (₹)</th>
|
||||||
<th>Balance payable (₹)</th>
|
<th>Balance payable (₹)</th>
|
||||||
<th>Amount Paid (₹)</th>
|
<th>Amount Paid (₹)</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -160,36 +170,38 @@ foreach($financialyear as $item)
|
|||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
if(!empty($bankdepit)){
|
if(!empty($bankdepitpaid)){
|
||||||
foreach($bankdepit as $t)
|
foreach($bankdepitpaid as $t)
|
||||||
{
|
{
|
||||||
|
|
||||||
$status=$t->Paymentstatus;
|
$status=$t->Paymentstatus;
|
||||||
$balancetopay=$t->Balancetopay;
|
$balancetopay=$t->Balancetopay;
|
||||||
$ReceivedQuantity=$t->ReceivedQuantity;
|
$ReceivedQuantity=$t->ReceivedQuantity;
|
||||||
$rate=$t->total;
|
$rate=$t->total;
|
||||||
|
$Amountpaid=$t->Amountpaid;
|
||||||
|
//$rate=$t->TotalOrderValue;
|
||||||
if($status !='ST057')
|
if($status !='ST057')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td data-name="sell"><input type="checkbox" class="checkboxcheckbox" onchange="GetPayment(<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>";></td>
|
<td data-name="sell"><input type="checkbox" class="checkboxcheckbox" onchange="GetPayment(<?php echo $i ?>) "id="checkboxcheckbox<?php echo $i ?>" name="checkbox<?php echo $i ?>";></td>
|
||||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->CreatedDate),'d-m-Y');?></span></td>
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->created_date),'d-m-Y');?></span></td>
|
||||||
<td align="left" id="pono<?php echo $i ?>"><span><?php echo $t->PONO?></span></td>
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->materialrcvddate),'d-m-Y');?></span></td>
|
||||||
<td align="left" id="igrno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $t->IGRItemNo;?>"><span><?php echo $t->IGRNO?></span></a></td>
|
<td align="left" id="pono<?php echo $i ?>"><span><?php echo $t->pono?></span></td>
|
||||||
<td align="left" id="igrlineitem<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $t->IGRItemNo;?>"><span><?php echo $t->IGRItemNo?></span></a></td>
|
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $t->igrn?></span></td>
|
||||||
<td align="left" id="sn<?php echo $i ?>" ><span><?php echo $t->SupplierName?></span></td>
|
<!--<td align="left" id="igrlineitem<?php echo $i ?>"><span><?php echo trim($t->IGRItemNo)?></span></td>-->
|
||||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php echo $rate?></span></td>
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $t->supplier_name?></span></td>
|
||||||
<td align="left" id="qw<?php echo $i ?>" ><span><?php echo ($rate-$t->Amountpaid)?></span></td>
|
<td style="display:none;" align="left" id="sid<?php echo $i ?>"><span><?php echo $t->sid?></span></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php echo round($rate,2)?></span></td>
|
||||||
|
<td align="left" id="qw<?php echo $i ?>" ><span><?php echo round($rate-$t->Amountpaid,2)?></span></td>
|
||||||
<td data-name="sel"><input type="text" onkeypress="return isNumberKey(event)" onchange="GetAmount(<?php echo $i ?>)" id="invoicepaymet<?php echo $i ?>"></td>
|
<td data-name="sel"><input type="text" onkeypress="return isNumberKey(event)" onchange="GetAmount(<?php echo $i ?>)" id="invoicepaymet<?php echo $i ?>"></td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
@ -212,25 +224,27 @@ foreach($financialyear as $item)
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="col-md-2 col-md-offset-10">
|
<div class="col-md-2 col-md-offset-10">
|
||||||
<a style="float:right;" class="btn btn-success ajax-loader" ID="Save" onclick="Save()" > <span class="bold">Save</span></a>
|
<a style="float:right;" class="btn btn-success ajax-loader" ID="Save" onclick="Save()" ><span class="bold">Save</span></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.box -->
|
</div><!-- /.box -->
|
||||||
</div><!-- /.col -->
|
</div><!-- /.col -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-12" id="HideDateDiv"></div>
|
<div class="col-md-12" id="HideDateDiv"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="HidePONODiv"></div>
|
<div class="col-md-12" id="HidePONODiv"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="HideIGRDiv"></div>
|
<div class="col-md-12" id="HideIGRDiv"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="HideIGRLineItem"></div>
|
<!--<div class="col-md-12" id="HideIGRLineItem"></div>-->
|
||||||
|
|
||||||
<div class="col-md-12" id="HideSuppDiv"></div>
|
<div class="col-md-12" id="HideSuppDiv"></div>
|
||||||
|
|
||||||
|
<div class="col-md-12" id="HideSuppidDiv"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="aa1"></div>
|
<div class="col-md-12" id="aa1"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="HideTtlPoAmtDiv"></div>
|
<div class="col-md-12" id="HideTtlPoAmtDiv"></div>
|
||||||
@ -263,8 +277,7 @@ foreach($financialyear as $item)
|
|||||||
var cashdate=localStorage.getItem('cddate');
|
var cashdate=localStorage.getItem('cddate');
|
||||||
var narration= localStorage.getItem('narr');
|
var narration= localStorage.getItem('narr');
|
||||||
$('#debitamount').val(localStorage.getItem('test'));
|
$('#debitamount').val(localStorage.getItem('test'));
|
||||||
|
document.getElementById("bamount").innerHTML=amount;
|
||||||
document.getElementById("bamount").innerHTML=amount;
|
|
||||||
document.getElementById("bdate").innerHTML=cashdate;
|
document.getElementById("bdate").innerHTML=cashdate;
|
||||||
document.getElementById("narration").innerHTML=narration;
|
document.getElementById("narration").innerHTML=narration;
|
||||||
|
|
||||||
@ -276,8 +289,7 @@ foreach($financialyear as $item)
|
|||||||
var res2 = value.split('-');
|
var res2 = value.split('-');
|
||||||
var bid=res2[0];
|
var bid=res2[0];
|
||||||
var bam=res2[1];
|
var bam=res2[1];
|
||||||
|
$('#bankid').val(bid);
|
||||||
$('#bankid').val(bid);
|
|
||||||
document.getElementById("bid").innerHTML=bid;
|
document.getElementById("bid").innerHTML=bid;
|
||||||
});/** foreach closed */
|
});/** foreach closed */
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
@ -308,7 +320,6 @@ var row = 0;
|
|||||||
|
|
||||||
function GetPayment(i)
|
function GetPayment(i)
|
||||||
{
|
{
|
||||||
|
|
||||||
var bankdebitamount=$('#debitamount').val();
|
var bankdebitamount=$('#debitamount').val();
|
||||||
var totalvalue=$('#addvalue').val();
|
var totalvalue=$('#addvalue').val();
|
||||||
var balanceamount=bankdebitamount-totalvalue;
|
var balanceamount=bankdebitamount-totalvalue;
|
||||||
@ -316,7 +327,7 @@ function GetPayment(i)
|
|||||||
var x = document.getElementById('checkboxcheckbox'+i).checked;
|
var x = document.getElementById('checkboxcheckbox'+i).checked;
|
||||||
|
|
||||||
var amount= parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val())
|
var amount= parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val())
|
||||||
|
|
||||||
var negative=0;
|
var negative=0;
|
||||||
if(amount<0)
|
if(amount<0)
|
||||||
{
|
{
|
||||||
@ -328,17 +339,25 @@ function GetPayment(i)
|
|||||||
|
|
||||||
if(x==true)
|
if(x==true)
|
||||||
{
|
{
|
||||||
|
|
||||||
row = parseInt(row)+1;
|
row = parseInt(row)+1;
|
||||||
$('#Rowid').val(row);
|
$('#Rowid').val(row);
|
||||||
var date= document.getElementById ( "date"+i ).innerText;//value taken from table, col name : date
|
var date= document.getElementById ("date"+i).innerText;//value taken from table, col name : date
|
||||||
var pono =document.getElementById ( "pono"+i ).innerText;//value taken from table, col name : purchase order no
|
|
||||||
var igrno =document.getElementById ( "igrno"+i ).innerText;
|
var pono1 =document.getElementById ("pono"+i).innerText;//value taken from table, col name : purchase
|
||||||
var igrlineitem=document.getElementById ( "igrlineitem"+i ).innerText;
|
var pono=pono1.trim();
|
||||||
var supname =document.getElementById ("sn"+i ).innerText;//value taken from table col name : suppliername
|
var igrno1 =document.getElementById ("igrno"+i).innerText;
|
||||||
|
var igrno=igrno1.trim();
|
||||||
|
// var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
|
||||||
|
// var igrlineitem=igrlineitem1.trim();
|
||||||
|
|
||||||
|
var supname =document.getElementById ("sn"+i).innerText;//value taken from table col name : suppliername
|
||||||
|
var supid =document.getElementById ("sid"+i ).innerText;
|
||||||
var totalordervalue =document.getElementById ("tov"+i ).innerText;//value taken from table col name : total po amount
|
var totalordervalue =document.getElementById ("tov"+i ).innerText;//value taken from table col name : total po amount
|
||||||
var invoicepayment =document.getElementById ( "qw"+i ).innerText;//value taken from table col name : Balance to pay
|
var invoicepayment1 =document.getElementById ("qw"+i).innerText;//value taken from table col name : Balance to pay
|
||||||
|
var invoicepayment=invoicepayment1.trim();
|
||||||
$('#invoicepaymet'+i).val(invoicepayment);//to copy the value from 'balance to pay' to 'amount paid'
|
$('#invoicepaymet'+i).val(invoicepayment);//to copy the value from 'balance to pay' to 'amount paid'
|
||||||
|
//alert(invoicepayment);
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'hidden',
|
||||||
@ -361,12 +380,12 @@ function GetPayment(i)
|
|||||||
value:igrno
|
value:igrno
|
||||||
}).appendTo('#HideIGRDiv');
|
}).appendTo('#HideIGRDiv');
|
||||||
|
|
||||||
$('<input>').attr({
|
// $('<input>').attr({
|
||||||
type:'hidden',
|
// type:'hidden',
|
||||||
name:'hideigrline'+i,
|
// name:'hideigrline'+i,
|
||||||
id:'hideigrline'+i,
|
// id:'hideigrline'+i,
|
||||||
value:igrlineitem
|
// value:igrlineitem
|
||||||
}).appendTo('#HideIGRLineItem');
|
// }).appendTo('#HideIGRLineItem');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'hidden',
|
||||||
@ -374,6 +393,13 @@ function GetPayment(i)
|
|||||||
id:'hidesupname'+i,
|
id:'hidesupname'+i,
|
||||||
value:supname
|
value:supname
|
||||||
}).appendTo('#HideSuppDiv');
|
}).appendTo('#HideSuppDiv');
|
||||||
|
|
||||||
|
$('<input>').attr({
|
||||||
|
type:'hidden',
|
||||||
|
name:'hidesupid'+i,
|
||||||
|
id:'hidesupid'+i,
|
||||||
|
value:supid
|
||||||
|
}).appendTo('#HideSuppidDiv');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'hidden',
|
||||||
@ -389,10 +415,12 @@ function GetPayment(i)
|
|||||||
value:invoicepayment
|
value:invoicepayment
|
||||||
}).appendTo('#HideAmtPaidDiv');
|
}).appendTo('#HideAmtPaidDiv');
|
||||||
|
|
||||||
var poamount = $('#hideamtpaid'+i).val();
|
var poamount1 = $('#hideamtpaid'+i).val();
|
||||||
var ponovalue = i+','+igrlineitem+','+poamount;
|
var poamount=poamount1.trim();
|
||||||
|
//alert(poamount+'1');
|
||||||
|
var ponovalue = i+','+igrno+','+poamount;
|
||||||
temppo.push(ponovalue);
|
temppo.push(ponovalue);
|
||||||
//console.log(temppo);
|
console.log(temppo);
|
||||||
|
|
||||||
calculategrandtotal();
|
calculategrandtotal();
|
||||||
|
|
||||||
@ -415,13 +443,14 @@ function GetPayment(i)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var rr = $('#Rowid').val();
|
var rr = $('#Rowid').val();
|
||||||
row = parseInt(rr)-1;
|
row = parseInt(rr)-1;
|
||||||
|
|
||||||
var Payment = parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val());
|
var Payment = parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val());
|
||||||
|
|
||||||
var Inid = document.getElementById ('igrlineitem'+i ).innerText
|
var Inid1 = document.getElementById ('igrno'+i ).innerText
|
||||||
|
var Inid=Inid1.trim();
|
||||||
var ponovalue = i+','+Inid+','+Payment;
|
var ponovalue = i+','+Inid+','+Payment;
|
||||||
|
|
||||||
$.each(temppo,function(i,val){
|
$.each(temppo,function(i,val){
|
||||||
@ -432,7 +461,7 @@ else
|
|||||||
if(a != -1){
|
if(a != -1){
|
||||||
//sconsole.log('if');
|
//sconsole.log('if');
|
||||||
temppo.splice(a,1);
|
temppo.splice(a,1);
|
||||||
//console.log(temppo);
|
console.log(temppo);
|
||||||
}
|
}
|
||||||
if(b!=-1)
|
if(b!=-1)
|
||||||
{
|
{
|
||||||
@ -451,30 +480,44 @@ else
|
|||||||
$('#invoicepaymet'+i).val('');
|
$('#invoicepaymet'+i).val('');
|
||||||
$('#hidedate'+i).val('');
|
$('#hidedate'+i).val('');
|
||||||
$('#hidepono'+i).val('');
|
$('#hidepono'+i).val('');
|
||||||
$('#hideigrno'+i).val('');
|
$('#hideigrno'+i).val('');
|
||||||
$('#hideigrline'+i).val('');
|
// $('#hideigrline'+i).val('');
|
||||||
$('#hidesupname'+i).val('');
|
$('#hidesupname'+i).val('');
|
||||||
|
$('#hidesupid'+i).val('');
|
||||||
$('#hidettlPoamt'+i).val('');
|
$('#hidettlPoamt'+i).val('');
|
||||||
$('#hideamtpaid'+i).val('');
|
$('#hideamtpaid'+i).val('');
|
||||||
|
|
||||||
//$('#invoicepaymet'+i).remove();
|
//$('#invoicepaymet'+i).remove();
|
||||||
$('#hidedate'+i).remove();
|
$('#hidedate'+i).remove();
|
||||||
$('#hidepono'+i).remove();
|
$('#hidepono'+i).remove();
|
||||||
$('#hideigrno'+i).remove();
|
$('#hideigrno'+i).remove();
|
||||||
$('#hideigrline'+i).remove();
|
// $('#hideigrline'+i).remove();
|
||||||
$('#hidesupname'+i).remove();
|
$('#hidesupname'+i).remove();
|
||||||
|
$('#hidesupid'+i).remove();
|
||||||
$('#hidettlPoamt'+i).remove();
|
$('#hidettlPoamt'+i).remove();
|
||||||
$('#hideamtpaid'+i).remove();
|
$('#hideamtpaid'+i).remove();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function isNumberKey(evt)
|
||||||
|
{
|
||||||
|
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||||
|
// Added to allow decimal, period, or delete
|
||||||
|
if (charCode == 110 || charCode == 190 || charCode == 46)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
if (charCode > 31 && (charCode < 48 || charCode > 57))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
function GetAmount(i)
|
function GetAmount(i)
|
||||||
{
|
{
|
||||||
|
|
||||||
//alert("onchnage function getamount"+i);
|
//alert("onchnage function getamount"+i);
|
||||||
var amount = parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val())
|
var amount = parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val())
|
||||||
|
//alert(amount+'amount');
|
||||||
var negative=0;
|
var negative=0;
|
||||||
if(amount<0)
|
if(amount<0)
|
||||||
{
|
{
|
||||||
@ -489,20 +532,27 @@ function GetAmount(i)
|
|||||||
if(x==true )
|
if(x==true )
|
||||||
{
|
{
|
||||||
|
|
||||||
var date= document.getElementById ( "date"+i ).innerText;
|
var date= document.getElementById ("date"+i).innerText;
|
||||||
var pono =document.getElementById ( "pono"+i ).innerText;
|
var pono1 =document.getElementById ("pono"+i).innerText;
|
||||||
var igr =document.getElementById ( "igrno"+i ).innerText;
|
var pono=pono1.trim();
|
||||||
var igrlineitem=document.getElementById ( "igrlineitem"+i ).innerText;
|
var igrno1 =document.getElementById ("igrno"+i).innerText;
|
||||||
var supname =document.getElementById ("sn"+i ).innerText;
|
var igrno=igrno1.trim();
|
||||||
|
// var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
|
||||||
|
// var igrlineitem=igrlineitem1.trim();
|
||||||
|
|
||||||
|
var supname =document.getElementById ("sn"+i).innerText;
|
||||||
|
var supid =document.getElementById ("sid"+i ).innerText;
|
||||||
var totalordervalue =document.getElementById ("tov"+i ).innerText;
|
var totalordervalue =document.getElementById ("tov"+i ).innerText;
|
||||||
var balancetopay =document.getElementById ( "qw"+i ).innerText;
|
var balancetopay1 =document.getElementById ("qw"+i ).innerText;
|
||||||
|
var balancetopay =balancetopay1.trim();
|
||||||
|
//alert(balancetopay+'eee');
|
||||||
for(k=1;k<=i;k++)
|
for(k=1;k<=i;k++)
|
||||||
{
|
{
|
||||||
//alert(k);
|
//alert(k);
|
||||||
var idcheck=$('#igrlineitem'+k).val();
|
var idcheck=$('#hideigrno'+k).val();
|
||||||
|
//var idcheck=idcheck1.trim();
|
||||||
if(igrlineitem == idcheck)
|
|
||||||
|
if(igrno == idcheck)
|
||||||
{
|
{
|
||||||
var cid=k;
|
var cid=k;
|
||||||
break;
|
break;
|
||||||
@ -517,10 +567,11 @@ function GetAmount(i)
|
|||||||
$('#hidedate'+cid).val(date);
|
$('#hidedate'+cid).val(date);
|
||||||
$('#hidepono'+cid).val(pono);
|
$('#hidepono'+cid).val(pono);
|
||||||
$('#hidesupname'+cid).val(supname);
|
$('#hidesupname'+cid).val(supname);
|
||||||
|
$('#hidesupid'+cid).val(supid);
|
||||||
$('#hidettlPoamt'+cid).val(totalordervalue);
|
$('#hidettlPoamt'+cid).val(totalordervalue);
|
||||||
$('#hideamtpaid'+cid).val(amount);
|
$('#hideamtpaid'+cid).val(amount);
|
||||||
$('#hideigrno'+cid).val(igr);
|
$('#hideigrno'+cid).val(igrno);
|
||||||
$('#hideigrline'+cid).val(igrlineitem);
|
// $('#hideigrline'+cid).val(igrlineitem);
|
||||||
|
|
||||||
var totalvalue=$('#addvalue').val();
|
var totalvalue=$('#addvalue').val();
|
||||||
var bid=$('#bankid').val();
|
var bid=$('#bankid').val();
|
||||||
@ -537,9 +588,9 @@ function GetAmount(i)
|
|||||||
$.each(temppo, function( index, value )
|
$.each(temppo, function( index, value )
|
||||||
{
|
{
|
||||||
var res2 = value.split(',');
|
var res2 = value.split(',');
|
||||||
if(res2[1] == igrlineitem){
|
if(res2[1] == igrno){
|
||||||
|
|
||||||
temppo[index] = i+','+igrlineitem+','+amount;
|
temppo[index] = i+','+igrno+','+amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -550,26 +601,35 @@ function GetAmount(i)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** To calculate the overall total and store the value in table's footer */
|
||||||
function calculategrandtotal(){
|
function calculategrandtotal(){
|
||||||
|
|
||||||
|
|
||||||
$.each(temppo, function( index, value )
|
$.each(temppo, function( index, value )
|
||||||
{
|
{
|
||||||
var res2 = value.split(',');
|
|
||||||
tempTotal[index]=parseFloat(res2[2]);
|
var res2 = value.split(',');
|
||||||
|
tempTotal[index]=parseFloat(res2[2]);
|
||||||
|
//alert(tempTotal[index]);
|
||||||
});
|
});
|
||||||
|
|
||||||
var sum = 0;
|
var sum = 0;
|
||||||
|
|
||||||
for (var i = 0; i < tempTotal.length; i++) {
|
for (var i = 0; i < tempTotal.length; i++) {
|
||||||
sum += tempTotal[i] << 0;
|
|
||||||
|
sum += tempTotal[i];
|
||||||
|
|
||||||
}
|
}
|
||||||
$('#addvalue').val(parseFloat(sum).toFixed(2));
|
$('#addvalue').val(parseFloat(sum).toFixed(2));
|
||||||
// console.log(tempTotal);
|
// console.log(tempTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Save()
|
function Save()
|
||||||
{
|
{
|
||||||
|
var bankamount=$('#debitamount').val();
|
||||||
|
var totalamount=$('#addvalue').val();
|
||||||
|
if(parseFloat(bankamount)>=parseFloat(totalamount))
|
||||||
|
{
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
var rowCount= $('#Rowid').val();
|
var rowCount= $('#Rowid').val();
|
||||||
var check= 0;
|
var check= 0;
|
||||||
@ -579,54 +639,39 @@ function Save()
|
|||||||
var arrval = temppo[i-1];
|
var arrval = temppo[i-1];
|
||||||
var number = arrval.split(',');
|
var number = arrval.split(',');
|
||||||
number = number[0];
|
number = number[0];
|
||||||
|
//alert('rowcount'+i+'selectedcheckboxnumber'+number+'tempinvoice'+arrval);
|
||||||
rw= parseFloat(rw)+1;
|
rw= parseFloat(rw)+1;
|
||||||
|
|
||||||
check = parseFloat(check)+1;
|
check = parseFloat(check)+1;
|
||||||
var bankdebitamount=$('#debitamount').val();
|
var bankdebitamount=$('#debitamount').val();
|
||||||
|
var bankdate=localStorage.getItem('cddate');
|
||||||
var bid =$('#bankid').val();
|
var bid =$('#bankid').val();
|
||||||
|
|
||||||
|
|
||||||
var date =$('#hidedate'+number).val();
|
var date =$('#hidedate'+number).val();
|
||||||
|
|
||||||
var pono =$('#hidepono'+number).val();
|
var pono =$('#hidepono'+number).val();
|
||||||
|
|
||||||
var igrno =$('#hideigrno'+number).val();
|
var igrno =$('#hideigrno'+number).val();
|
||||||
|
|
||||||
|
|
||||||
var igrlineitem =$('#hideigrline'+number).val();
|
|
||||||
|
|
||||||
|
// var igrlineitem =$('#hideigrline'+number).val();
|
||||||
|
|
||||||
var suppliername=$('#hidesupname'+number).val();
|
var suppliername=$('#hidesupname'+number).val();
|
||||||
|
var supplierid=$('#hidesupid'+number).val();
|
||||||
|
|
||||||
var totalordervalue=$('#hidettlPoamt'+number).val();
|
var totalordervalue=$('#hidettlPoamt'+number).val();
|
||||||
|
|
||||||
|
|
||||||
var amountpaid=$('#hideamtpaid'+number).val();
|
var amountpaid=$('#hideamtpaid'+number).val();
|
||||||
|
|
||||||
|
|
||||||
var invoicepaymet=$('#invoicepaymet'+number).val();
|
var invoicepaymet=$('#invoicepaymet'+number).val();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var totalvalue=$('#addvalue').val();
|
var totalvalue=$('#addvalue').val();
|
||||||
|
|
||||||
|
|
||||||
var payment = parseFloat(amountpaid);
|
var payment = parseFloat(amountpaid);
|
||||||
|
|
||||||
|
|
||||||
var balnceamount=bankdebitamount-totalvalue;
|
var balnceamount=bankdebitamount-totalvalue;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(parseFloat(bankdebitamount)>=parseFloat(totalvalue))
|
$.ajax(
|
||||||
{
|
|
||||||
|
|
||||||
$.ajax(
|
|
||||||
{
|
{
|
||||||
data:{podate:date,pono:pono,igrno:igrno,igrlineitem:igrlineitem,sname:suppliername,tot:totalordervalue,aa:invoicepaymet,rc:rowCount,tpv:totalvalue,bda:bankdebitamount,bi:bid,check:check,rw:rw},
|
data:{bankdate:bankdate,podate:date,pono:pono,igrno:igrno,sname:suppliername,sid:supplierid,tot:totalordervalue,aa:amountpaid,rc:rowCount,tpv:totalvalue,bda:bankdebitamount,bi:bid,check:check,rw:rw},
|
||||||
|
//alert(data);
|
||||||
type:"POST",
|
type:"POST",
|
||||||
url:"<?php echo base_url() ?>cashbook/receipt",
|
url:"<?php echo base_url() ?>cashbook/receipt",
|
||||||
success:function(data)
|
success:function(data)
|
||||||
@ -643,31 +688,18 @@ function Save()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
|
|
||||||
alert('Your payment exceeding ');
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
alert('Your Amount Is Not Match');
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function isNumberKey(evt)
|
|
||||||
{
|
|
||||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
|
||||||
// Added to allow decimal, period, or delete
|
|
||||||
if (charCode == 110 || charCode == 190 || charCode == 46)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (charCode > 31 && (charCode < 48 || charCode > 57))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$( function() {
|
$( function() {
|
||||||
@ -707,6 +739,6 @@ $( function() {
|
|||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -25,10 +25,6 @@ foreach($financialyear as $item)
|
|||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-success {
|
|
||||||
border: 2px solid #5d0411 !important;}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -39,7 +35,7 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST. ORDERS -->
|
||||||
<div class="box box-info" id="content">
|
<div class="box box-info" id="content">
|
||||||
<br>
|
<br>
|
||||||
<div class="col-md-1 col-md-offset-11">
|
<div class="col-md-1 col-md-offset-11">
|
||||||
@ -48,8 +44,8 @@ foreach($financialyear as $item)
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo " View Invoice " ?> </b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>View Invoice</b></p></h3></center>
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||||
@ -162,6 +158,7 @@ foreach($financialyear as $item)
|
|||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Invoice Number</th>
|
<th>Invoice Number</th>
|
||||||
<th>Customer Name</th>
|
<th>Customer Name</th>
|
||||||
|
<th style="display:none;">Customer ID</th>
|
||||||
<th>Invoice Amount (₹)</th>
|
<th>Invoice Amount (₹)</th>
|
||||||
<th> Balance Receivable</th>
|
<th> Balance Receivable</th>
|
||||||
<th> Amount Received</th>
|
<th> Amount Received</th>
|
||||||
@ -188,6 +185,7 @@ foreach($financialyear as $item)
|
|||||||
<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="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="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="client_name<?php echo $i ?>"><span><?php echo $t->client_name?></span></td>
|
||||||
|
<td style="display:none;" align="left" id="clientid<?php echo $i ?>" ><span><?php echo $t->client_id?></span></td>
|
||||||
<td align="left" id="invoice_paid<?php echo $i ?>"><span><?php echo $t->invoice_total?></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 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>
|
||||||
@ -243,6 +241,8 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
<div class="col-md-12" id="HideCustomerNameDiv"></div>
|
<div class="col-md-12" id="HideCustomerNameDiv"></div>
|
||||||
|
|
||||||
|
<div class="col-md-12" id="HideCustomeridDiv"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="HideInvoiceAmtDiv"></div>
|
<div class="col-md-12" id="HideInvoiceAmtDiv"></div>
|
||||||
|
|
||||||
<div class="col-md-12" id="HideInvoiceRecdDiv"></div>
|
<div class="col-md-12" id="HideInvoiceRecdDiv"></div>
|
||||||
@ -267,6 +267,7 @@ foreach($financialyear as $item)
|
|||||||
$('#debitamount').val(localStorage.getItem('tes'));
|
$('#debitamount').val(localStorage.getItem('tes'));
|
||||||
var amount=localStorage.getItem('tes');
|
var amount=localStorage.getItem('tes');
|
||||||
var cashdate=localStorage.getItem('ccdate');
|
var cashdate=localStorage.getItem('ccdate');
|
||||||
|
|
||||||
var narration=localStorage.getItem('narr')
|
var narration=localStorage.getItem('narr')
|
||||||
document.getElementById("bamount").innerHTML=amount;
|
document.getElementById("bamount").innerHTML=amount;
|
||||||
document.getElementById("bdate").innerHTML=cashdate;
|
document.getElementById("bdate").innerHTML=cashdate;
|
||||||
@ -318,13 +319,13 @@ var x = document.getElementById('checkboxcheckbox'+i).checked;
|
|||||||
var amount= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val())
|
var amount= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val())
|
||||||
//alert(amount);
|
//alert(amount);
|
||||||
var negative=0;
|
var negative=0;
|
||||||
if(amount<0)
|
// if(amount<0)
|
||||||
{
|
// {
|
||||||
negative=1;
|
// negative=1;
|
||||||
alert("Invalid Amount")
|
// alert("Invalid Amount")
|
||||||
$('#invoicereceived'+i).val('');
|
// $('#invoicereceived'+i).val('');
|
||||||
|
|
||||||
}
|
// }
|
||||||
temp=intex;
|
temp=intex;
|
||||||
if(x==true)
|
if(x==true)
|
||||||
{
|
{
|
||||||
@ -332,11 +333,16 @@ if(x==true)
|
|||||||
row = parseInt(row)+1;
|
row = parseInt(row)+1;
|
||||||
$('#Rowid').val(row);
|
$('#Rowid').val(row);
|
||||||
var date= document.getElementById ( "invoicedate"+i ).innerText;
|
var date= document.getElementById ( "invoicedate"+i ).innerText;
|
||||||
var invid =document.getElementById ( "invoice_id"+i ).innerText;
|
var invid1 =document.getElementById ( "invoice_id"+i ).innerText;
|
||||||
//alert(invid);
|
var invid=invid1.trim();
|
||||||
|
|
||||||
var cusname =document.getElementById ("client_name"+i ).innerText;
|
var cusname =document.getElementById ("client_name"+i ).innerText;
|
||||||
|
var cusid =document.getElementById ("clientid"+i ).innerText;
|
||||||
|
|
||||||
var invoiceamount =document.getElementById ("invoice_paid"+i ).innerText;
|
var invoiceamount =document.getElementById ("invoice_paid"+i ).innerText;
|
||||||
var invoicereceived=document.getElementById ("invoice_balance"+i ).innerText;
|
var invoicereceived1=document.getElementById ("invoice_balance"+i ).innerText;
|
||||||
|
var invoicereceived=invoicereceived1.trim();
|
||||||
|
//alert(invoicereceived+'inv');
|
||||||
$('#invoicereceived'+i).val(invoicereceived);
|
$('#invoicereceived'+i).val(invoicereceived);
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
@ -359,6 +365,13 @@ if(x==true)
|
|||||||
id:'hidecustomername'+i,
|
id:'hidecustomername'+i,
|
||||||
value:cusname
|
value:cusname
|
||||||
}).appendTo('#HideCustomerNameDiv');
|
}).appendTo('#HideCustomerNameDiv');
|
||||||
|
|
||||||
|
$('<input>').attr({
|
||||||
|
type:'hidden',
|
||||||
|
name:'hidecustomerid'+i,
|
||||||
|
id:'hidecustomerid'+i,
|
||||||
|
value:cusid
|
||||||
|
}).appendTo('#HideCustomeridDiv');
|
||||||
|
|
||||||
$('<input>').attr({
|
$('<input>').attr({
|
||||||
type:'hidden',
|
type:'hidden',
|
||||||
@ -405,14 +418,13 @@ else
|
|||||||
row = parseInt(rr)-1;
|
row = parseInt(rr)-1;
|
||||||
|
|
||||||
var Payment= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val());
|
var Payment= parseFloat( $('#invoicereceived'+i).val() == '' ? '0.00' : $('#invoicereceived'+i).val());
|
||||||
var Inid = document.getElementById ('invoice_id'+i ).innerText
|
var Inid1 = document.getElementById ('invoice_id'+i ).innerText
|
||||||
|
var Inid=Inid1.trim();
|
||||||
var invoicevalue = i+','+Inid+','+Payment;
|
var invoicevalue = i+','+Inid+','+Payment;
|
||||||
//alert(invoicevalue);
|
//alert(invoicevalue);
|
||||||
|
|
||||||
var a = tempinvoice.indexOf(invoicevalue);
|
var a = tempinvoice.indexOf(invoicevalue);
|
||||||
var b = tempTotal.indexOf(Payment);
|
var b = tempTotal.indexOf(Payment);
|
||||||
//alert(a);
|
|
||||||
//alert(b);
|
|
||||||
|
|
||||||
if(a!=-1)
|
if(a!=-1)
|
||||||
{
|
{
|
||||||
@ -434,12 +446,14 @@ else
|
|||||||
$('#hideinvoicedate'+i).val('');
|
$('#hideinvoicedate'+i).val('');
|
||||||
$('#hideinvoiceid'+i).val('');
|
$('#hideinvoiceid'+i).val('');
|
||||||
$('#hidecustomername'+i).val('');
|
$('#hidecustomername'+i).val('');
|
||||||
|
$('#hidecustomerid'+i).val('');
|
||||||
$('#hideinvoiceamount'+i).val('');
|
$('#hideinvoiceamount'+i).val('');
|
||||||
$('#hideinvoicerecd'+i).val('');
|
$('#hideinvoicerecd'+i).val('');
|
||||||
|
|
||||||
$('#hideinvoicedate'+i).remove();
|
$('#hideinvoicedate'+i).remove();
|
||||||
$('#hideinvoiceid'+i).remove();
|
$('#hideinvoiceid'+i).remove();
|
||||||
$('#hidecustomername'+i).remove();
|
$('#hidecustomername'+i).remove();
|
||||||
|
$('#hidecustomerid'+i).remove();
|
||||||
$('#hideinvoiceamount'+i).remove();
|
$('#hideinvoiceamount'+i).remove();
|
||||||
$('#hideinvoicerecd'+i).remove();
|
$('#hideinvoicerecd'+i).remove();
|
||||||
|
|
||||||
@ -469,8 +483,11 @@ function GetAmount(i)
|
|||||||
{
|
{
|
||||||
|
|
||||||
var date= document.getElementById ( "invoicedate"+i ).innerText;
|
var date= document.getElementById ( "invoicedate"+i ).innerText;
|
||||||
var invid =document.getElementById ( "invoice_id"+i ).innerText;
|
var invid1 =document.getElementById ( "invoice_id"+i ).innerText;
|
||||||
|
var invid=invid1.trim();
|
||||||
var cusname =document.getElementById ("client_name"+i ).innerText;
|
var cusname =document.getElementById ("client_name"+i ).innerText;
|
||||||
|
|
||||||
|
var cusid =document.getElementById ("clientid"+i ).innerText;
|
||||||
var invoiceamount =document.getElementById ("invoice_paid"+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;
|
||||||
@ -492,6 +509,7 @@ function GetAmount(i)
|
|||||||
$('#hideinvoicedate').val(date);
|
$('#hideinvoicedate').val(date);
|
||||||
$('#hideinvoiceid'+cid).val(invid);
|
$('#hideinvoiceid'+cid).val(invid);
|
||||||
$('#hidecustomername'+cid).val(cusname);
|
$('#hidecustomername'+cid).val(cusname);
|
||||||
|
$('#hidecustomerid'+cid).val(cusid);
|
||||||
$('#hideinvoiceamount'+cid).val(invoiceamount);
|
$('#hideinvoiceamount'+cid).val(invoiceamount);
|
||||||
$('#hideinvoicerecd'+cid).val(amount);
|
$('#hideinvoicerecd'+cid).val(amount);
|
||||||
var totalvalue=$('#addvalue').val();
|
var totalvalue=$('#addvalue').val();
|
||||||
@ -575,6 +593,11 @@ function calculategrandtotal(){
|
|||||||
|
|
||||||
function Save()
|
function Save()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
var totalamount=$('#addvalue').val();
|
||||||
|
var bankamount=$('#debitamount').val();
|
||||||
|
if(parseFloat(bankamount) >= parseFloat(totalamount))
|
||||||
|
{
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
var totalvalue=$('#addvalue').val();
|
var totalvalue=$('#addvalue').val();
|
||||||
|
|
||||||
@ -593,6 +616,7 @@ function Save()
|
|||||||
rw= parseFloat(rw)+1;
|
rw= parseFloat(rw)+1;
|
||||||
check = parseFloat(check)+1;
|
check = parseFloat(check)+1;
|
||||||
var bankdebitamount=$('#debitamount').val();
|
var bankdebitamount=$('#debitamount').val();
|
||||||
|
var bankdate=localStorage.getItem('ccdate')
|
||||||
|
|
||||||
var bid=$('#bankid').val();
|
var bid=$('#bankid').val();
|
||||||
|
|
||||||
@ -602,18 +626,21 @@ function Save()
|
|||||||
|
|
||||||
var customername=$('#hidecustomername'+number).val();
|
var customername=$('#hidecustomername'+number).val();
|
||||||
|
|
||||||
var invoiceamount=$('#hideinvoiceamount'+number).val();
|
var customerid=$('#hidecustomerid'+number).val();
|
||||||
|
|
||||||
|
|
||||||
|
var invoiceamount1=$('#hideinvoiceamount'+number).val();
|
||||||
|
var invoiceamount=invoiceamount1.trim();
|
||||||
|
//alert()
|
||||||
var amountreceived=$('#hideinvoicerecd'+number).val();
|
var amountreceived=$('#hideinvoicerecd'+number).val();
|
||||||
|
|
||||||
var invoicereceived=$('#invoicereceived'+number).val();
|
var invoicereceived=$('#invoicereceived'+number).val();
|
||||||
|
|
||||||
//var payment = parseFloat(invoiceamount);
|
//var payment = parseFloat(invoiceamount);
|
||||||
|
|
||||||
|
|
||||||
$.ajax(
|
$.ajax(
|
||||||
{
|
{
|
||||||
data:{date:date,invid:invid,cname:customername,invamount:invoiceamount,ar:amountreceived,rc:rowCount,tpv:totalvalue,bda:bankdebitamount,bi:bid,check:check,rw:rw,invrec:invoicereceived},
|
data:{bankdate:bankdate,date:date,invid:invid,cname:customername,cid:customerid,invamount:invoiceamount,ar:amountreceived,rc:rowCount,tpv:totalvalue,bda:bankdebitamount,bi:bid,check:check,rw:rw,invrec:invoicereceived},
|
||||||
type:"POST",
|
type:"POST",
|
||||||
url:"<?php echo base_url() ?>cashbook/invoiceamount1",
|
url:"<?php echo base_url() ?>cashbook/invoiceamount1",
|
||||||
success:function(data)
|
success:function(data)
|
||||||
@ -626,9 +653,15 @@ function Save()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// j=j+1;
|
// j=j+1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert('Your Amount Is Not Match');
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -3,6 +3,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($debitmapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach($financialyear as $item)
|
foreach($financialyear as $item)
|
||||||
|
|
||||||
@ -12,7 +17,7 @@ foreach($financialyear as $item)
|
|||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- <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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -103,7 +108,7 @@ foreach($financialyear as $item)
|
|||||||
//echo $totalamount;
|
//echo $totalamount;
|
||||||
?>
|
?>
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo " Bank Credit Amount Paid Report " ?> </b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Bank Credit Amount Paid Report</b></p></h3></center>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -124,7 +129,7 @@ foreach($financialyear as $item)
|
|||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $bankid?></td>
|
<td><?php echo $bankid?></td>
|
||||||
<td>Bank</td>
|
<td>Bank</td>
|
||||||
<td><?php echo $totalamount ?></td>
|
<td><?php echo $bankclear ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -143,8 +148,9 @@ foreach($financialyear as $item)
|
|||||||
<th>INVOICE NO</th>
|
<th>INVOICE NO</th>
|
||||||
<th>Customer Name</th>
|
<th>Customer Name</th>
|
||||||
<th>Total Amount (₹)</th>
|
<th>Total Amount (₹)</th>
|
||||||
|
<th>Received Amount</th>
|
||||||
<th>Balance To Received</th>
|
<th>Balance To Received</th>
|
||||||
<th>Received Amount</th>
|
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
|
|
||||||
|
|
||||||
@ -172,9 +178,11 @@ foreach($financialyear as $item)
|
|||||||
<td align="left" id="invno<?php echo $i ?>"><?php echo $ap->invoiceno?></span></td>
|
<td align="left" id="invno<?php echo $i ?>"><?php echo $ap->invoiceno?></span></td>
|
||||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->customername?></span></td>
|
||||||
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
<td align="left" id="totinvoiceamount<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||||
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->totinvoiceamount-$ap->amountreceived?></span></td>
|
|
||||||
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php echo $ap->amountreceived?></span></td>
|
<td align="left" id="amountreceived<?php echo $i ?>"><span><?php echo $ap->amountreceived?></span></td>
|
||||||
<td>
|
|
||||||
|
<!--<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->balancetoreceived-$ap->amountreceived?></span></td> -->
|
||||||
|
<td align="left" id="balancetoreceived<?php echo $i ?>"><span><?php echo $ap->balancetoreceived?></span></td>
|
||||||
|
<td>
|
||||||
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
<a data-toggle="tooltip" ><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="invoice(<?php echo $i ?>)"></i> </a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -196,7 +204,7 @@ foreach($financialyear as $item)
|
|||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo " Cashbook Reports " ?> </b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Cashbook Reports</b></p></h3></center>
|
||||||
<br>
|
<br>
|
||||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
<thead>
|
<thead>
|
||||||
@ -239,7 +247,7 @@ foreach($financialyear as $item)
|
|||||||
<td align="left" id="aa"><span><?php echo $mc->total?></span></td>
|
<td align="left" id="aa"><span><?php echo $mc->total?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbookcredit?bankid='.$mc->bankid; ?>&id=<?php echo $mc->id?>&amount=<?php echo $mc->total?>&balancetoclear=<?php echo $balancetoclear?>&clearbalance=<?php echo $bankclear?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
<a data-toggle="tooltip" href="<?php echo base_url().'Deleteinvoiceurl?bankid='.$mc->bankid; ?>&id=<?php echo $mc->id?>&amount=<?php echo $mc->total?>&balancetoclear=<?php echo $balancetoclear?>&clearbalance=<?php echo $bankclear?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
@ -278,16 +286,20 @@ function invoice(i)
|
|||||||
{
|
{
|
||||||
|
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
var totinvoiceamount=$('#totinvoiceamount'+i).text();
|
||||||
|
|
||||||
var balancetoreceived=$('#balancetoreceived'+i).text();
|
var balancetoreceived=$('#balancetoreceived'+i).text();
|
||||||
var invoiceno=$('#invno'+i).text();
|
var invoiceno=$('#invno'+i).text();
|
||||||
//alert(invoiceno);
|
//alert(invoiceno);
|
||||||
var bankid=$('#bankingid'+i).val();
|
var bankid=$('#bankingid'+i).val();
|
||||||
var amountreceived=$('#amountreceived'+i).text();
|
var amountreceived=$('#amountreceived'+i).text();
|
||||||
|
|
||||||
var bankingclear=$('#bankingclear'+i).val();
|
var bankingclear=$('#bankingclear'+i).val();
|
||||||
var mappingid=$('#mappingid'+i).val();
|
var mappingid=$('#mappingid'+i).val();
|
||||||
var credit=$('#credit'+i).val();
|
var credit=$('#credit'+i).val();
|
||||||
var bankingbalclear=$('#bankingbalclear'+i).val();
|
var bankingbalclear=$('#bankingbalclear'+i).val();
|
||||||
|
|
||||||
|
|
||||||
$.ajax(
|
$.ajax(
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@ -13,7 +13,7 @@ foreach($financialyear as $item)
|
|||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- <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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -63,7 +63,7 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Invoice settlement</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Bank Invoice settlement</b></p></h3></center>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
<!--<div class="row">
|
<!--<div class="row">
|
||||||
|
|||||||
450
application/views/bankpaidsupp.php
Normal file
450
application/views/bankpaidsupp.php
Normal file
@ -0,0 +1,450 @@
|
|||||||
|
<?php
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate
|
||||||
|
{
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST. ORDERS -->
|
||||||
|
<div class="box box-info" id="content">
|
||||||
|
<br>
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">Sundry Creditors <?php if(!empty($ab)){
|
||||||
|
|
||||||
|
echo $ab;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$totpo=0;
|
||||||
|
|
||||||
|
if(!empty($bankdebitsupp)){
|
||||||
|
foreach($bankdebitsupp as $t)
|
||||||
|
{
|
||||||
|
$potot=$t->Amountpaid;
|
||||||
|
$totpo=$potot+$totpo;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$totcash=0;
|
||||||
|
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$cashtot=$c->total;
|
||||||
|
$totcash=$cashtot+$totcash;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$totalmappedamount=$totpo+$totcash;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<center class="box-title"><p style="color:#333FFF"><b>Mapped Amount : Rs <?php echo $totalmappedamount; ?></b></p></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Paid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<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 style="width:50%;">Supplier Name</th>
|
||||||
|
<th>Paid Amount (₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankdebitsupp)){
|
||||||
|
foreach($bankdebitsupp as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$Amountpaid=$t->Amountpaid;
|
||||||
|
|
||||||
|
$supplierid=$t->SupplierID;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountpaid?sid=<?php echo $t->SupplierID;?>&sn=<?php echo $t->Suppliername ?>&fa=<?php echo $fa ?>&aa=<?php echo $aa ?>&m=<?php echo $m ?>&fdate=<?php echo $fdate ?>&tdate=<?php echo $tdate ?>"><span><?php echo $t->Suppliername?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($Amountpaid)?><?php echo round($Amountpaid,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><span style="text-align:right;">No Records Found!!!</span></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">CashBook <?php if(!empty($ab)){
|
||||||
|
echo $ab;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<table class="table table-bordered table-hover" id="req1" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="width:50%;">Account Name</th>
|
||||||
|
<th>Paid Amount(₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amountcash=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$rate=$c->total;
|
||||||
|
$accountname=$c->name;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountpaidcashbook?ac=<?php echo $c->account_code;?>&an=<?php echo $accountname ?>&fa=<?php echo $fa ?>&aa=<?php echo $aa ?>&m=<?php echo $m ?>&fdate=<?php echo $fdate ?>&tdate=<?php echo $tdate ?>"><span><?php echo $accountname?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amountcash=$tot_amountcash+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amountcash; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div><!-- /.col -->
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
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: 'paid Purchase Order Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );/** ready closed */
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
table = $('#req1').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: 'paid Cashbook Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -1,7 +1,24 @@
|
|||||||
<?php foreach($financialyear as $item){
|
|
||||||
$finyear = $item->financial_year;
|
|
||||||
} ?>
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($debitmapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -21,25 +38,41 @@
|
|||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
<!--<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div id="container"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
|
||||||
|
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
|
<!--<div class="box-header with-border">-->
|
||||||
<!-- <form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>"> -->
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||||
<!-- <center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank PO settlement</b></p></h3></center> -->
|
<!--</div>-->
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo "Bank PO settlement"; ?></b></p></h3></center>
|
<!-- /.box-header -->
|
||||||
<div class="box-body">
|
|
||||||
<!-- </form> -->
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank PO settlement</b></p></h3></center>
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
@ -49,7 +82,7 @@
|
|||||||
<th>Bank ID</th>
|
<th>Bank ID</th>
|
||||||
<th>Narration</th>
|
<th>Narration</th>
|
||||||
<th>PONO</th>
|
<th>PONO</th>
|
||||||
<th>IGRLine Item No</th>
|
<!--<th>IGRLine Item No</th>-->
|
||||||
<th>Amount Paid (₹) </th>
|
<th>Amount Paid (₹) </th>
|
||||||
|
|
||||||
|
|
||||||
@ -75,7 +108,7 @@
|
|||||||
<td align="left" id="tov"><span><?php echo $ap->mid?></span></td>
|
<td align="left" id="tov"><span><?php echo $ap->mid?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->Narration?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->Narration?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->PONO?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->PONO?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
<!--<td align="left" id="aa"><span><?php echo $ap->IGRLineItemNo?></span></td>-->
|
||||||
<td align="left" id="aa"><span><?php echo $ap->Amountpaid?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->Amountpaid?></span></td>
|
||||||
|
|
||||||
|
|
||||||
@ -128,17 +161,17 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tfoot>-->
|
</tfoot>-->
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div><!-- /.box body-->
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
<!-- /.box -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
433
application/views/bankreceivedsupp.php
Normal file
433
application/views/bankreceivedsupp.php
Normal file
@ -0,0 +1,433 @@
|
|||||||
|
<?php
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info" id="content">
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Sundry Debtors <?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<?php
|
||||||
|
$totiv=0;
|
||||||
|
|
||||||
|
if(!empty($amountreceivedsupplier)){
|
||||||
|
foreach($amountreceivedsupplier as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$ivtot=$t->amountreceived;
|
||||||
|
$totiv=$ivtot+$totiv;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$totcash=0;
|
||||||
|
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$ivcash=$c->total;
|
||||||
|
$totcash= $totcash+$ivcash;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$totalmappedamount=$totiv+$totcash;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<center class="box-title"><p style="color:#5d0411"><b>Mapped Amount : Rs <?php echo $totalmappedamount; ?></b></p></center>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- .<div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Received ">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<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 style="width:50%;">Supplier Name</th>
|
||||||
|
<th>Received Amount (₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountreceivedsupplier)){
|
||||||
|
foreach($amountreceivedsupplier as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$amountreceived=$t->amountreceived;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>Amountreceived?sid=<?php echo $t->customerid;?>&cname=<?php echo $t->customername?>&fa=<?php echo $fa ?>&aa=<?php echo $aa ?>&m=<?php echo $m ?>&fdate=<?php echo $fdate ?>&tdate=<?php echo $tdate ?>"><span><?php echo $t->customername?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($amountreceived)?><?php echo round($amountreceived,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">CashBook <?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<table class="table table-bordered table-hover" id="req1" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="width:50%;">Account Name</th>
|
||||||
|
<th>Received Amount(₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amountcash=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$rate=$c->total;
|
||||||
|
$accountname=$c->name;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountreceivedcashbook?ac=<?php echo $c->account_code;?>&an=<?php echo $accountname ?>&fa=<?php echo $fa ?>&aa=<?php echo $aa ?>&m=<?php echo $m ?>&fdate=<?php echo $fdate ?>&tdate=<?php echo $tdate ?>"><span><?php echo $accountname?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amountcash=$tot_amountcash+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amountcash; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.box -->
|
||||||
|
</div><!-- /.col -->
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
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: 'Receivable Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );/** ready closed */
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$monthsoptions = array("01" => "Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec");
|
$monthsoptions = array("01" => "Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec");
|
||||||
@ -8,38 +9,34 @@
|
|||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$(".select2").select2();
|
$(".select2").select2();
|
||||||
$( "#chequedate" ).datepicker({
|
$("#bankreport").click(function(){
|
||||||
maxDate :'now',
|
|
||||||
dateFormat :'dd-mm-yy'
|
|
||||||
});
|
|
||||||
$("#bankreport").click(function(){
|
|
||||||
|
|
||||||
|
|
||||||
var bank = $('#bank').val();
|
var bank = $('#bank').val();
|
||||||
var payon = $('#month').val();
|
var payon = $('#month').val();
|
||||||
var chequeno = $('#chequeno').val();
|
|
||||||
var chequedate = $('#chequedate').val();
|
|
||||||
var excel = $('#excel').is(":checked");
|
var excel = $('#excel').is(":checked");
|
||||||
|
// alert(excel);
|
||||||
|
|
||||||
|
|
||||||
if(excel == true)
|
if(excel == true)
|
||||||
{
|
{
|
||||||
alert('Excel Report Not Available for Bank Report..!');
|
alert('Excel Report Not Available for Bank Report..!');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(bank != '-1' && payon !='-1')
|
if(bank != '-1' && payon !='-1')
|
||||||
{
|
{
|
||||||
$('#content').loader('show');
|
$('#content').loader('show');
|
||||||
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
$('#BankReportGenerator').attr('action', '<?php echo base_url() ?>payslip/getBankReport');
|
||||||
$('form#BankReportGenerator').submit();
|
$('form#BankReportGenerator').submit();
|
||||||
$('#content').loader('hide');
|
$('#content').loader('hide');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert('Select Bank Name and Pay Date');
|
alert('Select Bank Name and Pay Date');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#pfreport").click(function(){
|
$("#pfreport").click(function(){
|
||||||
@ -98,17 +95,17 @@ $("#esireport").click(function(){
|
|||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
<section class="content-header">
|
<section class="content-header">
|
||||||
<h1>
|
<h1>
|
||||||
<!-- <center>Resico Industries - Bank Report Generator</center> -->
|
<center>Siddharth Industries - Bank Report Generator</center>
|
||||||
<center><?php echo $pageTitle.' Generator'; ?></center>
|
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="row" style="border:2px dotted; padding:5%">
|
<div class="row" style="border:2px dotted; padding:5%">
|
||||||
<form id="BankReportGenerator" action="" method="post" role="form" >
|
<form id="BankReportGenerator" action="" method="post" role="form" >
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
|
||||||
<span for="selectmonth">Select Bank</span>
|
<span for="selectmonth">Select Bank</span>
|
||||||
<select id="bank" name="bank" class="form-control select2" style="width: 100%;">
|
<select id="bank" name="bank" class="form-control select2" style="width: 100%;">
|
||||||
<option value="-1">Select Bank</option>
|
<option value="-1">Select Bank</option>
|
||||||
<?php
|
<?php
|
||||||
@ -129,10 +126,10 @@ $("#esireport").click(function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div><!-- col-md-4 -->
|
</div>
|
||||||
<div id="content"></div>
|
<div id="content"></div>
|
||||||
<div class="col-md-4 col-md-offset-2">
|
<div class="col-md-4 col-md-offset-2">
|
||||||
|
|
||||||
|
|
||||||
<span>Month</span>
|
<span>Month</span>
|
||||||
@ -150,92 +147,29 @@ $("#esireport").click(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</div><!-- col-md-4 col-md-offset-2-->
|
|
||||||
<div class="col-md-4 col-md-offset-6">
|
|
||||||
<input type="checkbox" class="" id="excel" name="excel" value="excel" /><span>Excel</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-2">
|
|
||||||
<span>Cheque No</span><input type="text" class="form-control" id="chequeno" name="chequeno" readonly/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-4 col-md-offset-6">
|
||||||
<span>Cheque Date</span><input type="text" class="form-control" id="chequedate" name="chequedate" readonly/>
|
<input type="checkbox" class="" id="excel" name="excel" value="excel" /><span>Excel</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<div class="col-md-4 col-md-offset-6" align = "right">
|
<div class="col-md-4 col-md-offset-6" align = "right">
|
||||||
|
|
||||||
<input type="submit" class="btn btn-info" id="bankreport" target = "_blank" name="Bank_Report" value="Bank Report" />
|
<input type="submit" class="btn btn-info" id="bankreport" name="Bank_Report" value="Bank Report" />
|
||||||
<input type="submit" class="btn btn-info" id="pfreport" name="PF_Report" value="PF Report" />
|
<input type="submit" class="btn btn-info" id="pfreport" name="PF_Report" value="PF Report" />
|
||||||
<input type="submit" class="btn btn-info" id="esireport" name="ESI_Report" value="ESI Report" />
|
<input type="submit" class="btn btn-info" id="esireport" name="ESI_Report" value="ESI Report" />
|
||||||
|
|
||||||
</div><!-- // col-md-4 col-md-offset-6 button -->
|
|
||||||
</div><!-- // row first-->
|
|
||||||
</section><!-- // section content-->
|
|
||||||
</div><!--wrapper div-->
|
|
||||||
<script>
|
|
||||||
|
|
||||||
$("#bank").change(function(){
|
|
||||||
chequeajaxcall();
|
|
||||||
} );
|
|
||||||
|
|
||||||
$("#month").change(function(){
|
|
||||||
chequeajaxcall();
|
|
||||||
} );
|
|
||||||
|
|
||||||
function chequeajaxcall()
|
|
||||||
{
|
|
||||||
var bank = $('#bank').val();
|
|
||||||
var payon = $('#month').val();
|
|
||||||
var chequeno = $('#chequeno').val();
|
|
||||||
var chequedate = $('#chequedate').val();
|
|
||||||
|
|
||||||
$('#content').loader('show');
|
|
||||||
if(bank != '-1' && payon !='-1')
|
|
||||||
{
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
data:{id1:bank,id2:payon},
|
|
||||||
type:"POST",
|
|
||||||
url:"<?php echo base_url();?>payslip/ValidationCheque",
|
|
||||||
success:function(data) {
|
|
||||||
$('#content').loader('hide');
|
|
||||||
|
|
||||||
if(data != 0){
|
|
||||||
swal('Value already exists ! ..');
|
|
||||||
$("#chequeno").val();
|
|
||||||
$("#chequeno").prop("readonly", true);
|
|
||||||
$("#chequedate").val('');
|
|
||||||
$("#chequedate").prop("readonly", true);
|
|
||||||
|
|
||||||
}else{
|
|
||||||
$("#chequeno").val('');
|
|
||||||
$("#chequeno").prop("readonly", false);
|
|
||||||
$("#chequedate").val('');
|
|
||||||
$("#chequedate").prop("readonly", false);
|
|
||||||
}
|
|
||||||
}//success
|
|
||||||
})//ajax
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
$('#content').loader('hide');
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
}
|
|
||||||
}
|
</section>
|
||||||
|
</div>
|
||||||
$(window).bind("pageshow", function() {
|
|
||||||
|
|
||||||
$('#bank').val('-1');
|
|
||||||
$('#month').val('-1');
|
|
||||||
$('#chequeno').val('');
|
|
||||||
$('#chequedate').val('');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@ -1,6 +1,13 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($mapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
foreach($financialyear as $item)
|
foreach($financialyear as $item)
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -9,7 +16,7 @@
|
|||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
|
<!-- <link rel="sty.lesheet" 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">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -53,6 +60,9 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>Bankingstatement" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
<!--<div class="box-header with-border">-->
|
<!--<div class="box-header with-border">-->
|
||||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
@ -63,7 +73,7 @@
|
|||||||
|
|
||||||
<div class="modal fade" id="Fileshow" role="dialog">
|
<div class="modal fade" id="Fileshow" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<!-- Modal content-->
|
|
||||||
<form>
|
<form>
|
||||||
<div class="modal-content" style="width:800px;">
|
<div class="modal-content" style="width:800px;">
|
||||||
|
|
||||||
@ -148,8 +158,8 @@
|
|||||||
$paymentamount=$pcamount+$poamount;
|
$paymentamount=$pcamount+$poamount;
|
||||||
?>
|
?>
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<!-- <center><h3 class="box-title"><p style="color:#5d0411"><b><?php //echo $pageTitle." - Bank Debit Amount Paid Report " ?> </b></p></h3></center> -->
|
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo " Bank Debit Amount Paid Report " ?> </b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Bank Debit Amount Paid Report</b></p></h3></center>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
@ -242,7 +252,7 @@
|
|||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>PONO</th>
|
<th>PONO</th>
|
||||||
<th>IGR NO</th>
|
<th>IGR NO</th>
|
||||||
<th>IGR Item NO</th>
|
<!--<th>IGR Item NO</th>-->
|
||||||
<th>Supplier Name</th>
|
<th>Supplier Name</th>
|
||||||
<th>Total PO Amount (₹)</th>
|
<th>Total PO Amount (₹)</th>
|
||||||
<!--<th>Advance PO Amount (₹)</th>-->
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
@ -257,13 +267,14 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
if(!empty($mapping)){
|
if(!empty($mapping)){
|
||||||
foreach($mapping as $ap)
|
foreach($mapping as $ap)
|
||||||
{
|
{
|
||||||
// print_r($mapping );die();
|
$total=$ap->Amountpaid; // print_r($ap);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -272,43 +283,43 @@
|
|||||||
|
|
||||||
|
|
||||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->MaterialRcvdDate),'d-m-Y');?></span></td>
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->MaterialRcvdDate),'d-m-Y');?></span></td>
|
||||||
<td align="left" id="pono<?php echo $i ?>"><span><?php echo $ap->PONO?></span></td>
|
<td align="left" id="pono<?php echo $i ?>"><!--<a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>">--><span><?php echo $ap->PONO?></span></a></td>
|
||||||
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $ap->IGRNO?></span></td>
|
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $ap->IGRNO?></span></a></td>
|
||||||
<td align="left" id="igrltno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?igrLTno=<?php echo $ap->IGRLineItemNo;?>"><span><?php echo $ap->IGRLineItemNo?></span></a></td>
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>-->
|
||||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||||
<!--<a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $rel->file ?>"-->
|
<!--<a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $rel->file ?>"-->
|
||||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
|
||||||
<td align="left" id="tov<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
<td align="left" id="tov<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
||||||
|
<!-- <td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->Totalpoamount-$ap->Amountpaid;?></span></td>-->
|
||||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->Balancetopay?></span></td>
|
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->Balancetopay?></span></td>
|
||||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
|
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($total);?><?php echo round($total,2)?></span></td>
|
||||||
<?php
|
<?php
|
||||||
if($ap->file !='')
|
if($ap->file !='')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
else if($ap->Fpath !='')
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
<?php
|
|
||||||
} else
|
else if($ap->Fpath !='')
|
||||||
{ ?>
|
{
|
||||||
<td>N/A</td>
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
<?php }
|
<td> <a data-toggle="tooltip"><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> -Attachment Available for Download/View" onclick="igrno(<?php echo $i ?>)"></i></a> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
} else
|
||||||
|
{ ?>
|
||||||
|
<td>N/A</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php }
|
||||||
if($ap->FilePath=='')
|
if($ap->FilePath=='')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
@ -322,7 +333,7 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" ><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> - Attachment Available for Download/view" onclick="pono(<?php echo $i ?>)"></i> </a>
|
<a data-toggle="tooltip" ><i class="fa fa-download" data-toggle="tooltip" title="<?php echo $record->pono; ?> - Attachment Available for Download/view" onclick="pono(<?php echo $i ?>)"></i> </a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!--<td> <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">Download</button></td>-->
|
<!--<td> <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">Download</button></td>-->
|
||||||
@ -332,7 +343,7 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingpo?bankid='.$ap->mid; ?>&id=<?php echo $ap->id ?>&amount=<?php echo $ap->Amountpaid?>&bankamount=<?php echo $bankamount?>&balancetoclear=<?php echo$balancetoclear?>&igrno=<?php echo $ap->IGRLineItemNo?>&balancetopay=<?php echo $ap->Balancetopay?>&totalpoamount=<?php echo $ap->Totalpoamount?>&debit=<?php echo $ap->Debit?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $i; ?> - Click here to Delete details"></i> </a>
|
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingpo?bankid='.$ap->mid; ?>&id=<?php echo $ap->id ?>&amount=<?php echo $ap->Amountpaid?>&bankamount=<?php echo $bankamount?>&balancetoclear=<?php echo$balancetoclear?>&igrno=<?php echo $ap->IGRNO?>&balancetopay=<?php echo $ap->Balancetopay?>&totalpoamount=<?php echo $ap->Totalpoamount?>&debit=<?php echo $ap->Debit?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
@ -346,42 +357,27 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<!--<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;"><strong>Total</strong></td>
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
<td> </td>
|
<!--<td> </td>
|
||||||
<td> </td>
|
<td> </td>-->
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td style="text-align:right"><strong>
|
<td> </td>
|
||||||
<?php
|
<td> </td>
|
||||||
{
|
<td> </td>
|
||||||
echo number_format($ti,2,'.','');
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
}
|
</strong></td>
|
||||||
?>
|
<td> </td>
|
||||||
</strong>
|
<td> </td>
|
||||||
</td>
|
<td> </td>
|
||||||
<td style="text-align:right"><strong>
|
|
||||||
<?php
|
</tr>
|
||||||
{
|
</tfoot>
|
||||||
echo number_format($tvt,2,'.','');
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</strong>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tfoot>-->
|
|
||||||
</table>
|
</table>
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo " Cashbook Reports " ?> </b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Cashbook Reports</b></p></h3></center>
|
||||||
<br>
|
<br>
|
||||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
<thead>
|
<thead>
|
||||||
@ -403,6 +399,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
$tot_amount1=0;
|
||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
@ -410,7 +407,8 @@
|
|||||||
|
|
||||||
foreach($mappingcashbook as $mc)
|
foreach($mappingcashbook as $mc)
|
||||||
{
|
{
|
||||||
$id=$mc->id;
|
$id=$mc->id;
|
||||||
|
$total=$mc->total;
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -426,7 +424,7 @@
|
|||||||
|
|
||||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $mc->bankid?></span></td>
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $mc->bankid?></span></td>
|
||||||
<td align="left" id="tov<?php echo $i ?>"><span><?php echo $mc->amounttype?></span></td>
|
<td align="left" id="tov<?php echo $i ?>"><span><?php echo $mc->amounttype?></span></td>
|
||||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->total?></span></td>
|
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount1=$tot_amount1+round($total);?><?php echo round($total,2)?></span></td>
|
||||||
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->cashtype?></span></td>
|
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->cashtype?></span></td>
|
||||||
<td>
|
<td>
|
||||||
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbook?bankid='.$mc->bankid; ?>&amount=<?php echo $mc->total?>&id=<?php echo $id?>&balancetoclear=<?php echo $balancetoclear?>&bankamount=<?php echo $bankamount?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbook?bankid='.$mc->bankid; ?>&amount=<?php echo $mc->total?>&id=<?php echo $id?>&balancetoclear=<?php echo $balancetoclear?>&bankamount=<?php echo $bankamount?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
@ -447,6 +445,19 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount1; ?>
|
||||||
|
</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -479,7 +490,10 @@
|
|||||||
function pono(i)
|
function pono(i)
|
||||||
{
|
{
|
||||||
var igrno=$('#igrno'+i).text();
|
var igrno=$('#igrno'+i).text();
|
||||||
var pono=$('#pono'+i).text();
|
var pono =$('#pono'+i).text();
|
||||||
|
// alert(igrno);
|
||||||
|
// alert(pono);
|
||||||
|
// return false;
|
||||||
$("#Fileshow").modal('show');
|
$("#Fileshow").modal('show');
|
||||||
$.ajax(
|
$.ajax(
|
||||||
|
|
||||||
@ -538,7 +552,10 @@ function pono(i)
|
|||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
function igrno(i)
|
|
||||||
|
|
||||||
|
|
||||||
|
function igrno(i)
|
||||||
{
|
{
|
||||||
var igrno=$('#igrno'+i).text();
|
var igrno=$('#igrno'+i).text();
|
||||||
var pono =$('#pono'+i).text();
|
var pono =$('#pono'+i).text();
|
||||||
@ -561,28 +578,26 @@ function igrno(i)
|
|||||||
|
|
||||||
$.each($.parseJSON(data),function (i, item) {
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
if(item.file == null)
|
if(item.file ==null)
|
||||||
{
|
{ if(item.Remarks ==null)
|
||||||
// if(item.Remarks ==null)
|
{
|
||||||
// {
|
|
||||||
//alert()
|
//alert()
|
||||||
PONO =item.PONO;
|
PONO =item.PONO;
|
||||||
BillNO =item.BillNo;
|
BillNO =item.BillNo;
|
||||||
Filename =item.FilePath;
|
Filename =item.FilePath;
|
||||||
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
// }else{
|
}else{
|
||||||
// Filename ="BillDetails";
|
Filename ="BillDetails";
|
||||||
// PONO =item.PONO;
|
PONO =item.PONO;
|
||||||
// BillNO =item.BillNo;
|
BillNO =item.BillNo;
|
||||||
// FilePath = item.FilePath;
|
FilePath = item.FilePath;
|
||||||
// }
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
Filename = item.file;
|
Filename = item.file;
|
||||||
PONO =item.pono;
|
PONO =item.pono;
|
||||||
BillNO = '-';
|
BillNO = '-';
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
FilePath =item.file;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -612,8 +627,4 @@ function igrno(i)
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
511
application/views/banksettlementcash.php
Normal file
511
application/views/banksettlementcash.php
Normal file
@ -0,0 +1,511 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($mapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div id="container"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info">
|
||||||
|
<!--<div class="box-header with-border">-->
|
||||||
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||||
|
<!--</div>-->
|
||||||
|
<!-- /.box-header -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>amountpaidsupplier" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">Cashbook Reports
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<center><h4 style="color:#3c8dbc"><span><?php echo $accountname;?></span></h4></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="accountcode" name="accountcode" value="<?php echo $accountcode;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="accountname" name="accountname" value="<?php echo $accountname;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View cashbook">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Account Name</th>
|
||||||
|
<th>Supplier Name</th>
|
||||||
|
<!-- <th>Bankid</th>-->
|
||||||
|
<!--<th>Amount Type</th>-->
|
||||||
|
<th>Total Amount (₹)</th>
|
||||||
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
|
<!--<th>Option (₹)</th>-->
|
||||||
|
<!--<th>Action</th>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankmappingcash)){
|
||||||
|
|
||||||
|
foreach($bankmappingcash as $mc)
|
||||||
|
{
|
||||||
|
$id=$mc->id;
|
||||||
|
$rate=$mc->total;
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->date?></span></td>
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->name?></span></td>
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->SupplierName?></span></td>
|
||||||
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $mc->bankid?></span></td>-->
|
||||||
|
<!--<td align="left" id="tov<?php echo $i ?>"><span><?php echo $mc->amounttype?></span></td>-->
|
||||||
|
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($rate);?> <?php echo round($rate,2)?></span></td>
|
||||||
|
<!--<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->cashtype?></span></td>-->
|
||||||
|
<!--<td>
|
||||||
|
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbook?bankid='.$mc->bankid; ?>&amount=<?php echo $mc->total?>&id=<?php echo $id?>&balancetoclear=<?php echo $balancetoclear?>&bankamount=<?php echo $bankamount?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
|
</td> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- /.box -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <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>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function pono(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
// alert(igrno);
|
||||||
|
// alert(pono);
|
||||||
|
// return false;
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/filelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
i=i+1;
|
||||||
|
trHTML += '<tr>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
|
||||||
|
'<td>' + item.BillNo+ '</td>' +
|
||||||
|
'<td>' + item.PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td>' +item.FilePath+"<?php echo base_url().'uploads/BillFiles/'?>"> +'</td>'
|
||||||
|
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
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'
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function igrno(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/IGRFilelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
var FilePath ='';
|
||||||
|
var Filename = '';
|
||||||
|
var PONO ='';
|
||||||
|
var BillNO ='';
|
||||||
|
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
|
if(item.file ==null)
|
||||||
|
{ if(item.Remarks ==null)
|
||||||
|
{
|
||||||
|
//alert()
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
Filename =item.FilePath;
|
||||||
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
|
}else{
|
||||||
|
Filename ="BillDetails";
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
FilePath = item.FilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
Filename = item.file;
|
||||||
|
PONO =item.pono;
|
||||||
|
BillNO = '-';
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Filename != null)
|
||||||
|
{
|
||||||
|
i=i+1;
|
||||||
|
i=i-1;
|
||||||
|
trHTML += '<tr id='+i+'>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||||
|
'<td>' + PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
</script>
|
||||||
511
application/views/banksettlementcredit.php
Normal file
511
application/views/banksettlementcredit.php
Normal file
@ -0,0 +1,511 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($mapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div id="container"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info">
|
||||||
|
<!--<div class="box-header with-border">-->
|
||||||
|
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||||
|
<!--</div>-->
|
||||||
|
<!-- /.box-header -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>bankreceivedsupp" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">Cashbook Reports <?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<center><h4 style="color:#3c8dbc"><span><?php echo $accountname;?></span></h4></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="accountcode" name="accountcode" value="<?php echo $accountcode;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="accountname" name="accountname" value="<?php echo $accountname;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Cashbook">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Account Name</th>
|
||||||
|
<th>Supplier Name</th>
|
||||||
|
<!-- <th>Bankid</th>-->
|
||||||
|
<!--<th>Amount Type</th>-->
|
||||||
|
<th>Total Amount (₹)</th>
|
||||||
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
|
<!--<th>Option (₹)</th>-->
|
||||||
|
<!--<th>Action</th>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankmappingcashreceived)){
|
||||||
|
|
||||||
|
foreach($bankmappingcashreceived as $mc)
|
||||||
|
{
|
||||||
|
$id=$mc->id;
|
||||||
|
$rate=$mc->total;
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->date?></span></td>
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->name?></span></td>
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->SupplierName?></span></td>
|
||||||
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $mc->bankid?></span></td>-->
|
||||||
|
<!--<td align="left" id="tov<?php echo $i ?>"><span><?php echo $mc->amounttype?></span></td>-->
|
||||||
|
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($rate);?> <?php echo round($rate,2)?></span></td>
|
||||||
|
<!--<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->cashtype?></span></td>-->
|
||||||
|
<!--<td>
|
||||||
|
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbook?bankid='.$mc->bankid; ?>&amount=<?php echo $mc->total?>&id=<?php echo $id?>&balancetoclear=<?php echo $balancetoclear?>&bankamount=<?php echo $bankamount?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
|
</td> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- /.box -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <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>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function pono(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
// alert(igrno);
|
||||||
|
// alert(pono);
|
||||||
|
// return false;
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/filelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
i=i+1;
|
||||||
|
trHTML += '<tr>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
|
||||||
|
'<td>' + item.BillNo+ '</td>' +
|
||||||
|
'<td>' + item.PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td>' +item.FilePath+"<?php echo base_url().'uploads/BillFiles/'?>"> +'</td>'
|
||||||
|
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
$(document).ready(function() {
|
||||||
|
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'
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function igrno(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/IGRFilelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
var FilePath ='';
|
||||||
|
var Filename = '';
|
||||||
|
var PONO ='';
|
||||||
|
var BillNO ='';
|
||||||
|
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
|
if(item.file ==null)
|
||||||
|
{ if(item.Remarks ==null)
|
||||||
|
{
|
||||||
|
//alert()
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
Filename =item.FilePath;
|
||||||
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
|
}else{
|
||||||
|
Filename ="BillDetails";
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
FilePath = item.FilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
Filename = item.file;
|
||||||
|
PONO =item.pono;
|
||||||
|
BillNO = '-';
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Filename != null)
|
||||||
|
{
|
||||||
|
i=i+1;
|
||||||
|
i=i-1;
|
||||||
|
trHTML += '<tr id='+i+'>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||||
|
'<td>' + PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
</script>
|
||||||
@ -31,10 +31,8 @@ $Bankname = $t->Bankname;
|
|||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
|
||||||
|
|
||||||
.btn-success {
|
}
|
||||||
border: 2px solid #5d0411 !important;}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@ -49,11 +47,11 @@ $Bankname = $t->Bankname;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS. -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
|
|
||||||
|
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php echo $pageTitle?></b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Bank Report</b></p></h3></center>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
|
|
||||||
@ -234,7 +232,7 @@ $Bankname = $t->Bankname;
|
|||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<!-- <center><h3>Bank Name:<?php echo $Bankname?></h3></center> -->
|
<!-- <center><h3>Bank Name:<?php echo $Bankname?></h3></center>-->
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" data-order='[[1,"desc"]]' id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" data-order='[[1,"desc"]]' id="req" style="table-layout:auto;">
|
||||||
|
|
||||||
@ -302,14 +300,14 @@ $Bankname = $t->Bankname;
|
|||||||
|
|
||||||
$clearbalance=$t->Clearbalance;
|
$clearbalance=$t->Clearbalance;
|
||||||
?>
|
?>
|
||||||
<td align="left" id="totalpaid<?php echo $i?>"><a href="<?php echo base_url() ?>cashbook/mappingpo?d=<?php echo $t->ID?>&clearbalance=<?php echo $clearbalance;?>&balancetoclear=<?php echo $t->Debit-$clearbalance;?>"><span><?php echo $clearbalance?></a></span></td>
|
<td align="left" id="totalpaid<?php echo $i?>"><a href="<?php echo base_url() ?>MappingPo?d=<?php echo $t->ID?>&clearbalance=<?php echo $clearbalance;?>&balancetoclear=<?php echo $t->Debit-$clearbalance;?>"><span><?php echo $clearbalance?></a></span></td>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($status=='CLOSE')
|
if($status=='CLOSE')
|
||||||
{
|
{
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<td align="left" id="btc<?php echo $i ?>"><span><?php echo ($t->Debit) - $clearbalance;?></span></td>
|
<td align="left" id="btc<?php echo $i ?>"><span><?php echo ($t->Debit) - ($t->Clearbalance);?></span></td>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -344,8 +342,8 @@ $Bankname = $t->Bankname;
|
|||||||
|
|
||||||
<td align="left" id="credited<?php echo $i ?>"><span><?php echo ($t->Credit)-($t->cclearbalance);?></span></td>
|
<td align="left" id="credited<?php echo $i ?>"><span><?php echo ($t->Credit)-($t->cclearbalance);?></span></td>
|
||||||
|
|
||||||
<td align="left" id="csta<?php echo $i ?>"><span><?php echo $t->cstatus?><?php echo $t->Status?></span></td>
|
<td align="left" id="csta<?php echo $i ?>"><span><?php echo $t->cstatus?><?php echo $t->Status?></span></td>
|
||||||
<!-- <td align="left" id="dsta<?php echo $i ?>"><span><?php echo $t->Status?></span></td> -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <td><?php echo $t->cstatus;?></td> -->
|
<!-- <td><?php echo $t->cstatus;?></td> -->
|
||||||
@ -632,8 +630,6 @@ if (x==true)
|
|||||||
var date=$('#date'+i).text();
|
var date=$('#date'+i).text();
|
||||||
var debit=$('#debit'+i).text();
|
var debit=$('#debit'+i).text();
|
||||||
var alreadypaid=$('#totalpaid'+i).text();
|
var alreadypaid=$('#totalpaid'+i).text();
|
||||||
|
|
||||||
|
|
||||||
var credit=$('#credit1'+i).text();
|
var credit=$('#credit1'+i).text();
|
||||||
|
|
||||||
localStorage.setItem('totcredit', credit);
|
localStorage.setItem('totcredit', credit);
|
||||||
@ -642,7 +638,6 @@ if (x==true)
|
|||||||
localStorage.setItem('narr',narration);
|
localStorage.setItem('narr',narration);
|
||||||
|
|
||||||
var alreadycredit=$('#credit2'+i).text();
|
var alreadycredit=$('#credit2'+i).text();
|
||||||
|
|
||||||
localStorage.setItem('alreadyreceived',alreadycredit);
|
localStorage.setItem('alreadyreceived',alreadycredit);
|
||||||
localStorage.setItem('paidedamount',alreadypaid);
|
localStorage.setItem('paidedamount',alreadypaid);
|
||||||
var RowCount= $('#Rowid').val();
|
var RowCount= $('#Rowid').val();
|
||||||
|
|||||||
448
application/views/banksupplierledger.php
Normal file
448
application/views/banksupplierledger.php
Normal file
@ -0,0 +1,448 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
//echo $suppliername;
|
||||||
|
foreach($openingbalancesupplier as $balance)
|
||||||
|
{
|
||||||
|
$openbalance=$balance->amountpaid;
|
||||||
|
}
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
|
||||||
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div id="container"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class ="content">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info">
|
||||||
|
<div id="content" > </div>
|
||||||
|
|
||||||
|
<!--<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()); ?>">
|
||||||
|
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">Supplier Ledger
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</p></h3></center>
|
||||||
|
<?php
|
||||||
|
foreach($supplierledger as $sl)
|
||||||
|
{
|
||||||
|
$suppliername=$sl->supplier_name;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<center><h4 style="color:#3c8dbc"><span><?php echo $suppliername;?></span></h4></center>
|
||||||
|
<p><?php echo $tot_amount; ?></p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="supplier" name="supplier" value="<?php echo $supplierid;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="suppliername" name="suppliername" value="<?php echo $suppliername;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2" >
|
||||||
|
<label for="customer">
|
||||||
|
<?php echo 'Supplier'; ?>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" id="SupplierName" name="SupplierName">
|
||||||
|
<option value="">Select Supplier</option>
|
||||||
|
<?php foreach($getsupplier as $gs):
|
||||||
|
{?>
|
||||||
|
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ;?></option>
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2" style="margin-top:24px;">
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
||||||
|
value="View CusLedger">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$i=1;
|
||||||
|
$amount_paid=0;
|
||||||
|
$total_po=0;
|
||||||
|
$balance_due=0;
|
||||||
|
|
||||||
|
if(!empty($supplierledger)){
|
||||||
|
foreach($supplierledger as $sls)
|
||||||
|
{
|
||||||
|
$totalpo=$sls->total;
|
||||||
|
$total_po=$total_po+$totalpo;
|
||||||
|
$amountpaid=$sls->amountpaid;
|
||||||
|
$amount_paid= $amount_paid+$amountpaid;
|
||||||
|
$balance_due=$total_po-$amount_paid;
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
?>
|
||||||
|
<p style="color:green" "font-size:22px";><strong>Opening Balnce</strong> : <?php echo $openbalance ?>(₹)</p>
|
||||||
|
<p style="color:green";><strong>Purchased Amount </strong>: <?php echo $total_po ?>(₹)</p>
|
||||||
|
<p style="color:green";><strong>Amount Paid </strong> : <?php echo $amount_paid?>(₹)</p>
|
||||||
|
<!--<p style="color:green";><strong>Balance Due </strong> : <?php echo $balance_due?>(₹)</p>-->
|
||||||
|
<?php
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Supplier Name</th>
|
||||||
|
<th>Transactions</th>
|
||||||
|
<th>Document No</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Payments(₹)</th>
|
||||||
|
<th>Balance (₹)</th>
|
||||||
|
<!--<th>Print</th>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amountpaid=0;
|
||||||
|
$tot_balance=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($supplierledger)){
|
||||||
|
foreach($supplierledger as $sl)
|
||||||
|
{
|
||||||
|
$total=$sl->total;
|
||||||
|
$payments=$sl->amountpaid;
|
||||||
|
$Balance=$total-$payments;
|
||||||
|
$Bankdate=$sl->bankdate;
|
||||||
|
$narration=$sl->narration
|
||||||
|
// $id=$ap->id;
|
||||||
|
//print_r($ap);
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
<input type="hidden" name="mapid" id="mapid<?php echo $i ?>" value="<?php echo $ap->id; ?>"/>
|
||||||
|
<input type="hidden" name="bankingbalclear" id="bankingbalclear<?php echo $i ?>" value="<?php echo $ap->Balancetocleared; ?>"/>
|
||||||
|
<input type="hidden" name="clearbal" id="clearbal<?php echo $i ?>" value="<?php echo $ap->Clearbalance; ?>"/>
|
||||||
|
<input type="hidden" name="bankingid" id="bankingid<?php echo $i ?>" value="<?php echo $ap->mid; ?>"/>
|
||||||
|
|
||||||
|
<td align="left" id="bankdate<?php echo $i ?>"><span><?php echo date_format(date_create($sl->date),'d-m-Y'); ?></span></td>
|
||||||
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $sl->supplier_name?></span></td>
|
||||||
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $sl->narration?></span></td>
|
||||||
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $sl->ID?></span></td>
|
||||||
|
<?php
|
||||||
|
if(!empty($narration))
|
||||||
|
{
|
||||||
|
$total=0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$total=$sl->total;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td align="left" id="tpoa<?php echo $i ?>"><span><?php echo $total;?></span></td>
|
||||||
|
<td align="left" id="btp<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($sl->amountpaid)?> <?php echo round($payments,2);?></span></td>
|
||||||
|
<?php
|
||||||
|
if(!empty($payments))
|
||||||
|
{
|
||||||
|
$Balance=0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$Balance=$total-$payments;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td align="left" id="ap<?php echo $i ?>"><span><?php $tot_balance=$tot_balance+round($Balance)?> <?php echo round($Balance,2)?></span></td>
|
||||||
|
|
||||||
|
<!--<td>
|
||||||
|
<a data-toggle="tooltip" ><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details" onclick="podelete(<?php echo $i ?>)"></i> </a>
|
||||||
|
</td> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Balance Due</strong></td>
|
||||||
|
<!--<td> </td>-->
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_balance;?>
|
||||||
|
</strong></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
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: $('h4').text(),
|
||||||
|
title: 'Supplier Ledger',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ));
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
323
application/views/bankunpaidsupp.php
Normal file
323
application/views/bankunpaidsupp.php
Normal file
@ -0,0 +1,323 @@
|
|||||||
|
<?php
|
||||||
|
foreach($financialyear as $item)
|
||||||
|
{
|
||||||
|
$finyear = $item->financial_year;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info" id="content">
|
||||||
|
<br>
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Sundry Creditors(
|
||||||
|
<?php if(!empty($ab)){
|
||||||
|
echo $ab;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>)</p></h3></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </div.> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="hidden" id="supplierid" name="supplierid" value="<?php echo $t->sid?>">
|
||||||
|
<!--<input type="text" id="fa" name="fa" value="<?php echo $fa?>">
|
||||||
|
<input type="text" id="ta" name="ta" value="<?php echo $ta?>">
|
||||||
|
<input type="text" id="m" name="m" value="<?php echo $m?>">
|
||||||
|
<input type="text" id="fdate" name="fdate" value="<?php echo $fdate?>">
|
||||||
|
<input type="text" id="tdate" name="tdate" value="<?php echo $tdate?>">-->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Payable">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<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>Supplier Name</th>
|
||||||
|
<th>Unpaid Amount (₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankunpaid)){
|
||||||
|
foreach($bankunpaid as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
$status=$t->Paymentstatus;
|
||||||
|
$balancetopay=$t->Balancetopay;
|
||||||
|
$ReceivedQuantity=$t->ReceivedQuantity;
|
||||||
|
$rate=$t->total;
|
||||||
|
$supplierid=$t->SupplierID;
|
||||||
|
|
||||||
|
if($status !='ST057')
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/supplierwise?sid=<?php echo $t->sid;?>&fa=<?php echo $fa?>&aa=<?php echo $aa?>&m=<?php echo $m?>&fdate=<?php echo $fdate?>&tdate=<?php echo $tdate?>"><span><?php echo $t->supplier_name?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.box -->
|
||||||
|
</div><!-- /.col -->
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
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: 'Unpaid Purchase Order Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );/** ready closed */
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
294
application/views/bankunreceivedsupp.php
Normal file
294
application/views/bankunreceivedsupp.php
Normal file
@ -0,0 +1,294 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
<style>
|
||||||
|
.dataTables_filter input {padding: 4px;}
|
||||||
|
|
||||||
|
.dataTables_filter {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.dataTables_paginate {
|
||||||
|
width: 50%;
|
||||||
|
float: right;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.dt-buttons {
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
<section class="content">
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left col -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
|
<div class="box box-info" id="content">
|
||||||
|
<br>
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411; font-size: 18px;">Sundry Debtors <?php if(!empty($fa)){
|
||||||
|
echo $fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fa)){
|
||||||
|
echo '-';
|
||||||
|
echo $aa;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php if(!empty($m))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $m;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php if(!empty($fdate))
|
||||||
|
{
|
||||||
|
echo '/';
|
||||||
|
echo $fdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php if(!empty($tdate)){
|
||||||
|
echo '/';
|
||||||
|
echo $tdate;
|
||||||
|
}
|
||||||
|
|
||||||
|
?></p></h3></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Year'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="financialyear" name="financialyear">
|
||||||
|
<option value="">Select Year</option>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
foreach($finyear as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'Month'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="month" name="month">
|
||||||
|
<option value="">Select Month</option>
|
||||||
|
<option value="January">January</option>
|
||||||
|
<option value="February">February</option>
|
||||||
|
<option value="March">March</option>
|
||||||
|
<option value="April">April</option>
|
||||||
|
<option value="May">May</option>
|
||||||
|
<option value="June">June</option>
|
||||||
|
<option value="July">July</option>
|
||||||
|
<option value="August">August</option>
|
||||||
|
<option value="September">September</option>
|
||||||
|
<option value="October">October</option>
|
||||||
|
<option value="November">November</option>
|
||||||
|
<option value="December">December</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="from_date">
|
||||||
|
<?php echo 'From Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label for="to_date">
|
||||||
|
<?php echo 'To Date'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<i class="fa fa-calendar fa-fw"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-md-2" style="margin-top:20px;">
|
||||||
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
||||||
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Receivable">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<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>Supplier Name</th>
|
||||||
|
<th>Receivable Amount (₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountunreceivedsupplier)){
|
||||||
|
foreach($amountunreceivedsupplier as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$invoice_total=$t->invoice_total;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountunreceived?sid=<?php echo $t->client_id;?>&fa=<?php echo $fa ?>&aa=<?php echo $aa ?>&m=<?php echo $m ?>&fdate=<?php echo $fdate ?>&tdate=<?php echo $tdate ?>"><span><?php echo $t->client_name?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($invoice_total)?><?php echo round($invoice_total,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amount; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /..box -->
|
||||||
|
</div><!-- /.col -->
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( function() {
|
||||||
|
//var dateFormat = "mm/dd/yy",
|
||||||
|
from = $( "#min-date" )
|
||||||
|
.datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
to.datepicker("option", "minDate", getDate( this ) );
|
||||||
|
}),
|
||||||
|
to = $( "#max-date" ).datepicker({
|
||||||
|
dateFormat: "dd-mm-yy",
|
||||||
|
defaultDate: "+0d",
|
||||||
|
changeMonth: true,
|
||||||
|
//numberOfMonths: 1
|
||||||
|
|
||||||
|
})
|
||||||
|
.on( "change", function() {
|
||||||
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||||
|
});
|
||||||
|
|
||||||
|
function getDate( element ) {
|
||||||
|
var date;
|
||||||
|
|
||||||
|
try {
|
||||||
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||||
|
|
||||||
|
} catch( error ) {
|
||||||
|
date = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
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: 'Receivable Report',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );/** datatable closed */
|
||||||
|
} );/** ready closed */
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@ -1053,31 +1053,54 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="treeview-menu">
|
<ul class="treeview-menu">
|
||||||
<li>
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankingview">
|
||||||
<a href="<?php echo base_url(); ?>Bankingview">
|
<i class="fa fa-credit-card"></i>
|
||||||
<i class="fa fa-credit-card"></i>
|
<span>Bank Statement Upload</span>
|
||||||
<span>Bank Statement Upload</span>
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<a href="<?php echo base_url(); ?>Bankingstatement">
|
||||||
<a href="<?php echo base_url(); ?>Bankingstatement">
|
<i class="fa fa-credit-card"></i>
|
||||||
<i class="fa fa-credit-card"></i>
|
<span>Bank Statements</span>
|
||||||
<span>Bank Statements</span>
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<a href="<?php echo base_url(); ?>Bankamountpaid">
|
||||||
<a href="<?php echo base_url(); ?>Bankamountpaid">
|
<i class="fa fa-credit-card"></i>
|
||||||
<i class="fa fa-credit-card"></i>
|
<span>Amount Paid Reports(PO)</span>
|
||||||
<span>Amount Paid Reports(PO)</span>
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<a href="<?php echo base_url(); ?>Bankamountunpaid">
|
||||||
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
<i class="fa fa-credit-card"></i>
|
||||||
<i class="fa fa-credit-card"></i>
|
<span>Amount UnPaid Reports(PO)</span>
|
||||||
<span>Amount Recived Reports(Inv)</span>
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Amount Received Reports(Inv)</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankamountunreceived">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Amount Receivable Reports(Inv)</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankledgersupplier">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Supplier Ledger</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankledgercustomer">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Customer Ledger</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user