From 2f1198701196fdea09befd674c448cf8421af15a Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Fri, 18 Aug 2017 16:18:45 +0530 Subject: [PATCH] Distribution list issue fixed --- application/controllers/MRIRcontroller.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/controllers/MRIRcontroller.php b/application/controllers/MRIRcontroller.php index b335e983..3bf6a016 100755 --- a/application/controllers/MRIRcontroller.php +++ b/application/controllers/MRIRcontroller.php @@ -354,9 +354,10 @@ public function viewmMaterialDistributionList() $BalanceQty=0; - - $BalanceQty= $avlQty - $AceptedQty; - + if($avlQty>0 && $avlQty >= $AceptedQty) + { + $BalanceQty= $avlQty - $AceptedQty; + } $ReqDetails = array('Status'=>$StatusCode,'remarks'=>$Remarks,'UpdatedBy'=>$UpdatedBy,'UpdatedOn'=>$updatedDt,'DeliveredQuantity'=>$ReqQuantity);