Merge branch 'master' of github.com:ZUGFeRD/mustangproject
This commit is contained in:
@@ -269,7 +269,11 @@ public class ZUGFeRDImporter {
|
|||||||
* @return the ZUGFeRD Profile
|
* @return the ZUGFeRD Profile
|
||||||
*/
|
*/
|
||||||
public String getZUGFeRDProfil() {
|
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:cen.eu:en16931:2017":
|
||||||
case "urn:ferd:CrossIndustryDocument:invoice:1p0:comfort":
|
case "urn:ferd:CrossIndustryDocument:invoice:1p0:comfort":
|
||||||
return "COMFORT";
|
return "COMFORT";
|
||||||
|
|||||||
Reference in New Issue
Block a user