IGR issue fixed
This commit is contained in:
parent
309762b0bc
commit
faa5d6632d
@ -70,8 +70,10 @@ class inwardgateregister extends BaseController
|
||||
|
||||
|
||||
$PO = $this->input->post('id');
|
||||
$CreatedBy = $this->session->userdata('userId');
|
||||
$this->inwardgateregister_model->UpdatePOMaster($PO,$CreatedBy);
|
||||
$data = $this->inwardgateregister_model->viewpurchaseorder($PO);
|
||||
//print_r($data);
|
||||
|
||||
echo json_encode($data);
|
||||
|
||||
|
||||
@ -129,19 +131,25 @@ class inwardgateregister extends BaseController
|
||||
|
||||
$MaterialCode = $this->input->post('MaterialCode'.$i);
|
||||
|
||||
$QuantityAsPerInvoice = $this->input->post('ReceivedQuantity'.$i);
|
||||
$QuantityAsPerInvoice = $this->input->post('txtQuantityAsPerInvoice'.$i);
|
||||
|
||||
$OrderedQuantity = $this->input->post('OrderedQuantity'.$i);
|
||||
|
||||
$ReceivedQty = $this->input->post('txtReceivedQuantity'.$i);
|
||||
|
||||
|
||||
echo ' ';
|
||||
$PendingQty = $this->input->post('txtPendingQty'.$i);
|
||||
//echo $QuantityAsPerInvoice;
|
||||
//echo $PendingQty.'ReceivedQty'.$ReceivedQty;
|
||||
//echo ' ';
|
||||
|
||||
if(strlen($QuantityAsPerInvoice)>0)
|
||||
{
|
||||
$Remarks = $this->input->post('txtRemarks'.$i);
|
||||
$ItemStatus = '';
|
||||
if($QuantityAsPerInvoice == $OrderedQuantity)
|
||||
//if($QuantityAsPerInvoice == $OrderedQuantity)
|
||||
|
||||
if($PendingQty == 0.00 )
|
||||
|
||||
{
|
||||
$ItemStatus = IGR_CREATED;
|
||||
}
|
||||
@ -167,7 +175,7 @@ class inwardgateregister extends BaseController
|
||||
}
|
||||
$totalReceivedqty = $ReceivedQuantity + $QuantityAsPerInvoice;
|
||||
|
||||
echo '';
|
||||
//echo '';
|
||||
|
||||
$POLineItem = array('ReceivedQuantity'=>$totalReceivedqty,'Status'=>$ItemStatus,'UpdateBY'=>$CreatedBy,'UpdatedOn'=>$createddt );
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user