ForgotPassword, Draft for other status issue fixed in PDF
This commit is contained in:
parent
618e52232a
commit
d49d420d2a
@ -343,7 +343,7 @@ public function viewmMaterialDistributionList()
|
||||
$updatedDt = $dt->format('Y-m-d H:i:s');
|
||||
|
||||
$getAvailableqty = $this->mrir_model->getItemQuantityFromStock($MaterialCode);
|
||||
//print_r($getAvailableqty);
|
||||
|
||||
|
||||
$avlQty = 0;
|
||||
|
||||
@ -354,32 +354,22 @@ public function viewmMaterialDistributionList()
|
||||
|
||||
|
||||
$BalanceQty=0;
|
||||
if($StatusCode=='ST050')
|
||||
{
|
||||
$BalanceQty=($avlQty+$AceptedQty)-$ReqQuantity;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$BalanceQty= $avlQty - $AceptedQty;
|
||||
|
||||
//echo $avlQty;
|
||||
//die();
|
||||
|
||||
|
||||
$ReqDetails = array('Status'=>$StatusCode,'remarks'=>$Remarks,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDt,'DeliveredQuantity'=>$ReqQuantity);
|
||||
//print_r($ReqDetails);
|
||||
//die();
|
||||
|
||||
$this->requistion_model->UpdateRequistionLineItem($ReqDetails,$ReqNumber,$MaterialCode);
|
||||
|
||||
$Remark=array('Remarks'=>$Remarks);
|
||||
$this->requistion_model->UpdateStoreRemark($Remark,$MaterialCode);
|
||||
$StoreDetails=array('Remarks'=>'Stock Dedeucted for '.$ReqNumber.' from '.$avlQty,'Quantity'=>$BalanceQty);
|
||||
|
||||
|
||||
if($StatusCode=='ST050')
|
||||
{
|
||||
$BalanceQuantity=array('Quantity'=>$BalanceQty);
|
||||
$this->requistion_model->UpdateAvlQty($StoreDetails,$MaterialCode);
|
||||
|
||||
$this->requistion_model->UpdateAvlQty($BalanceQuantity,$MaterialCode);
|
||||
}
|
||||
|
||||
echo "Successfully Updated the Requistion No: ".$ReqNumber;
|
||||
echo "Material Issued Successfully for the Requistion: ".$ReqNumber;
|
||||
}
|
||||
|
||||
function pageNotFound()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user