diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 18f900ac..4e4d564d 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -568,7 +568,28 @@ function purchaseorderListing($forwhat='') } +// This Method to get the Revenue PO Child Details for Edit the Item + function GetRevenuePurchaseOrderDetailsForAmendPDF($PONO = '') + { + + $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName, + Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue , + ROUND(((AfterPackagingValue + AfterFreightValue + AfterExciseDuty + AfterVAT + AfterCST + + AfterGST + AfterOtherTaxes + Insurance)) ,2)as Taxamount , + TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,LineItem.AmendedDetails as LineAmend + FROM T_PurchaseOrder_LineItem LineItem + join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode + join T_Revenue_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo + join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO + join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID + where LineItem.PONO =?'; + $query = $this->db->query($subQuery,array($PONO)); + + return $query->result(); + + + } function GetImportPurchaseOrderDetailsForPDF($PONO = '') {