Issue #458 Allow multiple PaymentTerms for in Invoice

This commit is contained in:
Jens Nober
2024-08-30 09:36:16 +02:00
parent 189decbe28
commit 53646a615e

View File

@@ -653,7 +653,13 @@ public class Invoice implements IExportableTransaction {
}
public Invoice setPaymentTerms(IZUGFeRDPaymentTerms paymentTerms) {
if (null != paymentTerms) {
this.paymentTerms = new IZUGFeRDPaymentTerms[] { paymentTerms };
}
else {
this.paymentTerms = null;
}
return this;
}