Added getBuyertradePartySpecifiedTaxRegistrationID() and to ZUGFeRDImporter.java

Added Test
This commit is contained in:
Alexander Berndt
2020-06-18 12:13:33 +02:00
parent 3da3dbe476
commit 7084f12b8f
2 changed files with 9 additions and 1 deletions

View File

@@ -404,7 +404,14 @@ public class ZUGFeRDImporter {
* @return the BuyerTradeParty GlobalID
*/
public String getBuyerTradePartyGlobalID() {
return wExtractString("//BuyerTradeParty//GlobalID");
return extractString("//BuyerTradeParty//GlobalID");
}
/**
* @return the BuyerTradeParty SpecifiedTaxRegistration ID
*/
public String getBuyertradePartySpecifiedTaxRegistrationID() {
return extractString("//BuyerTradeParty//SpecifiedTaxRegistration//ID");
}
/**

View File

@@ -223,6 +223,7 @@ public class ZF2Test extends MustangReaderTestCase {
assertEquals(zi.getBuyerTradePartyGlobalID(), "");
assertEquals(zi.getSellerTradePartyGlobalID(), "");
assertEquals(zi.getBuyerTradePartyID(), "DE999999999");
assertEquals(zi.getBuyertradePartySpecifiedTaxRegistrationID(), "DE999999999");
assertEquals(zi.getHolder(), getOwnOrganisationName());
assertEquals(zi.getDocumentCode(),"380");
assertEquals(zi.getReference(),"AB321");