Fix issue Referenced date
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user