IDEMPIERE-5063 Improve Unit Tests - fix ProductionTest RollUp test (#1115)
- set mulch product category to Standard Costing category, so that the standard cost of the component is compared to the standard cost of the parent, mulchx.
This commit is contained in:
parent
1a47a1959d
commit
0cf1055692
|
@ -383,7 +383,10 @@ public class ProductionTest extends AbstractTestCase {
|
|||
try {
|
||||
int rollUpProcessId = 53230;
|
||||
int mulchId = 137;
|
||||
MProduct mulch = MProduct.get(mulchId);
|
||||
MProduct mulch = new MProduct(Env.getCtx(), mulchId, getTrxName());
|
||||
mulch.setM_Product_Category_ID(category.get_ID());
|
||||
mulch.saveEx();
|
||||
|
||||
BigDecimal componentCost = MCost.getCurrentCost(mulch, 0, getTrxName());
|
||||
|
||||
MProduct mulchX = new MProduct(Env.getCtx(), 0, getTrxName());
|
||||
|
|
Loading…
Reference in New Issue