status update

This commit is contained in:
gayathri1990 2018-11-05 19:12:00 +05:30
parent 5398415b9d
commit ccf97a5896
7 changed files with 59 additions and 44 deletions

View File

@ -984,11 +984,12 @@ class cashbook extends BaseController
$tdate = $this->input->post('to_date'); $tdate = $this->input->post('to_date');
//$data['cash'] = $_GET['sid']; //$data['cash'] = $_GET['sid'];
//$data['bankid'] = $_GET['d']; //$data['bankid'] = $_GET['d'];
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate); $data['bankdepitpaid'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate);
} }
else else
{ {
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet1(); $data['bankdepitpaid'] = $this->cashbook_model->debitbankstatemet1();
//print_r($data['bankdepit']);
} }
$data['getsupplier'] = $this->cashbook_model->getsupplier(); $data['getsupplier'] = $this->cashbook_model->getsupplier();
$this->loadViews("bankdebit",$this->global,$data,NULL); $this->loadViews("bankdebit",$this->global,$data,NULL);
@ -1131,7 +1132,7 @@ class cashbook extends BaseController
$sname = $this->input->post('sname'); $sname = $this->input->post('sname');
$sid = $this->input->post('sid'); $sid = $this->input->post('sid');
$tot = $this->input->post('tot'); $tot = $this->input->post('tot');
// echo'tot'.$tot;
$rowcount = $this->input->post('rc'); $rowcount = $this->input->post('rc');
@ -1240,6 +1241,7 @@ class cashbook extends BaseController
else else
{ {
$igrstatus=PARTIALLY_PAIDIGR; $igrstatus=PARTIALLY_PAIDIGR;
} }
$igrdetails=array('BankStatus'=>$igrstatus); $igrdetails=array('BankStatus'=>$igrstatus);
$result1 = $this->cashbook_model->igrdetailstatus($igrdetails,$igrlineitem); $result1 = $this->cashbook_model->igrdetailstatus($igrdetails,$igrlineitem);

View File

@ -2023,6 +2023,7 @@ function receiptdata()
function igrdetailstatus($igrdetails,$igrlineitem) function igrdetailstatus($igrdetails,$igrlineitem)
{ {
echo $igrdetails;
$this->db->where('IGRItemNo',$igrlineitem); $this->db->where('IGRItemNo',$igrlineitem);
$this->db->update('T_IGR_Details',$igrdetails); $this->db->update('T_IGR_Details',$igrdetails);
$r = $this->db->affected_rows(); $r = $this->db->affected_rows();

View File

@ -43,7 +43,7 @@ foreach($financialyear as $item)
</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:#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; echo $fa;
} }

View File

@ -169,8 +169,8 @@ 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;
@ -185,9 +185,9 @@ 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 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->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="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></a></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 $t->IGRItemNo?></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 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 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="tov<?php echo $i ?>" ><span><?php echo round($rate,2)?></span></td>
@ -222,7 +222,7 @@ 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()" >&nbsp;&nbsp;<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>
@ -343,10 +343,13 @@ function GetPayment(i)
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 pono =document.getElementById ("pono"+i).innerText;//value taken from table, col name : purchase
var igrlineitem=document.getElementById ( "igrlineitem"+i ).innerText; 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 supname =document.getElementById ("sn"+i).innerText;//value taken from table col name : suppliername
var supid =document.getElementById ("sid"+i ).innerText; 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
@ -420,7 +423,7 @@ function GetPayment(i)
intex = parseInt(intex)+1; intex = parseInt(intex)+1;
var bankdebitamount=$('#debitamount').val(); var bankdebitamount=$('#debitamount').val();
var totalvalue=$('#addvalue').val(); //var totalvalue=$('#addvalue').val();
//var balanceamount=bankdebitamount-totalvalue; //var balanceamount=bankdebitamount-totalvalue;
// alert(bankdebitamount); // alert(bankdebitamount);
// alert(totalvalue); // alert(totalvalue);
@ -436,13 +439,14 @@ function GetPayment(i)
else else
{ {
alert('esle');
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 ('igrlineitem'+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){
@ -464,7 +468,7 @@ else
calculategrandtotal(); calculategrandtotal();
$('#invoicepaymet'+i).val(''); //$('#invoicepaymet'+i).val('');
$('#Rowid').val(row); $('#Rowid').val(row);
@ -526,7 +530,9 @@ function GetAmount(i)
var date= document.getElementById ("date"+i).innerText; var date= document.getElementById ("date"+i).innerText;
var pono =document.getElementById ("pono"+i).innerText; var pono =document.getElementById ("pono"+i).innerText;
var igr =document.getElementById ("igrno"+i).innerText; var igr =document.getElementById ("igrno"+i).innerText;
var igrlineitem=document.getElementById ( "igrlineitem"+i ).innerText; var igrlineitem1=document.getElementById ("igrlineitem"+i).innerText;
var igrlineitem=igrlineitem1.trim();
alert(igrlineitem+'true');
var supname =document.getElementById ("sn"+i).innerText; var supname =document.getElementById ("sn"+i).innerText;
var supid =document.getElementById ("sid"+i ).innerText; var supid =document.getElementById ("sid"+i ).innerText;
var totalordervalue =document.getElementById ("tov"+i ).innerText; var totalordervalue =document.getElementById ("tov"+i ).innerText;
@ -535,7 +541,8 @@ function GetAmount(i)
for(k=1;k<=i;k++) for(k=1;k<=i;k++)
{ {
//alert(k); //alert(k);
var idcheck=$('#igrlineitem'+k).val(); var idcheck1=$('#igrlineitem'+k).val();
var idcheck=idcheck1.trim();
if(igrlineitem == idcheck) if(igrlineitem == idcheck)
{ {
@ -589,9 +596,10 @@ function GetAmount(i)
/** To calculate the overall total and store the value in table's footer */ /** 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 )
{ {
alert(temppo);
var res2 = value.split(','); var res2 = value.split(',');
tempTotal[index]=parseFloat(res2[2]); tempTotal[index]=parseFloat(res2[2]);
//alert(tempTotal[index]); //alert(tempTotal[index]);
@ -625,6 +633,7 @@ function Save()
// alert('rwval'+'-'+rw); // alert('rwval'+'-'+rw);
check = parseFloat(check)+1; check = parseFloat(check)+1;
var bankdebitamount=$('#debitamount').val(); var bankdebitamount=$('#debitamount').val();
alert(bankdebitamount+'da');
// alert('bankdebitamountval'+'-'+bankdebitamount); // alert('bankdebitamountval'+'-'+bankdebitamount);
var bid =$('#bankid').val(); var bid =$('#bankid').val();
@ -634,10 +643,10 @@ function Save()
var pono =$('#hidepono'+number).val(); var pono =$('#hidepono'+number).val();
//alert('ponoval'+'-'+pono); //alert('ponoval'+'-'+pono);
var igrno =$('#hideigrno'+number).val(); var igrno =$('#hideigrno'+number).val();
// alert('igrnoval'+'-'+igrno); // alert('igrnoval'+'-'+igrno);
var igrlineitem =$('#hideigrline'+number).val(); var igrlineitem =$('#hideigrline'+number).val();
// alert('igrlineitemval'+'-'+igrlineitem);
var suppliername=$('#hidesupname'+number).val(); var suppliername=$('#hidesupname'+number).val();

View File

@ -332,8 +332,9 @@ 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 cusid =document.getElementById ("clientid"+i ).innerText;
@ -414,7 +415,8 @@ 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);
@ -480,7 +482,8 @@ 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 cusid =document.getElementById ("clientid"+i ).innerText;

View File

@ -216,7 +216,7 @@ foreach($financialyear as $item)
<tr> <tr>
<th style="width:50%;">Supplier Name</th> <th style="width:50%;">Supplier Name</th>
<th>Paid Amount (&#8377;)</th> <th>Received Amount (&#8377;)</th>
</tr> </tr>
</thead> </thead>
@ -299,7 +299,7 @@ foreach($financialyear as $item)
<tr> <tr>
<th style="width:50%;">Account Name</th> <th style="width:50%;">Account Name</th>
<th>Paid Amount(&#8377;)</th> <th>Received Amount(&#8377;)</th>
</tr> </tr>
</thead> </thead>

View File

@ -158,7 +158,7 @@
<tr> <tr>
<th>Supplier Name</th> <th>Supplier Name</th>
<th>UnReceivable Amount (&#8377;)</th> <th>Receivable Amount (&#8377;)</th>
</tr> </tr>
</thead> </thead>