From 814dba2edaff0d9b95ea0771d07157c311822999 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 27 Mar 2007 13:06:18 +0000 Subject: [PATCH] * [ 1647734 ] incorrect cost used in Shipment and MM (Avg PO costing) --- serverRoot/src/main/server/org/compiere/acct/Doc_InOut.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serverRoot/src/main/server/org/compiere/acct/Doc_InOut.java b/serverRoot/src/main/server/org/compiere/acct/Doc_InOut.java index 20698ccba9..8113918b01 100644 --- a/serverRoot/src/main/server/org/compiere/acct/Doc_InOut.java +++ b/serverRoot/src/main/server/org/compiere/acct/Doc_InOut.java @@ -214,6 +214,8 @@ public class Doc_InOut extends Doc int C_OrderLine_ID = line.getC_OrderLine_ID(); MOrderLine orderLine = new MOrderLine (getCtx(), C_OrderLine_ID, getTrxName()); costs = orderLine.getPriceCost(); + if (costs == null || costs.signum() == 0) + costs = orderLine.getPriceActual(); } else {