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:
Tony Snook 2022-01-06 12:57:41 +11:00 committed by GitHub
parent 1a47a1959d
commit 0cf1055692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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