change MIR

This commit is contained in:
venbatechnologies 2018-03-08 14:02:11 +05:30
parent 7a4bcc30c9
commit e90e49c4b2
2 changed files with 22 additions and 3 deletions

View File

@ -249,8 +249,9 @@ where igrm.IGRStatus ='ST027'";
}
$sql.="group by igrm.CreatedDate";
//$sql.="order by igrm.CreatedDate";
$sql.="order by igrm.CreatedDate";
$query = $this->db->query($sql);

View File

@ -184,19 +184,37 @@
<td><?php echo $gmir->Quantity;?></td>
<td><?php echo $gmir->ReceivedQuantity;?></td>
<td style="text-align:right;"><?php
if ($gmir->Quantity >= $gmir->ReceivedQuantity){
$Quantity= round($gmir->Quantity);
$ReceivedQuantity= round($gmir->ReceivedQuantity);
$Shortage=$Quantity - $ReceivedQuantity;
echo $Shortage; ?></td>
echo $Shortage;} else ?></td>
<!-- number_format($Rating, 2, '.', ' ') -->
<!-- h:i:sa -->
<td><?php echo $gmir->AmendmentQuantity;?></td>
<td><?php
{
$Quantity= round($gmir->Quantity);
$ReceivedQuantity= round($gmir->ReceivedQuantity);
$Excess= $ReceivedQuantity -$Quantity ;
echo $Excess;}?></td>
<td><?php echo $gmir->DeliveryChellanOrInvoiceNo;?></td>
<td><?php echo $gmir->DeliveryChellanDate;?></td>
<td><?php echo $gmir->VehicleNo;?></td>