Error in MOrder.setC_DocTypeTarget_ID (String DocSubTypeSO_x) when IsDefault=Y in a Purchase Order

Description

When a purchase order document type is created (for example the warehouse purchase order created with https://idempiere.atlassian.net/browse/IDEMPIERE-4297#icft=IDEMPIERE-4297) and is marked as default, the test case SalesOrderTest fails because the line

order.setC_DocTypeTarget_ID(MOrder.DocSubTypeSO_Standard);

looks for the IsDefault without taking into account the IsSOTrx flag

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created December 8, 2020 at 4:55 PM
Updated February 1, 2021 at 2:14 PM
Resolved December 9, 2020 at 7:50 PM

Flag notifications