Merge branch 'master' of github.com:ZUGFeRD/mustangproject

This commit is contained in:
Jochen Stärk
2020-08-18 17:37:45 +02:00
2 changed files with 11 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
##2.0 done ## 2.0
### done
- remove jaxb - remove jaxb
- 2.1 now default - 2.1 now default
@@ -24,7 +25,8 @@
switch switch
- change from ZUGFeRDExporter to IZUGFeRDExporter - change from ZUGFeRDExporter to IZUGFeRDExporter
- javadoc export - javadoc export
##2.0 still todo
### 2.0 still todo
- release notes - release notes
- verapdf as prevalidation? - verapdf as prevalidation?
- visualization? zugferdvisualizer? - visualization? zugferdvisualizer?

View File

@@ -1,5 +1,5 @@
##Context ## Context
On it's official website you can [download](https://www.mustangproject.org/files/Mustang-CLI-2.0.0-alpha1.jar) a alpha release of Mustang 2. On it's official website you can [download](https://www.mustangproject.org/files/Mustang-CLI-2.0.0-alpha1.jar) a alpha release of Mustang 2.
@@ -7,7 +7,7 @@ It integrates the successor of the ZUGFeRD [Validator ZUV](https://github.com/ZU
This is a preview release, please do not (yet) use it in production This is a preview release, please do not (yet) use it in production
##Use on command line ### Use on command line
`java -jar Mustang-CLI-2.0.0-alpha1.jar --action=combine` embedds a XML into a PDF (A-1) file and exports as PDF/A-3 `java -jar Mustang-CLI-2.0.0-alpha1.jar --action=combine` embedds a XML into a PDF (A-1) file and exports as PDF/A-3
`java -jar mustang-cli.jar --action=extract` extracts XML from a ZUGFeRD file and `java -jar mustang-cli.jar --action=extract` extracts XML from a ZUGFeRD file and
@@ -51,7 +51,7 @@ result codes apply:
| 27 | XRechnung Schematron Check | | 27 | XRechnung Schematron Check |
##Use as Library ### Use as Library
| What | old value | new value | | What | old value | new value |
|---|---|---| |---|---|---|
@@ -64,7 +64,7 @@ as artifact ID. "validator" includes the library functionality but is >20 MB
bigger due to it's dependencies. bigger due to it's dependencies.
##Update from 1.x to 2.0 ### Update from 1.x to 2.0
ZF2 was possible with Mustang 1 but it is default in Mustang 2, so ZF2 was possible with Mustang 1 but it is default in Mustang 2, so
you will need to `.setZUGFeRDVersion(1)` if you don't want ZUGFeRD 2 files. you will need to `.setZUGFeRDVersion(1)` if you don't want ZUGFeRD 2 files.
@@ -90,7 +90,7 @@ String amount = zi.getAmount();
``` ```
but we are also working on an importer to import into the new invoice class. but we are also working on an importer to import into the new invoice class.
##Using the library ### Using the library to create e-invoices
``` ```
<repositories> <repositories>
@@ -132,7 +132,7 @@ public class Main {
} }
``` ```
##Invoice class ### Export XML
A invoice like this A invoice like this
``` ```
Invoice i = new Invoice().setDueDate(new Date()).setIssueDate(new Date()).setDeliveryDate(new Date()).setOwnOrganisationName(orgname).setOwnStreet("teststr").setOwnZIP("55232").setOwnLocation("teststadt").setOwnCountry("DE").setOwnTaxID("4711").setOwnVATID("0815").setRecipient(new Contact("Franz Müller", "0177123456", "fmueller@test.com", "teststr.12", "55232", "Entenhausen", "DE")).setNumber(number).addItem(new Item(new Product("Testprodukt", "", "C62", new BigDecimal(0)), amount, new BigDecimal(1.0))); Invoice i = new Invoice().setDueDate(new Date()).setIssueDate(new Date()).setDeliveryDate(new Date()).setOwnOrganisationName(orgname).setOwnStreet("teststr").setOwnZIP("55232").setOwnLocation("teststadt").setOwnCountry("DE").setOwnTaxID("4711").setOwnVATID("0815").setRecipient(new Contact("Franz Müller", "0177123456", "fmueller@test.com", "teststr.12", "55232", "Entenhausen", "DE")).setNumber(number).addItem(new Item(new Product("Testprodukt", "", "C62", new BigDecimal(0)), amount, new BigDecimal(1.0)));
@@ -144,7 +144,7 @@ zf2p.generateXML(i);
String theXML = new String(zf2p.getXML()); String theXML = new String(zf2p.getXML());
``` ```
or can also be used with setTransaction to generate invoice PDFs straight away. or can also be used with setTransaction to generate invoice PDFs straight away.
##Embedding the validator ### Embedding the validator
``` ```
<repositories> <repositories>