From b3b69eca5d40954116b41bdc34be409bf00e133f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 5 Apr 2012 23:13:20 -0500 Subject: [PATCH] IDEMPIERE-227 Avg Inv Costing: Material receipt must post with purchase order price http://jira.idempiere.com/browse/IDEMPIERE-227 --- org.adempiere.base/src/org/compiere/acct/Doc_InOut.java | 1 + 1 file changed, 1 insertion(+) 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 5e869537a7..45bb31d62c 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java @@ -385,6 +385,7 @@ public class Doc_InOut extends Doc //get costing method for product String costingMethod = product.getCostingMethod(as); if (MAcctSchema.COSTINGMETHOD_AveragePO.equals(costingMethod) || + MAcctSchema.COSTINGMETHOD_AverageInvoice.equals(costingMethod) || MAcctSchema.COSTINGMETHOD_LastPOPrice.equals(costingMethod) ) { int C_OrderLine_ID = line.getC_OrderLine_ID();