additional output in arithmetric exception
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#1044
|
||||
#1075
|
||||
#993
|
||||
#1072
|
||||
-reduce exceptions in metrics
|
||||
|
||||
2.22.0
|
||||
|
||||
@@ -1374,6 +1374,9 @@ public class ZUGFeRDInvoiceImporter {
|
||||
+ Stream.of(tc.trans.getZFItems())
|
||||
.map(item -> item.getCalculation().getItemTotalNetAmount().toPlainString())
|
||||
.collect(Collectors.joining(" + "));
|
||||
if (tc.trans.getRoundingAmount()!=null) {
|
||||
moreDetails += " and rounding amount "+tc.trans.getRoundingAmount().toPlainString();
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
throw new ArithmeticException("Payable total in XML is " + payableTotalFromXml + ", but calculated total is " + calculatedPayableTotal + moreDetails);
|
||||
|
||||
Reference in New Issue
Block a user