corrected ZF2 version number in RDF metadata
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
- support Sepa Direct Debit
|
- support Sepa Direct Debit
|
||||||
- closes #134 ZUGFeRD2PullProvider uses NetPrice for GrossPrice
|
- closes #134 ZUGFeRD2PullProvider uses NetPrice for GrossPrice
|
||||||
- support intra community supply (=vat category codes)
|
- support intra community supply (=vat category codes)
|
||||||
|
- Support different Date formats #136
|
||||||
|
- corrected RDF metadata for ZF2
|
||||||
|
|
||||||
1.7.4
|
1.7.4
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class XMPSchemaZugferd extends XMPSchema {
|
|||||||
* @param prefix the xml namespace prefix for the XMP, zf for ZUGFeRD, fx for Factur-X
|
* @param prefix the xml namespace prefix for the XMP, zf for ZUGFeRD, fx for Factur-X
|
||||||
* @param filename the filename of the invoice
|
* @param filename the filename of the invoice
|
||||||
*/
|
*/
|
||||||
public XMPSchemaZugferd(XMPMetadata metadata, ZUGFeRDConformanceLevel conformanceLevel, String URN, String prefix, String filename) {
|
public XMPSchemaZugferd(XMPMetadata metadata, int zfVersion, boolean isFacturX, ZUGFeRDConformanceLevel conformanceLevel, String URN, String prefix, String filename) {
|
||||||
super(metadata, URN, prefix, "ZUGFeRD Schema");
|
super(metadata, URN, prefix, "ZUGFeRD Schema");
|
||||||
|
|
||||||
setAboutAsSimple("");
|
setAboutAsSimple("");
|
||||||
@@ -53,6 +53,10 @@ public class XMPSchemaZugferd extends XMPSchema {
|
|||||||
setTextPropertyValue("ConformanceLevel", conformanceLevelValue);
|
setTextPropertyValue("ConformanceLevel", conformanceLevelValue);
|
||||||
setTextPropertyValue("DocumentType", "INVOICE");
|
setTextPropertyValue("DocumentType", "INVOICE");
|
||||||
setTextPropertyValue("DocumentFileName", filename);
|
setTextPropertyValue("DocumentFileName", filename);
|
||||||
setTextPropertyValue("Version", "1.0");
|
String version="1.0";
|
||||||
|
if ((zfVersion==2)&&(!isFacturX)) {
|
||||||
|
version="2p0";
|
||||||
|
}
|
||||||
|
setTextPropertyValue("Version", version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -584,7 +584,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
protected void addXMP(XMPMetadata metadata) {
|
protected void addXMP(XMPMetadata metadata) {
|
||||||
|
|
||||||
if (attachZUGFeRDHeaders) {
|
if (attachZUGFeRDHeaders) {
|
||||||
XMPSchemaZugferd zf = new XMPSchemaZugferd(metadata, profile,
|
XMPSchemaZugferd zf = new XMPSchemaZugferd(metadata, ZFVersion, isFacturX, profile,
|
||||||
getNamespaceForVersion(ZFVersion), getPrefixForVersion(ZFVersion),
|
getNamespaceForVersion(ZFVersion), getPrefixForVersion(ZFVersion),
|
||||||
getFilenameForVersion(ZFVersion));
|
getFilenameForVersion(ZFVersion));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user