corrected master, getReferenceNumber UBL
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
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user