From be6b85f531c3b79fd88f1f6884cff42c0cd11564 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 26 Mar 2012 15:07:02 +0800 Subject: [PATCH] IDEMPIERE-212 Costing: MatchPO required for Average PO and Last PO Costing method - adapted from http://sistematika.web.id/2008/10/10/accounting-generated-for-adempiere-material-receipt-activity/ --- org.adempiere.base/src/org/compiere/acct/Doc_InOut.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java b/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java index 7700595f28..d873a50dd0 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java @@ -419,7 +419,9 @@ public class Doc_InOut extends Doc } else { - costs = line.getProductCosts(as, line.getAD_Org_ID(), false); // current costs + p_Error = "Resubmit - No Costs for " + product.getName(); + log.log(Level.WARNING, p_Error); + return null; } // }