Added getBuyertradePartySpecifiedTaxRegistrationID() and to ZUGFeRDImporter.java
Added Test
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user