total value
This commit is contained in:
parent
c1c8b14698
commit
123f055b90
@ -858,7 +858,8 @@ function GetImportPurchaseOrderDetails($PONO = '')
|
|||||||
$subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,
|
$subQuery ='SELECT distinct LineItem.LineItemNo,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,
|
||||||
Mat.UOM,Quantity,Rate,Req.Status,ROUND((Quantity *Rate),2 ) as BasicValue,ReceivedQuantity,
|
Mat.UOM,Quantity,Rate,Req.Status,ROUND((Quantity *Rate),2 ) as BasicValue,ReceivedQuantity,
|
||||||
QuantityRejected,ROUND(Quantity-ReceivedQuantity)as PendingQty,
|
QuantityRejected,ROUND(Quantity-ReceivedQuantity)as PendingQty,
|
||||||
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((Quantity *Rate)+(RMCIncludingCustomersPerKG*Quantity),2)as TotalOrderValue,ROUND((POMast.ExchangeRate*BasicPriceInMTon),2) as BasicINRValue,TotalValue,CurrencyType,ReceivedQuantity,
|
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,
|
||||||
|
AfterCustomEdCess,ROUND((Quantity *Rate),2)as TotalOrderValue,ROUND((POMast.ExchangeRate*BasicPriceInMTon),2) as BasicINRValue,TotalValue,CurrencyType,ReceivedQuantity,
|
||||||
|
|
||||||
Req.CostCenterCode,Dept.DepartmentName FROM T_PurchaseOrder_LineItem LineItem
|
Req.CostCenterCode,Dept.DepartmentName FROM T_PurchaseOrder_LineItem LineItem
|
||||||
join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO
|
join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO
|
||||||
|
|||||||
@ -2467,10 +2467,11 @@ if($PONOStatus == PO_RELEASED)
|
|||||||
$totavlmodvat=$totavlmodvat+$record->AvailableModvat;
|
$totavlmodvat=$totavlmodvat+$record->AvailableModvat;
|
||||||
$totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty;
|
$totgrossexpense=$totgrossexpense+$record->Grossexpensesduetocustomduty;
|
||||||
$ExchangeRate=$record->ExchangeRate;
|
$ExchangeRate=$record->ExchangeRate;
|
||||||
//$totorder=$totorder+$record->ProductPrice;
|
//echo $totorder;
|
||||||
$totorder=$totorder+$record->ProductPrice;
|
$totorder=$totorder+$record->TotalOrderValue;
|
||||||
//$ServiceDescription=$record->ServiceDescription;
|
// $totorder=$record->TotalOrderValue;
|
||||||
|
// //$ServiceDescription=$record->ServiceDescription;
|
||||||
|
// echo $totorder;
|
||||||
//alert($totorder);
|
//alert($totorder);
|
||||||
|
|
||||||
|
|
||||||
@ -2483,6 +2484,7 @@ if($PONOStatus == PO_RELEASED)
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$totalhidden=$totorder;
|
$totalhidden=$totorder;
|
||||||
$totorder=number_format($totorder);
|
$totorder=number_format($totorder);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user