Test fix for previously failing UBL tests
This commit is contained in:
@@ -527,11 +527,14 @@ public class ZUGFeRDInvoiceImporter {
|
|||||||
BigDecimal duePayableAmount = null;
|
BigDecimal duePayableAmount = null;
|
||||||
if (lineDueNodes.getLength() > 0) {
|
if (lineDueNodes.getLength() > 0) {
|
||||||
String duePayableAmountStr=XMLTools.trimOrNull(lineDueNodes.item(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);
|
duePayableAmount = new BigDecimal(duePayableAmountStr);
|
||||||
|
if (zpp instanceof CalculatedInvoice) {
|
||||||
((CalculatedInvoice) zpp).setDuePayable(duePayableAmount);
|
((CalculatedInvoice) zpp).setDuePayable(duePayableAmount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Date issueDate = null;
|
Date issueDate = null;
|
||||||
Date dueDate = null;
|
Date dueDate = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user