Commit Graph

961 Commits

Author SHA1 Message Date
Jochen Stärk
c92b9dd0b2 dropped orphaned migration feature 2020-06-07 10:36:02 +02:00
dependabot[bot]
429914e564 Bump dom4j from 2.1.1 to 2.1.3 in /library
Bumps [dom4j](https://github.com/dom4j/dom4j) from 2.1.1 to 2.1.3.
- [Release notes](https://github.com/dom4j/dom4j/releases)
- [Commits](https://github.com/dom4j/dom4j/compare/version-2.1.1...version-2.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-06 06:02:01 +00:00
Jens Heise
74900ebe69 ZUGFeRD2PullProvider: Added several properties to be written to the ZUGFeRD-XML
and if necessary corresponding methods in the IZUGFeRDExportable... interface
objects of Transaction, Item and Product:

Properties with new methods:
- SubjectNote for 'ExchangedDocument.IncludedNote' (human readable
  document subject)
- RebateAgreementExists for 'ExchangedDocument.IncludedNote'
  (Note that there are rebate agreements)
- BasisQuantity (number of item units per price)
- SellerAssignedID (seller identification of product)
- BuyerAssignedID (buyer identification of product)
- TaxExemptionReason (explanatory statement why no tax gets applied)
  enhancement to support other exemptions than "IC-supply"

Properties for existing methods that did not get written to the XML
up to now:
- SellerTradeParty.ID (buyer assigned ID of seller)
- SellerTradeParty.GlobalID of seller (e.g. DUNS)
- BuyerOrderReferencedDocumentID (order number of buyer)
2020-06-03 11:17:23 +02:00
Jens Heise
1efd4ee9ae Bugfix in ZF2ZInvoiceImporterTest: Make test work on case sensitive file systems
The generated file is named "testout-ZF2new.pdf" not "testout-ZF2New.pdf"
which will make the test fail on case sensitive file systems as can be
found on many unix like systems.
2020-06-03 11:17:23 +02:00
Jens Heise
371cbb67a1 Bugfix in ZUGFeRD2PullProvider.generateXML(): Only Debit payment information is part of 'SpecifiedTradePaymentTerms'
so test for 'payment' being an instance of 'IZUGFeRDTradeSettlementDebit' as
'IZUGFeRDTradeSettlement' and 'IZUGFeRDTradeSettlementPayment' return 'null' for
'getPaymentXML()' which is not allowed to be written to the XML file.
2020-06-03 11:17:23 +02:00
Jens Heise
d1200a8dcd Bugfix in ZUGFeRD2PullProvider.generateXML(): Test for valid value of getDueDate() before using it
or a NullPointerException might happen as 'hasDueDate==true' is not the result
of a test to ensure that 'trans' overwrites 'getDueDate()' at all, so the default
implementation from 'IZUGFeRDExportableTransaction' might get used which returns
the unusable result 'null'.
2020-06-03 11:17:23 +02:00
Jochen Stärk
1d4ed498c1 Merge branch 'add_extraction_methods' of https://github.com/aberndt-hub/mustangproject into aberndt-hub-add_extraction_methods 2020-06-03 05:41:52 +02:00
Jochen Stärk
dbdcdbe75f corrected tests 2020-05-24 19:49:05 +02:00
Jochen Stärk
5d2cdf227f Now all actions are invoked using --action. 2020-05-24 18:29:37 +02:00
Jochen Stärk
9c9474907b Merge branch 'master' of github.com:ZUGFeRD/mustangproject
# Conflicts:
#	library/src/main/java/org/mustangproject/ZUGFeRD/IZUGFeRDExportablePostalTradeAddress.java
#	library/src/main/java/org/mustangproject/ZUGFeRD/PostalTradeAddress.java
2020-05-24 10:45:44 +02:00
Jochen Stärk
fed2d08dc9 Removed server. Moved libraryBasic to library and libraryExtended to validator to prevent confusion with profiles. 2020-05-24 10:45:04 +02:00