Skip to content

Commit

Permalink
Merge pull request #399 from Sarenor/feature/ISSUE-395-Support-Zugfer…
Browse files Browse the repository at this point in the history
…d-Xrechnung-profile

Added XRechnung Profile support
  • Loading branch information
jstaerk authored Jun 28, 2024
2 parents 53391ea + 94f7558 commit 7778ee7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ public String getForeignReference() {
* @return the ZUGFeRD Profile
*/
public String getZUGFeRDProfil() {
switch (extractString("//*[local-name() = 'GuidelineSpecifiedDocumentContextParameter']//*[local-name() = 'ID']")) {
String guideline = extractString("//*[local-name() = 'GuidelineSpecifiedDocumentContextParameter']//*[local-name() = 'ID']");
if(guideline.contains("xrechnung")) {
return "XRECHNUNG";
}
switch (guideline) {
case "urn:cen.eu:en16931:2017":
case "urn:ferd:CrossIndustryDocument:invoice:1p0:comfort":
return "COMFORT";
Expand Down

0 comments on commit 7778ee7

Please sign in to comment.