igramtvalueqtycurrect display

This commit is contained in:
venbatechnologies 2018-06-29 14:13:35 +05:30
parent 34a3846913
commit 3c353bf8bf
2 changed files with 33 additions and 13 deletions

View File

@ -378,7 +378,7 @@ class amendmentpurchaseorder extends BaseController
$CostCenter = $this->input->post('costCode'.$i);
$ServiceFrequency=$this->input->post('Frequency'.$i);
$LineItemNo = '';
$RecQtyvalue=0;
$RecQtyvalue=0.00;
$rowspanvalue=0;
if(($Quantity-$preqty)!=0)
@ -487,11 +487,11 @@ class amendmentpurchaseorder extends BaseController
$CAD="<tr><td rowspan=". $rowspanvalue .">".$MaterialCode."</td></tr>";
$CAD.=$CAD2;
}
$ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
if(count($ReceivedQty)>0)
{
$RecQtyvalue = $ReceivedQty[0]['ReceivedQuantity'];
}
// $ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
// if(count($ReceivedQty)>0)
// {
// $RecQtyvalue = $ReceivedQty[0]['ReceivedQuantity'];
// }
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'ReceivedQuantity'=>$RecQtyvalue,'Quantity'=>$Quantity,'Per'=>$per,'ServiceMaterialDescription'=>$servicematerialdescription,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$updatedBy,'CreatedDate'=>$updateddt,'CostCenterCode'=>$CostCenter,'ServiceFrequency'=>$ServiceFrequency,'AmendedDetails'=>$CAD);
@ -648,14 +648,14 @@ class amendmentpurchaseorder extends BaseController
$TotalOrderValue = $this->input->post('TotalOrderValue'.$i);
$ServiceFrequency=$this->input->post('Frequency'.$i);
$LineItemNo = '';
$RecQtyvalue=0;
$RecQtyvalue=0.00;
$rowspanvalue=0;
$ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
// $ReceivedQty = $this->purchaseorder_model->GetLineItemReceivedQty($PONO,$MaterialCode);
if(count($ReceivedQty)>0)
{
$RecQtyvalue = $ReceivedQty[0]['ReceivedQuantity'];
}
// if(count($ReceivedQty)>0)
// {
// $RecQtyvalue = $ReceivedQty[0]['ReceivedQuantity'];
// }
if($Quantity != $beforeQuantity)
{

View File

@ -156,7 +156,13 @@ foreach($financialyear as $item)
<input type="hidden" name="btc" id="btc<?php echo $i ?>" value="<?php echo $ap->cbalancetocleared?>"/>
<input type="hidden" name="mapid" id="mapid<?php echo $i ?>" value="<?php echo $ap->ID?>?>"/>
<td align="left" id="date<?php echo $i ?>"><span><?php echo $ap->indate?></span></td>
<!-- <td align="left" id="date<?php echo $i ?>"><span><?php echo $ap->indate?></span></td> -->
<td align="left"><?php $Pdt = new DateTime($ap->indate);
$Created_Date = $Pdt->format('d-m-Y');
echo $Created_Date
?></td>
<td align="left" id="invno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $ap->invoiceno;?>"><span><?php echo $ap->invoiceno?></span></a></td>
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
@ -241,6 +247,7 @@ foreach($financialyear as $item)
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script>
function invoice(i)
@ -278,8 +285,20 @@ var bankingbalclear=$('#btc'+i).val();
});
}
</script>
<script>
$(document).ready(function() {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
table = $('#req').DataTable( {
"aaSorting": [[ 0, "desc" ]],
"info": true,
"autoWidth": false,
orderCellsTop: true,
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
@ -339,6 +358,7 @@ $( function() {
}
} );
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>