MRIR Rejected Status Implemetation
This commit is contained in:
parent
75f2e793c6
commit
264e953a4f
@ -224,9 +224,9 @@ public function viewmMaterialDistributionList()
|
|||||||
$UPdateon = $date->format('Y-m-d H:i:s');
|
$UPdateon = $date->format('Y-m-d H:i:s');
|
||||||
$PONO = $this->input->post('PONO');
|
$PONO = $this->input->post('PONO');
|
||||||
//this array to store the updated value in master table..
|
//this array to store the updated value in master table..
|
||||||
$updatemastervalues = array('MRIRStatus'=>$Status,'UpdateBY'=>$UPdateby,'UpdatedOn'=>$UPdateon);
|
|
||||||
|
|
||||||
$updatemaster = $this->mrir_model->update_mrirmaster($updatemastervalues,$mrir_no);
|
$strStatus = '';
|
||||||
|
|
||||||
$strStatus = '';
|
$strStatus = '';
|
||||||
//echo "outside for loop";
|
//echo "outside for loop";
|
||||||
$CheckEmpty=0;
|
$CheckEmpty=0;
|
||||||
@ -243,8 +243,7 @@ public function viewmMaterialDistributionList()
|
|||||||
$Lineitm = trim($this->input->post('Lineitm'.$i));
|
$Lineitm = trim($this->input->post('Lineitm'.$i));
|
||||||
|
|
||||||
|
|
||||||
//echo $acceptquantity;
|
if($acceptquantity != 0 )
|
||||||
if($rejectquantity==0)
|
|
||||||
{
|
{
|
||||||
$CheckEmpty=$CheckEmpty+$i;
|
$CheckEmpty=$CheckEmpty+$i;
|
||||||
$strStatus = MRIR_APPROVED;
|
$strStatus = MRIR_APPROVED;
|
||||||
@ -259,10 +258,11 @@ public function viewmMaterialDistributionList()
|
|||||||
//echo 'Stock added for'.$mrir_no;
|
//echo 'Stock added for'.$mrir_no;
|
||||||
|
|
||||||
$updatStock = array('Quantity'=>($acceptquantity+$avlQty),'Status'=>'0','UpdatedOn'=>$UPdateon,'UpdatedBy'=>$UPdateby,'Remarks'=>'Stock added for '. $this->input->post('MRIRNO'));
|
$updatStock = array('Quantity'=>($acceptquantity+$avlQty),'Status'=>'0','UpdatedOn'=>$UPdateon,'UpdatedBy'=>$UPdateby,'Remarks'=>'Stock added for '. $this->input->post('MRIRNO'));
|
||||||
|
|
||||||
$this->mrir_model->UpdateStock($updatStock,trim($MaterialCode));
|
$this->mrir_model->UpdateStock($updatStock,trim($MaterialCode));
|
||||||
|
|
||||||
}
|
}
|
||||||
elseif($rejectquantity!=0)
|
elseif($rejectquantity !=0 && $acceptquantity == 0)
|
||||||
{
|
{
|
||||||
$strStatus = MRIR_REJECTED;
|
$strStatus = MRIR_REJECTED;
|
||||||
}
|
}
|
||||||
@ -275,7 +275,7 @@ public function viewmMaterialDistributionList()
|
|||||||
$date = new DateTime('now',new DateTimeZone('Asia/Kolkata'));
|
$date = new DateTime('now',new DateTimeZone('Asia/Kolkata'));
|
||||||
$updateon = $date->format('Y-m-d H:i:s');
|
$updateon = $date->format('Y-m-d H:i:s');
|
||||||
//echo strlen($acceptquantity);
|
//echo strlen($acceptquantity);
|
||||||
if(strlen($acceptquantity)<=0)
|
if(strlen($acceptquantity)<=0 && $acceptquantity == 0)
|
||||||
{
|
{
|
||||||
$rejectquantity = $ActualQty;
|
$rejectquantity = $ActualQty;
|
||||||
//echo 'Reject qty'.$rejectquantity;
|
//echo 'Reject qty'.$rejectquantity;
|
||||||
@ -301,9 +301,9 @@ public function viewmMaterialDistributionList()
|
|||||||
else{
|
else{
|
||||||
$PoMrirStatus = MRIR_REJECTED;
|
$PoMrirStatus = MRIR_REJECTED;
|
||||||
}
|
}
|
||||||
|
$updatemastervalues = array('MRIRStatus'=>$PoMrirStatus,'UpdateBY'=>$UPdateby,'UpdatedOn'=>$UPdateon);
|
||||||
$this->mrir_model->UpdatePOMaster($PONO,$PoMrirStatus,$updateby);
|
$this->mrir_model->UpdatePOMaster($PONO,$PoMrirStatus,$updateby);
|
||||||
|
$updatemaster = $this->mrir_model->update_mrirmaster($updatemastervalues,$mrir_no);
|
||||||
echo "successfully updated :".$mrir_no;
|
echo "successfully updated :".$mrir_no;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user