Sebastian Sieber
dcf7f82b01
Extract method to avoid duplicate code.
2020-12-07 16:31:58 +01:00
jstaerk
b3846b806a
support credit notes, automatically switch from XR 1.2.2 to XR 2.0 on 2021-01-01
2020-12-05 18:11:42 +01:00
Sebastian Sieber
60f71b54ec
Merge remote-tracking branch 'remotes/origin/master' into Improvements
...
# Conflicts:
# library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java
# library/src/test/java/org/mustangproject/ZUGFeRD/ZF2ZInvoiceImporterTest.java
2020-12-03 15:05:17 +01:00
Sebastian Sieber
812a22e901
Add property and method TradeParty to add debit details
2020-12-03 11:45:33 +01:00
Sebastian Sieber
54dccc188a
Fix id of profile XRECHNUNG
2020-12-02 14:32:18 +01:00
Sebastian Sieber
5e71863f8b
Improve handling of categoryCode
...
Charge returns the local field if is set.
IZUGFeRDExportableProduct: Use compareTo instead of equals to check the mathematical equality.
2020-12-02 11:28:09 +01:00
jstaerk
57d53af39f
Don't write "null" as paymentDescription if no Bank account is specified
2020-12-01 18:32:46 +01:00
Sebastian Sieber
687d8f628c
Use constants instead of magic numbers
2020-12-01 15:58:18 +01:00
jstaerk
08b6d8b5fb
making Transaction calculators getGrandTotal public
2020-11-28 10:59:50 +01:00
Sebastian Sieber
c2742c0e3a
Merge remote-tracking branch 'remotes/origin/master' into Improvements
2020-11-27 12:53:01 +01:00
Sebastian Sieber
751d129def
Add != null expression to prevent NPE
2020-11-27 12:51:10 +01:00
jstaerk
d764fb4784
closes #201
2020-11-26 09:39:47 +01:00
jstaerk
e7e2141c04
support reverse charge
2020-11-25 18:34:48 +01:00
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
a1fe5c437d
javadoc correction
2020-11-21 20:58:40 +01:00
jstaerk
a79a48095e
support account holders, new sample invoice
2020-11-21 20:46:05 +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
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
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
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
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