closes #606
This commit is contained in:
15
History.md
15
History.md
@@ -1,12 +1,6 @@
|
|||||||
595
|
|
||||||
591
|
|
||||||
577
|
|
||||||
575
|
|
||||||
573
|
|
||||||
601
|
|
||||||
|
|
||||||
2.15.1
|
2.15.1
|
||||||
=======
|
=======
|
||||||
|
|
||||||
- #566 Failed to parse PDF - Could not reproduce the invoice
|
- #566 Failed to parse PDF - Could not reproduce the invoice
|
||||||
? be able to access ID in error message
|
? be able to access ID in error message
|
||||||
- closes #579 prepaidamount is only read in UBL
|
- closes #579 prepaidamount is only read in UBL
|
||||||
@@ -18,6 +12,13 @@
|
|||||||
- allow jackson to run over more classes, e.g., DirectDebit, bean contructor for direct debit
|
- allow jackson to run over more classes, e.g., DirectDebit, bean contructor for direct debit
|
||||||
- allow json includedNotes
|
- allow json includedNotes
|
||||||
- support importing duePayableAmount
|
- support importing duePayableAmount
|
||||||
|
- #595 Treat all fatal XR schematron rules as errors, not as warnings.
|
||||||
|
- #591 Import IncludedNotes on item extraction
|
||||||
|
- #577 dom4j: exclude all (optional) dependencies to avoid potential conflicts.
|
||||||
|
- #575 Fix compilation problems.
|
||||||
|
- #573 Feature/category code
|
||||||
|
- #601 exceptions in metrics
|
||||||
|
- #606 also parse BT-25
|
||||||
|
|
||||||
|
|
||||||
2.15.0
|
2.15.0
|
||||||
|
|||||||
@@ -808,6 +808,7 @@ public class ZUGFeRDInvoiceImporter {
|
|||||||
} else {
|
} else {
|
||||||
zpp.setDespatchAdviceReferencedDocumentID(extractString("//*[local-name()=\"DespatchDocumentReference\"]/*[local-name()=\"ID\"]"));
|
zpp.setDespatchAdviceReferencedDocumentID(extractString("//*[local-name()=\"DespatchDocumentReference\"]/*[local-name()=\"ID\"]"));
|
||||||
}
|
}
|
||||||
|
zpp.setInvoiceReferencedDocumentID(extractString("//*[local-name()=\"InvoiceReferencedDocument\"]/*[local-name()=\"IssuerAssignedID\"]|//*[local-name()=\"BillingReference\"]/*[local-name()=\"InvoiceDocumentReference\"]/*[local-name()=\"ID\"]"));
|
||||||
|
|
||||||
zpp.setOwnOrganisationName(extractString("//*[local-name()=\"SellerTradeParty\"]/*[local-name()=\"Name\"]|//*[local-name()=\"AccountingSupplierParty\"]/*[local-name()=\"Party\"]/*[local-name()=\"PartyName\"]").trim());
|
zpp.setOwnOrganisationName(extractString("//*[local-name()=\"SellerTradeParty\"]/*[local-name()=\"Name\"]|//*[local-name()=\"AccountingSupplierParty\"]/*[local-name()=\"Party\"]/*[local-name()=\"PartyName\"]").trim());
|
||||||
|
|
||||||
@@ -929,6 +930,7 @@ public class ZUGFeRDInvoiceImporter {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TransactionCalculator tc = new TransactionCalculator(zpp);
|
TransactionCalculator tc = new TransactionCalculator(zpp);
|
||||||
String expectedStringTotalGross = tc.getGrandTotal()
|
String expectedStringTotalGross = tc.getGrandTotal()
|
||||||
.subtract(Objects.requireNonNullElse(zpp.getTotalPrepaidAmount(), BigDecimal.ZERO)).toPlainString();
|
.subtract(Objects.requireNonNullElse(zpp.getTotalPrepaidAmount(), BigDecimal.ZERO)).toPlainString();
|
||||||
|
|||||||
@@ -539,6 +539,7 @@ public class ZF2PushTest extends TestCase {
|
|||||||
.addAllowance(new Allowance(new BigDecimal(0.2)).setReason("discount").setTaxPercent(new BigDecimal(16)))
|
.addAllowance(new Allowance(new BigDecimal(0.2)).setReason("discount").setTaxPercent(new BigDecimal(16)))
|
||||||
.addCashDiscount(new CashDiscount(new BigDecimal(2), 14))
|
.addCashDiscount(new CashDiscount(new BigDecimal(2), 14))
|
||||||
.setDeliveryDate(sdf.parse("2020-11-02")).setNumber(number).setVATDueDateTypeCode(EventTimeCodeTypeConstants.PAYMENT_DATE)
|
.setDeliveryDate(sdf.parse("2020-11-02")).setNumber(number).setVATDueDateTypeCode(EventTimeCodeTypeConstants.PAYMENT_DATE)
|
||||||
|
.setInvoiceReferencedDocumentID("abc123")
|
||||||
);
|
);
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -582,6 +583,7 @@ public class ZF2PushTest extends TestCase {
|
|||||||
try {
|
try {
|
||||||
Invoice i = zii.extractInvoice();
|
Invoice i = zii.extractInvoice();
|
||||||
|
|
||||||
|
assertEquals("abc123", i.getInvoiceReferencedDocumentID());
|
||||||
assertEquals("4304171000002", i.getRecipient().getGlobalID());
|
assertEquals("4304171000002", i.getRecipient().getGlobalID());
|
||||||
assertEquals("2001015001325", i.getZFItems()[0].getProduct().getGlobalID());
|
assertEquals("2001015001325", i.getZFItems()[0].getProduct().getGlobalID());
|
||||||
assertEquals(orgID, i.getSender().getID());
|
assertEquals(orgID, i.getSender().getID());
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
package org.mustangproject.validator;
|
package org.mustangproject.validator;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
@@ -69,13 +70,11 @@ public class XMLValidator extends Validator {
|
|||||||
final ValidationResultItem vri = new ValidationResultItem(ESeverity.exception, e.getMessage()).setSection(9)
|
final ValidationResultItem vri = new ValidationResultItem(ESeverity.exception, e.getMessage()).setSection(9)
|
||||||
.setPart(EPart.fx);
|
.setPart(EPart.fx);
|
||||||
try (final StringWriter sw = new StringWriter();
|
try (final StringWriter sw = new StringWriter();
|
||||||
final PrintWriter pw = new PrintWriter(sw))
|
final PrintWriter pw = new PrintWriter(sw)) {
|
||||||
{
|
|
||||||
e.printStackTrace(pw);
|
e.printStackTrace(pw);
|
||||||
vri.setStacktrace(sw.toString());
|
vri.setStacktrace(sw.toString());
|
||||||
context.addResultItem(vri);
|
context.addResultItem(vri);
|
||||||
}
|
} catch (IOException ex) {
|
||||||
catch (IOException ex) {
|
|
||||||
throw new UncheckedIOException(ex);
|
throw new UncheckedIOException(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user