diff --git a/src/main/java/org/spin/model/MWHWithholding.java b/src/main/java/org/spin/model/MWHWithholding.java index 90d09a6..1d93077 100644 --- a/src/main/java/org/spin/model/MWHWithholding.java +++ b/src/main/java/org/spin/model/MWHWithholding.java @@ -286,8 +286,12 @@ && getSourceOrder_ID() > 0) maybeSourceDocument.ifPresent(sourceDocument -> { if (getC_Currency_ID() == 0) setC_Currency_ID(sourceDocument.get_ValueAsInt(MWHWithholding.COLUMNNAME_C_Currency_ID)); - if (getC_ConversionType_ID() == 0) - setC_ConversionType_ID(sourceDocument.get_ValueAsInt(MWHWithholding.COLUMNNAME_C_ConversionType_ID)); + if (getC_ConversionType_ID() == 0) { + int C_ConversionType_ID = sourceDocument.get_ValueAsInt(MWHWithholding.COLUMNNAME_C_ConversionType_ID); + if (C_ConversionType_ID == 0) + C_ConversionType_ID = MConversionType.getDefault(getAD_Client_ID()); + setC_ConversionType_ID(C_ConversionType_ID); + } if (getC_BPartner_Location_ID() == 0 ) setC_BPartner_Location_ID(sourceDocument.get_ValueAsInt(MWHWithholding.COLUMNNAME_C_BPartner_Location_ID)); if (getDateAcct() == null)