Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId

(OFBIZ-9984)
Fix introduced NPE detected by the introduced test.
This commit is contained in:
Gil Portenseigne
2020-03-21 11:31:46 +01:00
committed by Jacques Le Roux
parent b999e59b81
commit f951f8da25
@@ -43,7 +43,7 @@ def getNextOrderId() {
if (customMethod) {
customMethodName = customMethod.customMethodName
} else if (partyAcctgPreference.oldOrderSequenceEnumId == 'ODRSQ_ENF_SEQ') {
} else if (partyAcctgPreference && partyAcctgPreference.oldOrderSequenceEnumId == 'ODRSQ_ENF_SEQ') {
customMethodName = 'orderSequence_enforced'
}