Commit Graph

164 Commits

Author SHA1 Message Date
Sebastian Sieber
bd720e38f7 Merge branch 'master' into Improvements 2020-11-25 15:13:09 +01:00
Sebastian Sieber
451b249887 Create XRechnungImporter to import data from raw xml
The XRechnungImporter extends from ZUGFeRDImporter.
It simply sets the given raw xml and provides otherwise the same functionality as the parent class.
2020-11-25 12:50:36 +01:00
Sebastian Sieber
a1c4f4a2d6 Unify the values of taxes
Concerning ApplicableHeaderTradeSettlement:
The amount in ApplicableTradeTax.CalculatedAmount is different from SpecifiedTradeSettlementHeaderMonetarySummation.TaxTotalAmount. To avoid this I removed the rounding from totalAmount.
2020-11-25 12:47:31 +01:00
Sebastian Sieber
1e78866040 Import UnitCode of basisQuantity to product.
I don't know which node is the better one to read the unitCode:
grossPriceProductTradePrice or netPriceProductTradePrice. I have chosen the last one.
2020-11-25 12:46:19 +01:00
Sebastian Sieber
ce4893f445 Merge remote-tracking branch 'remotes/origin/master' into master 2020-11-23 08:17:17 +01:00
jstaerk
0f58a60b74 closes #197 2020-11-22 16:47:20 +01:00
jstaerk
82dd4cf131 [maven-release-plugin] prepare for next development iteration 2020-11-21 21:02:31 +01:00
jstaerk
dcedd9cc97 [maven-release-plugin] prepare release core-2.0.1 2020-11-21 21:02:01 +01:00
jstaerk
755fe651d3 [maven-release-plugin] rollback the release of core-2.0.1 2020-11-21 20:59:56 +01:00
jstaerk
a1fe5c437d javadoc correction 2020-11-21 20:58:40 +01:00
jstaerk
ac7e5fb7b1 [maven-release-plugin] prepare for next development iteration 2020-11-21 20:55:27 +01:00
jstaerk
d1fa9356c3 [maven-release-plugin] prepare release core-2.0.1 2020-11-21 20:55:25 +01:00
jstaerk
04bb87ad2b resources for new sample invoice 2020-11-21 20:53:41 +01:00
jstaerk
a79a48095e support account holders, new sample invoice 2020-11-21 20:46:05 +01:00
jstaerk
3ff25bc9fe correction zf2 edge test case (interface based) 2020-11-21 13:05:14 +01:00
jstaerk
0923a01ccc correction of interface based intra community supply 2020-11-21 13:04:47 +01:00
jstaerk
39d98d1e9d added item delivery periods 2020-11-21 12:50:55 +01:00
jstaerk
81dc18d731 change XR guideline ID to 1.2.2 2020-11-21 12:15:21 +01:00
jstaerk
2848711cff have fax numbers for contacts only as of extended profile 2020-11-21 12:03:16 +01:00
jstaerk
e1c498a582 update version numbers, history 2020-11-21 10:30:25 +01:00
Sebastian Sieber
f9ae321ec4 Use categoryCode of current allowanceCharge if exists 2020-11-20 22:15:50 +01:00
Sebastian Sieber
f0924d4389 Correct tax category code in <ram:SpecifiedTradeAllowanceCharge>
Use VATAmount.getCategoryCode instead of "S".
2020-11-20 12:45:36 +01:00
Sebastian Sieber
12fdf01c5c Merge remote-tracking branch 'remotes/origin/master' into master 2020-11-20 11:45:38 +01:00
jstaerk
231a7999ee don't mention tax numbers for shiptotradeparties 2020-11-19 14:37:42 +01:00
jstaerk
dff6334185 do not expect dueDate for corrected invoices 2020-11-19 12:12:27 +01:00
jstaerk
d028d453c5 closes #196 2020-11-19 09:52:16 +01:00
Sebastian Sieber
f29c452a04 Remove LineCalculator.getItemTotalGrossAmount() to prevent confusion 2020-11-18 15:00:19 +01:00
Sebastian Sieber
4ba099c86d Correct and simplify calculation
In the test case with allowance the VAT amount was calculated 1 ct too high.
2020-11-17 18:07:16 +01:00
Jochen Staerk
1740c6891a Merge pull request #193 from mr-stephan/preserving-metadata
Preserving metadata
2020-11-17 14:49:25 +01:00
jstaerk
0ce0d98c46 Merge branch 'master' of https://github.com/weclapp-dev/mustangproject into weclapp-dev-master
# Conflicts:
#	library/src/main/java/org/mustangproject/ZUGFeRD/TransactionCalculator.java
#	library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java
2020-11-17 12:06:05 +01:00
jstaerk
48dc209f94 closes #172, fixes zero rated products, added some lines to the test of the XRechnung, have the XRechnung test actually wriote to file and have the XR test file validated automatically 2020-11-17 11:49:20 +01:00
jstaerk
8d48e992f8 updated javadoc 2020-11-17 11:10:50 +01:00
Stefan Klinke
510198884c Added a test to validate the exported PDF is identified as A3 2020-11-16 18:23:59 +01:00
Stefan Klinke
b62e240f57 Merge XMPMetadata and try making the PDF more compliant if it isn't already 2020-11-16 17:34:49 +01:00
Sebastian Sieber
1387d09044 BigDecimal specific refactoring
Use BigDecimal.stripTrailingZeros() as key for getVATPercentMap and in consequence use compareTo... == 0 instead of equals
Use BigDecimal.ZERO instead of new BigDecimal(0)
These changes result in improvements in enumeration of the <ram:SpecifiedTradeAllowanceCharge> tags and the calculation of tag <ram:SpecifiedTradeSettlementHeaderMonetarySummation>.
2020-11-16 15:40:23 +01:00
jstaerk
7ed6c33b33 Javadoc amendments 2020-11-12 09:16:10 +01:00
jstaerk
b6aad03da2 updated some javadoc 2020-11-12 08:06:53 +01:00
jstaerk
bb42381c67 test for customer IDs 2020-11-12 06:50:17 +01:00
jstaerk
46c7e25ef9 merged BOM functionality in XMLtools 2020-11-12 06:49:46 +01:00
jstaerk
599320462d Allow to specify customer ID 2020-11-12 06:48:55 +01:00
jstaerk
e1881a3891 closes #190 2020-11-11 21:15:49 +01:00
Ulrich Zielhofer
d52e4168e8 Merge branch 'master' of https://github.com/ZUGFeRD/mustangproject into master 2020-11-10 13:06:19 +01:00
Ulrich Zielhofer
040dc683dc shaded artifacts attached 2020-11-10 13:05:37 +01:00
jstaerk
5b8d1c9c54 support document level charges/allowances in invoiceimporter 2020-11-10 12:03:38 +01:00
Sebastian Sieber
337ed2e99e Correct tax category code
Use TaxCategoryCode instead of DocumentCode by creating
VATPercentAmountMap.
2020-11-09 15:34:43 +01:00
jstaerk
71379627c6 corrected release notes and history, zf1 test 2020-11-08 20:15:41 +01:00
jstaerk
ffe6fd9e1a Also list item level charge/allowance reason in according profile (i.e., extended) 2020-11-05 22:52:42 +01:00
jstaerk
0f98ecb8f0 allow custom ram:reasons (previously ignored) 2020-11-05 10:42:50 +01:00
jstaerk
b80432903c corrected taxrate issue in rateApplicablePercent 2020-11-04 21:23:46 +01:00
jstaerk
1243863368 support included notes 2020-11-04 20:51:22 +01:00