Fix issue Referenced date

This commit is contained in:
Sebastian Sieber
2021-03-10 09:45:36 +01:00
parent 568fd442f7
commit 7de3b5964e
2 changed files with 6 additions and 5 deletions

View File

@@ -277,7 +277,8 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
// xsi:schemaLocation=\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100 // xsi:schemaLocation=\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100
// ../Schema/ZUGFeRD1p0.xsd\"" // ../Schema/ZUGFeRD1p0.xsd\""
+ " xmlns:ram=\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\"" + " xmlns:ram=\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\""
+ " xmlns:udt=\"urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100\">\n" + " xmlns:udt=\"urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100\""
+ " xmlns:qdt=\"urn:un:unece:uncefact:data:standard:QualifiedDataType:100\">\n"
+ " <rsm:ExchangedDocumentContext>\n" + " <rsm:ExchangedDocumentContext>\n"
// + " // + "
// <ram:TestIndicator><udt:Indicator>"+testBooleanStr+"</udt:Indicator></ram:TestIndicator>\n" // <ram:TestIndicator><udt:Indicator>"+testBooleanStr+"</udt:Indicator></ram:TestIndicator>\n"

View File

@@ -13,8 +13,8 @@ public enum ZUGFeRDDateFormat {
private String dateTimeType; private String dateTimeType;
private SimpleDateFormat formatter; private SimpleDateFormat formatter;
private static final String QDT_FORAMT = "<qdt:DateTimeString format=\"%s\">%s</qdt:DateTimeString>"; private static final String QDT_FORMAT = "<qdt:DateTimeString format=\"%s\">%s</qdt:DateTimeString>";
private static final String UDT_FORAMT = "<udt:DateTimeString format=\"%s\">%s</udt:DateTimeString>"; private static final String UDT_FORMAT = "<udt:DateTimeString format=\"%s\">%s</udt:DateTimeString>";
private ZUGFeRDDateFormat(String dateTimeType, SimpleDateFormat formatter) { private ZUGFeRDDateFormat(String dateTimeType, SimpleDateFormat formatter) {
this.dateTimeType = dateTimeType; this.dateTimeType = dateTimeType;
@@ -33,9 +33,9 @@ public enum ZUGFeRDDateFormat {
return getFormatter().format(date); return getFormatter().format(date);
} }
public String qdtFormat(Date date){ public String qdtFormat(Date date){
return String.format(QDT_FORAMT, getDateTimeType(), getFormatter().format(date)); return String.format(QDT_FORMAT, getDateTimeType(), getFormatter().format(date));
} }
public String udtFormat(Date date){ public String udtFormat(Date date){
return String.format(UDT_FORAMT, getDateTimeType(), getFormatter().format(date)); return String.format(UDT_FORMAT, getDateTimeType(), getFormatter().format(date));
} }
} }