FIX: ZUGFeRDImporter.java -> Deleted output of Stacktrace if tryBigDecimal fails, as Exceptions are catched
This commit is contained in:
@@ -729,11 +729,9 @@ public class ZUGFeRDImporter {
|
||||
try {
|
||||
return new BigDecimal(nodeValue);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
try {
|
||||
return new BigDecimal(Float.valueOf(nodeValue));
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
return new BigDecimal("0.00");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,7 +235,6 @@ public class ZF2Test extends MustangReaderTestCase {
|
||||
assertEquals(zi.getLineItemList().get(0).product.getName(), "Künstlerische Gestaltung (Stunde): Einer Beispielrechnung");
|
||||
assertEquals(zi.getLineItemList().get(0).product.getDescription(), "");
|
||||
|
||||
int i = 1;
|
||||
try {
|
||||
assertEquals(zi.getVersion(), 2);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user