diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 7e60f059..c63995d0 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -752,7 +752,7 @@ function GetPOType($ReqNo) function getRevenueTaxinforforpdf($PONO) { - $subQuery ='SELECT group_concat(pl.MaterialCode ORDER BY pl.MaterialCode ASC) as Itemcode,rt.CGST,rt.SGST,rt.IGST,rt.FreightValue,rt.PackagingValue,rt.DiscountValue,rt.AfterDiscount FROM T_Revenue_Tax rt + $subQuery ='SELECT group_concat(pl.MaterialCode ORDER BY pl.MaterialCode ASC) as Itemcode,rt.CGST,rt.SGST,rt.IGST,rt.FreightValue,rt.AfterFreightValue,rt.PackagingValue,rt.AfterPackagingValue,rt.DiscountValue,rt.AfterDiscount FROM T_Revenue_Tax rt join T_PurchaseOrder_LineItem pl on pl.LineItemNo=rt.LineItemNo @@ -760,7 +760,7 @@ function GetPOType($ReqNo) where pm.POType=? and pm.PONO=? - group by rt.CGST,rt.SGST,rt.IGST,rt.FreightValue,rt.PackagingValue,rt.AfterDiscount ORDER BY rt.LineItemNo ASC'; + group by rt.CGST,rt.SGST,rt.IGST,rt.FreightValue,rt.PackagingValue,rt.AfterDiscount,rt.AfterFreightValue,rt.AfterPackagingValue ORDER BY rt.LineItemNo ASC'; $query = $this->db->query($subQuery,array("REVENUE",$PONO));