poeditable
This commit is contained in:
parent
41fc9df7d8
commit
dd19057792
@ -1345,32 +1345,21 @@ function edited(){
|
||||
|
||||
$recqty= $Quantity;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$IGRD= $this->purchaseorder_model->IGRDetailsupdate($PONO);
|
||||
|
||||
$IGRItem=0;
|
||||
$IGRNO=0;
|
||||
|
||||
foreach($IGRD as $value)
|
||||
{
|
||||
|
||||
|
||||
$IGRItemNo=$value['IGRItemNo'];
|
||||
$IGRNO= $value['IGRNO'];
|
||||
|
||||
}
|
||||
$j = $i-1;
|
||||
|
||||
|
||||
// print_r($IGRD); die;
|
||||
$IGRDs = array('QuantityAsPerInvoice'=>$Quantity,'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt);
|
||||
|
||||
//print_r($IGRDs);die;
|
||||
$this->purchaseorder_model->updateIGR($IGRItemNo,$IGRNO,$MaterialCode,$IGRDs);
|
||||
|
||||
$this->purchaseorder_model->updateIGR($IGRD[$j]['IGRItemNo'],$IGRDs);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1404,7 +1393,7 @@ function edited(){
|
||||
|
||||
$LineItemNo = $POLineItemNo;
|
||||
|
||||
$POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'CostCenterCode'=>$CostCenter);
|
||||
$POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'ReceivedQuantity'=>$recqty,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'CostCenterCode'=>$CostCenter);
|
||||
|
||||
|
||||
//print_r($POLineItemList);
|
||||
|
||||
@ -57,20 +57,18 @@ Where IGRM.PONO = ? ';
|
||||
}
|
||||
|
||||
|
||||
function updateIGR($IGRItemNo,$IGRNO,$MaterialCode,$IGRDs)
|
||||
function updateIGR($IGRItemNo,$IGRDs) //,$MaterialCode,
|
||||
{
|
||||
//print_r(array($IGRDs,$IGRItemNo));
|
||||
|
||||
// echo $IGRItemNo;
|
||||
// echo $IGRNO;
|
||||
// die();
|
||||
$this->db->where('IGRItemNo',$IGRItemNo);
|
||||
$this->db->where('IGRNO',$IGRNO);
|
||||
$this->db->where('MaterialCode',$MaterialCode);
|
||||
$this->db->where('IGRItemNo',$IGRItemNo); //,'IGRNO',$IGRNO,'MaterialCode',$MaterialCode);
|
||||
//$this->db->where('IGRNO',$IGRNO);
|
||||
// $this->db->where('MaterialCode',$MaterialCode);
|
||||
$this->db->update('T_IGR_Details',$IGRDs);
|
||||
|
||||
$r = $this->db->affected_rows();
|
||||
|
||||
// print_r( $this->db->last_query());
|
||||
// $this->db->last_query();
|
||||
|
||||
return $r;
|
||||
|
||||
|
||||
@ -199,6 +199,7 @@ $('html').bind('keypress', function(e)
|
||||
//print_r($sample);
|
||||
$index = 0;
|
||||
$i = 0;
|
||||
$totalempSal = [];
|
||||
foreach($sample as $i=> $record)
|
||||
{
|
||||
//echo 'PAY'.$record->Key;
|
||||
@ -270,7 +271,7 @@ $('html').bind('keypress', function(e)
|
||||
|
||||
<td id="empsal<?php echo $index?>"><?php echo $empSalary[$i];?></td>
|
||||
|
||||
|
||||
<?php $totalempSal [] = $empSalary[$i];?>
|
||||
|
||||
|
||||
|
||||
@ -310,6 +311,14 @@ $('html').bind('keypress', function(e)
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot><tr>
|
||||
<th colspan="4"></th>
|
||||
<th colspan="4"></th>
|
||||
<th colspan="2"></th>
|
||||
<th>Total</th>
|
||||
<th> <?php echo array_sum($totalempSal);?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<p> </p>
|
||||
<div class="row">
|
||||
@ -510,11 +519,11 @@ function isCheckKeyCode(event){
|
||||
|
||||
|
||||
}
|
||||
var totalinst = [];
|
||||
|
||||
function changeInput(event,k)
|
||||
{
|
||||
|
||||
|
||||
|
||||
var str=event.target.id;
|
||||
var sno = str.substr(8);
|
||||
//alert(sno);
|
||||
@ -543,8 +552,8 @@ function isCheckKeyCode(event){
|
||||
var loanamt =parseFloat(document.getElementById('loanamt'+sno).value);
|
||||
var paidamt =parseFloat(document.getElementById('paidamt'+sno).value);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -687,10 +696,8 @@ function isCheckKeyCode(event){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user