poeditable
This commit is contained in:
parent
41fc9df7d8
commit
dd19057792
@ -1345,32 +1345,21 @@ function edited(){
|
|||||||
|
|
||||||
$recqty= $Quantity;
|
$recqty= $Quantity;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$IGRD= $this->purchaseorder_model->IGRDetailsupdate($PONO);
|
$IGRD= $this->purchaseorder_model->IGRDetailsupdate($PONO);
|
||||||
|
$j = $i-1;
|
||||||
$IGRItem=0;
|
|
||||||
$IGRNO=0;
|
|
||||||
|
|
||||||
foreach($IGRD as $value)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
$IGRItemNo=$value['IGRItemNo'];
|
|
||||||
$IGRNO= $value['IGRNO'];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// print_r($IGRD); die;
|
// print_r($IGRD); die;
|
||||||
$IGRDs = array('QuantityAsPerInvoice'=>$Quantity,'UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt);
|
$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;
|
$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);
|
//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;
|
$this->db->where('IGRItemNo',$IGRItemNo); //,'IGRNO',$IGRNO,'MaterialCode',$MaterialCode);
|
||||||
// echo $IGRNO;
|
//$this->db->where('IGRNO',$IGRNO);
|
||||||
// die();
|
// $this->db->where('MaterialCode',$MaterialCode);
|
||||||
$this->db->where('IGRItemNo',$IGRItemNo);
|
|
||||||
$this->db->where('IGRNO',$IGRNO);
|
|
||||||
$this->db->where('MaterialCode',$MaterialCode);
|
|
||||||
$this->db->update('T_IGR_Details',$IGRDs);
|
$this->db->update('T_IGR_Details',$IGRDs);
|
||||||
|
|
||||||
$r = $this->db->affected_rows();
|
$r = $this->db->affected_rows();
|
||||||
|
|
||||||
// print_r( $this->db->last_query());
|
// $this->db->last_query();
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
|
|
||||||
|
|||||||
@ -199,6 +199,7 @@ $('html').bind('keypress', function(e)
|
|||||||
//print_r($sample);
|
//print_r($sample);
|
||||||
$index = 0;
|
$index = 0;
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$totalempSal = [];
|
||||||
foreach($sample as $i=> $record)
|
foreach($sample as $i=> $record)
|
||||||
{
|
{
|
||||||
//echo 'PAY'.$record->Key;
|
//echo 'PAY'.$record->Key;
|
||||||
@ -270,7 +271,7 @@ $('html').bind('keypress', function(e)
|
|||||||
|
|
||||||
<td id="empsal<?php echo $index?>"><?php echo $empSalary[$i];?></td>
|
<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>
|
</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>
|
</table>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -510,11 +519,11 @@ function isCheckKeyCode(event){
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
var totalinst = [];
|
||||||
|
|
||||||
function changeInput(event,k)
|
function changeInput(event,k)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var str=event.target.id;
|
var str=event.target.id;
|
||||||
var sno = str.substr(8);
|
var sno = str.substr(8);
|
||||||
//alert(sno);
|
//alert(sno);
|
||||||
@ -543,8 +552,8 @@ function isCheckKeyCode(event){
|
|||||||
var loanamt =parseFloat(document.getElementById('loanamt'+sno).value);
|
var loanamt =parseFloat(document.getElementById('loanamt'+sno).value);
|
||||||
var paidamt =parseFloat(document.getElementById('paidamt'+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