status update
This commit is contained in:
parent
5398415b9d
commit
ccf97a5896
@ -984,11 +984,12 @@ class cashbook extends BaseController
|
||||
$tdate = $this->input->post('to_date');
|
||||
//$data['cash'] = $_GET['sid'];
|
||||
//$data['bankid'] = $_GET['d'];
|
||||
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate);
|
||||
$data['bankdepitpaid'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet1();
|
||||
$data['bankdepitpaid'] = $this->cashbook_model->debitbankstatemet1();
|
||||
//print_r($data['bankdepit']);
|
||||
}
|
||||
$data['getsupplier'] = $this->cashbook_model->getsupplier();
|
||||
$this->loadViews("bankdebit",$this->global,$data,NULL);
|
||||
@ -1127,11 +1128,11 @@ class cashbook extends BaseController
|
||||
$pono = $this->input->post('pono');
|
||||
$igrno=$this->input->post('igrno');
|
||||
$igrlineitem=$this->input->post('igrlineitem');
|
||||
|
||||
|
||||
$sname = $this->input->post('sname');
|
||||
$sid = $this->input->post('sid');
|
||||
$tot = $this->input->post('tot');
|
||||
// echo'tot'.$tot;
|
||||
|
||||
|
||||
$rowcount = $this->input->post('rc');
|
||||
|
||||
@ -1240,6 +1241,7 @@ class cashbook extends BaseController
|
||||
else
|
||||
{
|
||||
$igrstatus=PARTIALLY_PAIDIGR;
|
||||
|
||||
}
|
||||
$igrdetails=array('BankStatus'=>$igrstatus);
|
||||
$result1 = $this->cashbook_model->igrdetailstatus($igrdetails,$igrlineitem);
|
||||
|
||||
@ -2023,6 +2023,7 @@ function receiptdata()
|
||||
|
||||
function igrdetailstatus($igrdetails,$igrlineitem)
|
||||
{
|
||||
echo $igrdetails;
|
||||
$this->db->where('IGRItemNo',$igrlineitem);
|
||||
$this->db->update('T_IGR_Details',$igrdetails);
|
||||
$r = $this->db->affected_rows();
|
||||
|
||||
@ -43,7 +43,7 @@ foreach($financialyear as $item)
|
||||
</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;">Un Receivable Invoice Report(<?php if(!empty($fa)){
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc; font-size: 18px;">Receivable Invoice Report(<?php if(!empty($fa)){
|
||||
echo $fa;
|
||||
}
|
||||
|
||||
|
||||
@ -125,7 +125,7 @@ foreach($financialyear as $item)
|
||||
<option value="">Select Supplier</option>
|
||||
<?php foreach($getsupplier as $gs):
|
||||
{?>
|
||||
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ; ?></option>
|
||||
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ;?></option>
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
@ -169,8 +169,8 @@ foreach($financialyear as $item)
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($bankdepit)){
|
||||
foreach($bankdepit as $t)
|
||||
if(!empty($bankdepitpaid)){
|
||||
foreach($bankdepitpaid as $t)
|
||||
{
|
||||
|
||||
$status=$t->Paymentstatus;
|
||||
@ -185,12 +185,12 @@ foreach($financialyear as $item)
|
||||
|
||||
<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="pono<?php echo $i ?>"><span><?php echo $t->PONO?></span></a></td>
|
||||
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $t->IGRNO?></span></a></td>
|
||||
<td align="left" id="igrlineitem<?php echo $i ?>" ><span><?php echo $t->IGRItemNo?></span></td>
|
||||
<td align="left" id="sn<?php echo $i ?>" ><span><?php echo $t->SupplierName?></span></td>
|
||||
<td style="display:none;" align="left" id="sid<?php echo $i ?>" ><span><?php echo $t->SupplierID?></span></td>
|
||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php echo round($rate,2)?></span></td>
|
||||
<td align="left" id="pono<?php echo $i ?>"><span><?php echo $t->PONO?></span></td>
|
||||
<td align="left" id="igrno<?php echo $i ?>"><span><?php echo $t->IGRNO?></span></td>
|
||||
<td align="left" id="igrlineitem<?php echo $i ?>"><span><?php echo trim($t->IGRItemNo)?></span></td>
|
||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $t->SupplierName?></span></td>
|
||||
<td style="display:none;" align="left" id="sid<?php echo $i ?>"><span><?php echo $t->SupplierID?></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>
|
||||
|
||||
@ -198,7 +198,7 @@ foreach($financialyear as $item)
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot width="100%">
|
||||
@ -222,7 +222,7 @@ foreach($financialyear as $item)
|
||||
</table>
|
||||
|
||||
<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>
|
||||
@ -342,15 +342,18 @@ function GetPayment(i)
|
||||
{
|
||||
row = parseInt(row)+1;
|
||||
$('#Rowid').val(row);
|
||||
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 date= document.getElementById ("date"+i).innerText;//value taken from table, col name : date
|
||||
|
||||
var igrno =document.getElementById ( "igrno"+i ).innerText;
|
||||
var igrlineitem=document.getElementById ( "igrlineitem"+i ).innerText;
|
||||
var supname =document.getElementById ("sn"+i ).innerText;//value taken from table col name : suppliername
|
||||
var pono =document.getElementById ("pono"+i).innerText;//value taken from table, col name : purchase
|
||||
var igrno1 =document.getElementById ("igrno"+i).innerText;
|
||||
var igrno=igrno1.trim();
|
||||
var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
|
||||
var igrlineitem=igrlineitem1.trim();
|
||||
//alert(igrlineitem.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 invoicepayment =document.getElementById ( "qw"+i ).innerText;//value taken from table col name : Balance to pay
|
||||
var invoicepayment =document.getElementById ("qw"+i).innerText;//value taken from table col name : Balance to pay
|
||||
$('#invoicepaymet'+i).val(invoicepayment);//to copy the value from 'balance to pay' to 'amount paid'
|
||||
|
||||
|
||||
@ -420,7 +423,7 @@ function GetPayment(i)
|
||||
intex = parseInt(intex)+1;
|
||||
|
||||
var bankdebitamount=$('#debitamount').val();
|
||||
var totalvalue=$('#addvalue').val();
|
||||
//var totalvalue=$('#addvalue').val();
|
||||
//var balanceamount=bankdebitamount-totalvalue;
|
||||
// alert(bankdebitamount);
|
||||
// alert(totalvalue);
|
||||
@ -436,13 +439,14 @@ function GetPayment(i)
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
alert('esle');
|
||||
var rr = $('#Rowid').val();
|
||||
row = parseInt(rr)-1;
|
||||
|
||||
var Payment = parseFloat( $('#invoicepaymet'+i).val() == '' ? '0.00' : $('#invoicepaymet'+i).val());
|
||||
|
||||
var Inid = document.getElementById ('igrlineitem'+i ).innerText
|
||||
var Inid1 = document.getElementById ('igrlineitem'+i ).innerText
|
||||
var Inid=Inid1.trim();
|
||||
var ponovalue = i+','+Inid+','+Payment;
|
||||
|
||||
$.each(temppo,function(i,val){
|
||||
@ -464,7 +468,7 @@ else
|
||||
|
||||
calculategrandtotal();
|
||||
|
||||
$('#invoicepaymet'+i).val('');
|
||||
//$('#invoicepaymet'+i).val('');
|
||||
|
||||
|
||||
$('#Rowid').val(row);
|
||||
@ -523,20 +527,23 @@ function GetAmount(i)
|
||||
if(x==true )
|
||||
{
|
||||
|
||||
var date= document.getElementById ( "date"+i ).innerText;
|
||||
var pono =document.getElementById ( "pono"+i ).innerText;
|
||||
var igr =document.getElementById ( "igrno"+i ).innerText;
|
||||
var igrlineitem=document.getElementById ( "igrlineitem"+i ).innerText;
|
||||
var supname =document.getElementById ("sn"+i ).innerText;
|
||||
var date= document.getElementById ("date"+i).innerText;
|
||||
var pono =document.getElementById ("pono"+i).innerText;
|
||||
var igr =document.getElementById ("igrno"+i).innerText;
|
||||
var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
|
||||
var igrlineitem=igrlineitem1.trim();
|
||||
alert(igrlineitem+'true');
|
||||
var supname =document.getElementById ("sn"+i).innerText;
|
||||
var supid =document.getElementById ("sid"+i ).innerText;
|
||||
var totalordervalue =document.getElementById ("tov"+i ).innerText;
|
||||
var balancetopay =document.getElementById ( "qw"+i ).innerText;
|
||||
var balancetopay =document.getElementById ("qw"+i ).innerText;
|
||||
|
||||
for(k=1;k<=i;k++)
|
||||
{
|
||||
//alert(k);
|
||||
var idcheck=$('#igrlineitem'+k).val();
|
||||
|
||||
var idcheck1=$('#igrlineitem'+k).val();
|
||||
var idcheck=idcheck1.trim();
|
||||
|
||||
if(igrlineitem == idcheck)
|
||||
{
|
||||
var cid=k;
|
||||
@ -589,9 +596,10 @@ function GetAmount(i)
|
||||
/** To calculate the overall total and store the value in table's footer */
|
||||
function calculategrandtotal(){
|
||||
|
||||
|
||||
$.each(temppo, function( index, value )
|
||||
{
|
||||
|
||||
alert(temppo);
|
||||
var res2 = value.split(',');
|
||||
tempTotal[index]=parseFloat(res2[2]);
|
||||
//alert(tempTotal[index]);
|
||||
@ -625,6 +633,7 @@ function Save()
|
||||
// alert('rwval'+'-'+rw);
|
||||
check = parseFloat(check)+1;
|
||||
var bankdebitamount=$('#debitamount').val();
|
||||
alert(bankdebitamount+'da');
|
||||
// alert('bankdebitamountval'+'-'+bankdebitamount);
|
||||
var bid =$('#bankid').val();
|
||||
|
||||
@ -634,10 +643,10 @@ function Save()
|
||||
var pono =$('#hidepono'+number).val();
|
||||
//alert('ponoval'+'-'+pono);
|
||||
var igrno =$('#hideigrno'+number).val();
|
||||
|
||||
// alert('igrnoval'+'-'+igrno);
|
||||
|
||||
var igrlineitem =$('#hideigrline'+number).val();
|
||||
// alert('igrlineitemval'+'-'+igrlineitem);
|
||||
var igrlineitem =$('#hideigrline'+number).val();
|
||||
|
||||
var suppliername=$('#hidesupname'+number).val();
|
||||
|
||||
|
||||
@ -332,8 +332,9 @@ if(x==true)
|
||||
row = parseInt(row)+1;
|
||||
$('#Rowid').val(row);
|
||||
var date= document.getElementById ( "invoicedate"+i ).innerText;
|
||||
var invid =document.getElementById ( "invoice_id"+i ).innerText;
|
||||
//alert(invid);
|
||||
var invid1 =document.getElementById ( "invoice_id"+i ).innerText;
|
||||
var invid=invid1.trim();
|
||||
|
||||
var cusname =document.getElementById ("client_name"+i ).innerText;
|
||||
var cusid =document.getElementById ("clientid"+i ).innerText;
|
||||
|
||||
@ -414,7 +415,8 @@ else
|
||||
row = parseInt(rr)-1;
|
||||
|
||||
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;
|
||||
//alert(invoicevalue);
|
||||
|
||||
@ -480,7 +482,8 @@ function GetAmount(i)
|
||||
{
|
||||
|
||||
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 cusid =document.getElementById ("clientid"+i ).innerText;
|
||||
|
||||
@ -216,7 +216,7 @@ foreach($financialyear as $item)
|
||||
<tr>
|
||||
|
||||
<th style="width:50%;">Supplier Name</th>
|
||||
<th>Paid Amount (₹)</th>
|
||||
<th>Received Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -299,7 +299,7 @@ foreach($financialyear as $item)
|
||||
<tr>
|
||||
|
||||
<th style="width:50%;">Account Name</th>
|
||||
<th>Paid Amount(₹)</th>
|
||||
<th>Received Amount(₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
<tr>
|
||||
|
||||
<th>Supplier Name</th>
|
||||
<th>UnReceivable Amount (₹)</th>
|
||||
<th>Receivable Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user