Skip to content

Commit

Permalink
avoid model getter
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Oct 18, 2019
1 parent 48cc8ac commit ef97f71
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -501,8 +501,6 @@ public void test_NotIssueOnlyForReceived()

private I_PP_Order createPP_OrderAndValidateBomLine(final String qtyOrderedStr, final I_PP_Product_BOM productBOM)
{
final I_C_UOM uom = productBOM.getC_UOM();

final I_C_DocType docType = newInstance(I_C_DocType.class);
docType.setDocBaseType(X_C_DocType.DOCBASETYPE_ManufacturingOrder);
saveRecord(docType);
Expand All @@ -519,7 +517,7 @@ private I_PP_Order createPP_OrderAndValidateBomLine(final String qtyOrderedStr,
ppOrder.setDatePromised(SystemTime.asDayTimestamp());
ppOrder.setDocStatus(IDocument.STATUS_Drafted);
ppOrder.setDocAction(IDocument.ACTION_Complete);
ppOrder.setC_UOM_ID(uom.getC_UOM_ID());
ppOrder.setC_UOM_ID(productBOM.getC_UOM_ID());
ppOrder.setDateStartSchedule(SystemTime.asTimestamp());
ppOrder.setPlanningStatus(PPOrderPlanningStatus.PLANNING.getCode());
Services.get(IPPOrderDAO.class).save(ppOrder);
Expand Down

0 comments on commit ef97f71

Please sign in to comment.