Test fix for previously failing UBL tests
This commit is contained in:
@@ -527,11 +527,14 @@ public class ZUGFeRDInvoiceImporter {
|
||||
BigDecimal duePayableAmount = null;
|
||||
if (lineDueNodes.getLength() > 0) {
|
||||
String duePayableAmountStr=XMLTools.trimOrNull(lineDueNodes.item(0));
|
||||
if ((zpp instanceof CalculatedInvoice) && (duePayableAmountStr!=null)) {
|
||||
if (duePayableAmountStr!=null) {
|
||||
// Always set it, because it is used in the calculation below
|
||||
duePayableAmount = new BigDecimal(duePayableAmountStr);
|
||||
if (zpp instanceof CalculatedInvoice) {
|
||||
((CalculatedInvoice) zpp).setDuePayable(duePayableAmount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Date issueDate = null;
|
||||
Date dueDate = null;
|
||||
|
||||
Reference in New Issue
Block a user