IDEMPIERE-227 Avg Inv Costing: Material receipt must post with purchase order price

http://jira.idempiere.com/browse/IDEMPIERE-227
This commit is contained in:
Carlos Ruiz 2012-04-05 23:13:20 -05:00
parent 1ed38faaf8
commit b3b69eca5d
1 changed files with 1 additions and 0 deletions

View File

@ -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();