Merge branch 'ZUGFeRD:master' into fix-log-visualization
This commit is contained in:
@@ -310,16 +310,7 @@ public class ZUGFeRDImporter extends ZUGFeRDInvoiceImporter {
|
|||||||
* @return the referred document
|
* @return the referred document
|
||||||
*/
|
*/
|
||||||
public String getReference() {
|
public String getReference() {
|
||||||
try {
|
return importedInvoice.getReferenceNumber();
|
||||||
if (getVersion() == 1) {
|
|
||||||
return extractString("//*[local-name() = 'ApplicableSupplyChainTradeAgreement']/*[local-name() = 'BuyerReference']");
|
|
||||||
} else {
|
|
||||||
return extractString("//*[local-name() = 'ApplicableHeaderTradeAgreement']/*[local-name() = 'BuyerReference']");
|
|
||||||
}
|
|
||||||
} catch (final Exception e) {
|
|
||||||
// Exception was already logged
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -274,16 +274,6 @@ public class ZF2EdgeTest extends MustangReaderTestCase {
|
|||||||
return "123";
|
return "123";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getPaymentMeansCode() {
|
|
||||||
return "42";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getPaymentMeansInformation() {
|
|
||||||
return "Überweisung";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the test case
|
* Create the test case
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -277,6 +277,7 @@ public class ZF2PushTest extends TestCase {
|
|||||||
|
|
||||||
assertEquals("EUR", zi.getInvoiceCurrencyCode());
|
assertEquals("EUR", zi.getInvoiceCurrencyCode());
|
||||||
assertTrue(zi.getUTF8().contains("0911623562")); // fax number
|
assertTrue(zi.getUTF8().contains("0911623562")); // fax number
|
||||||
|
assertTrue(zi.getUTF8().contains("ABK"));
|
||||||
|
|
||||||
// Reading ZUGFeRD
|
// Reading ZUGFeRD
|
||||||
assertEquals("18.33", zi.getAmount());
|
assertEquals("18.33", zi.getAmount());
|
||||||
|
|||||||
Reference in New Issue
Block a user