corrected two failing unit tests, partly reverting #1049
This commit is contained in:
@@ -553,9 +553,8 @@ public class ZUGFeRDInvoiceImporter {
|
|||||||
NodeList lineDueNodes = (NodeList) xpr.evaluate(getDocument(), XPathConstants.NODESET);
|
NodeList lineDueNodes = (NodeList) xpr.evaluate(getDocument(), XPathConstants.NODESET);
|
||||||
BigDecimal duePayableAmount = null;
|
BigDecimal duePayableAmount = null;
|
||||||
if (lineDueNodes.getLength() > 0) {
|
if (lineDueNodes.getLength() > 0) {
|
||||||
String duePayableAmountStr=XMLTools.trimOrNull(lineDueNodes.item(0));
|
duePayableAmount = new BigDecimal(XMLTools.trimOrNull(lineDueNodes.item(0)));
|
||||||
if ((zpp instanceof CalculatedInvoice) && (duePayableAmountStr!=null)) {
|
if (zpp instanceof CalculatedInvoice) {
|
||||||
duePayableAmount = new BigDecimal(duePayableAmountStr);
|
|
||||||
((CalculatedInvoice) zpp).setDuePayable(duePayableAmount);
|
((CalculatedInvoice) zpp).setDuePayable(duePayableAmount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user