amendment per value
This commit is contained in:
parent
2f2ee5f7c6
commit
f0858cd554
@ -1309,12 +1309,15 @@ function UpdateAmendServicePurchaseOrder()
|
|||||||
$Freightrate=$this->input->post('FreightValue'.$i);
|
$Freightrate=$this->input->post('FreightValue'.$i);
|
||||||
$Freightamount=$this->input->post('AfterFreightValue'.$i);
|
$Freightamount=$this->input->post('AfterFreightValue'.$i);
|
||||||
|
|
||||||
|
$per=$this->input->post('Per'.$i);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$beforeFreightType=$this->input->post('beforeFreightType'.$i);
|
$beforeFreightType=$this->input->post('beforeFreightType'.$i);
|
||||||
$beforeNoOfTrip=$this->input->post('beforeNoOfTrip'.$i);
|
$beforeNoOfTrip=$this->input->post('beforeNoOfTrip'.$i);
|
||||||
$beforeFreightrate=$this->input->post('beforeFreightValue'.$i);
|
$beforeFreightrate=$this->input->post('beforeFreightValue'.$i);
|
||||||
$beforeFreightamount=$this->input->post('beforeAfterFreightValue'.$i);
|
$beforeFreightamount=$this->input->post('beforeAfterFreightValue'.$i);
|
||||||
|
$beforeper=$this->input->post('beforePer'.$i);
|
||||||
|
|
||||||
// if($RMCIncludingCustomersPerKG-$beforeRMCIncludingCustomersPerKG )
|
// if($RMCIncludingCustomersPerKG-$beforeRMCIncludingCustomersPerKG )
|
||||||
// {
|
// {
|
||||||
@ -1458,6 +1461,14 @@ function UpdateAmendServicePurchaseOrder()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if($per!=$beforeper)
|
||||||
|
{
|
||||||
|
//$CAD=$CAD."Amended Additional Excise duty :".$beforeAddAdtional ."</br>";
|
||||||
|
$rowspanvalue++;
|
||||||
|
$CAD=$CAD."<tr><td>Amended Per Value: ".$beforeper ."</td><td>Current Per Value:".$per."</td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($rowspanvalue>0)
|
if($rowspanvalue>0)
|
||||||
{
|
{
|
||||||
@ -1476,7 +1487,7 @@ function UpdateAmendServicePurchaseOrder()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD);
|
$POLineItemList = array('PONO'=>$NewPO, 'ReqNo'=>$Reqnumber,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'AmendedDetails'=>$CAD,'Per'=>$per);
|
||||||
//print_r($POLineItemList);
|
//print_r($POLineItemList);
|
||||||
|
|
||||||
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
|
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
|
||||||
|
|||||||
@ -1624,6 +1624,10 @@ if(!empty($RequistionDetails))
|
|||||||
<input type="hidden" name="<?php echo 'beforeAfterFreightValue'.$index ?>" id="<?php echo 'beforeAfterFreightValue'.$index ?>" value="<?php echo $record->AfterFreightValue; ?>" />
|
<input type="hidden" name="<?php echo 'beforeAfterFreightValue'.$index ?>" id="<?php echo 'beforeAfterFreightValue'.$index ?>" value="<?php echo $record->AfterFreightValue; ?>" />
|
||||||
|
|
||||||
|
|
||||||
|
<input type="hidden" name="<?php echo 'Per'.$index ?>" id="<?php echo 'Per'.$index ?>" value="<?php echo $record->Per; ?>" />
|
||||||
|
<input type="hidden" name="<?php echo 'beforePer'.$index ?>" id="<?php echo 'beforePer'.$index ?>" value="<?php echo $record->Per; ?>" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -3294,6 +3298,7 @@ $('#editimportpomodel').on("shown.bs.modal", function(e) {
|
|||||||
$('#AmendtxtFreight').val($("#FreightValue"+userid).val());
|
$('#AmendtxtFreight').val($("#FreightValue"+userid).val());
|
||||||
$('#AmendtxtAfterFreight').val($("#AfterFreightValue"+userid).val());
|
$('#AmendtxtAfterFreight').val($("#AfterFreightValue"+userid).val());
|
||||||
|
|
||||||
|
$('#EditAmendPer').val($("#Per"+userid).val());
|
||||||
|
|
||||||
var FreightType = $('#drpamendFreight').val();
|
var FreightType = $('#drpamendFreight').val();
|
||||||
|
|
||||||
@ -3421,6 +3426,15 @@ $('.EditImport').click(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var per=$('#EditAmendPer').val();
|
||||||
|
|
||||||
|
if(per=='')
|
||||||
|
{
|
||||||
|
var per=$('#EditUOM').val();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// console.log(FreightType);
|
// console.log(FreightType);
|
||||||
// console.log(Nooftrip);
|
// console.log(Nooftrip);
|
||||||
// console.log(FreightRate);
|
// console.log(FreightRate);
|
||||||
@ -3486,6 +3500,8 @@ $('.EditImport').click(function(){
|
|||||||
$('#FreightValue'+userid).val(FreightRate);
|
$('#FreightValue'+userid).val(FreightRate);
|
||||||
$('#AfterFreightValue'+userid).val(FreightRateAmount);
|
$('#AfterFreightValue'+userid).val(FreightRateAmount);
|
||||||
|
|
||||||
|
$('#Per'+userid).val(per.trim());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// var a=$('#FreightType'+userid).val();
|
// var a=$('#FreightType'+userid).val();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user