file details in bankstatement
This commit is contained in:
parent
02051be709
commit
36b5f08969
@ -949,6 +949,11 @@ class cashbook extends BaseController
|
||||
$data['balancetoclear'] =$_GET['balancetoclear'];
|
||||
$data['mappingcashbook']=$this->cashbook_model->mappingcash($SupplierName,$fdate,$tdate,$bankid);
|
||||
$data['mapping'] = $this->cashbook_model->debitpolist($bankid);
|
||||
//print_r($data['mapping']);
|
||||
//die();
|
||||
$data['mappingimage'] = $this->cashbook_model->debitimage($bankid);
|
||||
//print_r( $data['mappingimage']);die();
|
||||
|
||||
$data['paidcbook'] = $this->cashbook_model->cashbookamount($bankid);
|
||||
$data['paidpoamount'] = $this->cashbook_model->poamonut($bankid);
|
||||
$data['supplier'] = $this->cashbook_model->getsupplier();
|
||||
|
||||
@ -370,12 +370,12 @@ function receiptdata()
|
||||
function debitpolist($bankid)
|
||||
{
|
||||
$this->db->select('bp.id,bp.mid,bp.Podate,bp.PONO,bp.Suppliername,bp.Totalpoamount,
|
||||
bp.Balancetopay,bp.Amountpaid,bp.IGRNO,bp.IGRLineItemNo');
|
||||
bp.Balancetopay,bp.Amountpaid,bp.IGRNO,bp.IGRLineItemNo,igrm.file');
|
||||
$this->db->from ('T_Bankmappingpo bp');
|
||||
//$this->db->join ('T_IGR_Master igrm','igrm.IGRNO = bp.IGRNO','left');
|
||||
$this->db->join ('T_IGR_Master igrm','bp.IGRNO = igrm.IGRNO');
|
||||
//$this->db->join ('T_IGR_Details igrde','igrde.IGRNO=igrm.IGRNO','left');
|
||||
|
||||
//$this->db->join ('T_PurchaseOrder_BillUpload bu','bu.PONO = bp.PONO','left');
|
||||
// $this->db->join ('T_PurchaseOrder_BillUpload bu','bu.PONO = bp.PONO','left');
|
||||
$this->db->where('bp.IsActive',1);
|
||||
$this->db->where('bp.mid',$bankid);
|
||||
// $this->db->where('igrde.BankStatus !=','ST072');
|
||||
@ -383,17 +383,33 @@ function debitpolist($bankid)
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//function for image
|
||||
|
||||
function debitimage($bankid){
|
||||
$this->db->select('bp.PONO,bp.mid,bu.FilePath,bu.BillNo,bu.IGRNO');
|
||||
$this->db->from ('T_Bankmappingpo bp');
|
||||
$this->db->join ('T_PurchaseOrder_BillUpload bu','bp.PONO = bu.PONO');
|
||||
$this->db->where('bp.mid',$bankid);
|
||||
$this->db->group_by('bu.BillNo');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function debitpolistfilter($SupplierName,$fdate,$tdate)
|
||||
{
|
||||
$this->db->select('bm.id,bm.mid,bm.Podate,bm.PONO,bm.Suppliername,bm.Totalpoamount,
|
||||
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,igrm.file,igrde.IGRItemNo,br.Clearbalance,br.Balancetocleared');
|
||||
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,igrm.file,igrde.IGRItemNo,br.Clearbalance,br.Balancetocleared,bu.FilePath,bu.BillNo,bu.IGRNO');
|
||||
$this->db->from ('T_Bankmappingpo bm');
|
||||
$this->db->join ('T_IGR_Master igrm','igrm.IGRNO = bm.IGRNO');
|
||||
$this->db->join ('T_IGR_Details igrde','igrde.IGRNO=igrm.IGRNO');
|
||||
$this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername');
|
||||
$this->db->join ('T_bankreport br','br.ID=bm.mid');
|
||||
$this->db->join ('T_bankreport br','br.ID=bm.mid');
|
||||
$this->db->join ('T_PurchaseOrder_BillUpload bu','bm.PONO=bu.PONO');
|
||||
if($fdate!='' && $tdate!='')
|
||||
{
|
||||
$this->db->where('bm.Podate BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||
|
||||
@ -59,6 +59,76 @@ if(!empty($amountpaid))
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box box-info" id="content">
|
||||
<div class="modal" id="myModal" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<!-- <button type="button" class="close" data-dismiss="modal">×</button> -->
|
||||
<h4 class="modal-title">Select Options</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table id="classTable" class="table table-bordered">
|
||||
<thead>
|
||||
|
||||
<th>IGRNO</th>
|
||||
<th>PoNo</th>
|
||||
<th>FileName</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankdebit)){
|
||||
foreach($bankdebit as $im)
|
||||
|
||||
{
|
||||
// print_r($mappingimage);
|
||||
// die();
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $im->IGRNO ?></td>
|
||||
<td><?php echo $im->PONO ?></td>
|
||||
<?php
|
||||
|
||||
if($im->FilePath=='')
|
||||
{
|
||||
?>
|
||||
<td>N/A</td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td> <a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $im->FilePath ?>"><?php echo $im->FilePath ?></i></a></td>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</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>-->
|
||||
@ -137,6 +207,8 @@ if(!empty($amountpaid))
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Balance To Pay (₹)</th>
|
||||
<th>Amount Paid (₹)</th>
|
||||
<th>IGR File</th>
|
||||
<th>PO File</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
@ -170,6 +242,33 @@ if(!empty($amountpaid))
|
||||
<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->Balancetopay?></span></td>
|
||||
<td align="left" id="ap<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
|
||||
<?php
|
||||
if($ap->file=='')
|
||||
{
|
||||
?>
|
||||
<td>N/A</td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td> <a target="_blank" href="<?php echo base_url().''.$ap->file ?>" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button class="btn btn-info btn-sm">Download</button></a> </td>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($ap->FilePath=='')
|
||||
{
|
||||
?>
|
||||
<td>N/A</td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td> <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">Download</button></td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<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>
|
||||
</td>
|
||||
|
||||
@ -64,6 +64,78 @@ if(!empty($mapping))
|
||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
||||
<!--</div>-->
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="modal" id="myModal" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<!-- <button type="button" class="close" data-dismiss="modal">×</button> -->
|
||||
<h4 class="modal-title">Select Options</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table id="classTable" class="table table-bordered">
|
||||
<thead>
|
||||
<th>ID</th>
|
||||
<th>BillNo</th>
|
||||
<th>PoNo</th>
|
||||
<th>FileName</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingimage)){
|
||||
foreach($mappingimage as $im)
|
||||
|
||||
{
|
||||
// print_r($mappingimage);
|
||||
// die();
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $im->mid ?></td>
|
||||
<td><?php echo $im->BillNo ?></td>
|
||||
<td><?php echo $im->PONO ?></td>
|
||||
<?php
|
||||
if($im->FilePath=='')
|
||||
{
|
||||
?>
|
||||
<td>N/A</td>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<td> <a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $im->FilePath ?>"><?php echo $im->FilePath ?></i></a></td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//for update bank amount//
|
||||
@ -220,7 +292,8 @@ if(!empty($mapping))
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Balance To Pay (₹)</th>
|
||||
<th>Amount Paid (₹)</th>
|
||||
<th>File</th>
|
||||
<th>IGR File</th>
|
||||
<th>PO File</th>
|
||||
<th>Action</th>
|
||||
|
||||
|
||||
@ -233,7 +306,8 @@ if(!empty($mapping))
|
||||
$tvt=0.00;
|
||||
if(!empty($mapping)){
|
||||
foreach($mapping as $ap)
|
||||
{
|
||||
{
|
||||
// print_r($mapping );die();
|
||||
?>
|
||||
<tr>
|
||||
|
||||
@ -252,7 +326,7 @@ if(!empty($mapping))
|
||||
<td align="left" id="aa"><span><?php echo $ap->Balancetopay?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->Amountpaid?></span></td>
|
||||
<?php
|
||||
if($ap->FilePath=='')
|
||||
if($ap->file=='')
|
||||
{
|
||||
?>
|
||||
<td>No File</td>
|
||||
@ -264,13 +338,35 @@ if(!empty($mapping))
|
||||
|
||||
|
||||
?>
|
||||
<td> <a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $ap->FilePath ?>"><i class="fa fa-download" ></i></a></td>
|
||||
|
||||
<td> <a target="_blank" href="<?php echo base_url().''.$ap->file ?>" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button class="btn btn-info btn-sm">Download</button></a> </td>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
<td>
|
||||
|
||||
<?php
|
||||
if($im->FilePath=='')
|
||||
{
|
||||
?>
|
||||
<td>N/A</td>
|
||||
<?php
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<td> <button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">Download</button></td>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
<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?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||
</td>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user