LAPTOP-MS3A4HDC\Asim khan
c7093a20c1
closiong #247
2021-08-09 10:50:35 +02:00
Sebastian Sieber
417e899cab
Consider tax category code when writing exemption reason in ApplicableHeaderTradeSettlement
...
To prevent the following error:
<error type="4" location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeSettlement']/*[local-name()='ApplicableTradeTax'][2]/*[local-name()='CategoryCode']" criterion="not(../ram:ExemptionReason) and not (../ram:ExemptionReasonCode)">A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).</error>
<error type="24" location="/*:CrossIndustryInvoice[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]/*:SupplyChainTradeTransaction[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]/*:ApplicableHeaderTradeSettlement[namespace-uri()='urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100'][1]/*:ApplicableTradeTax[namespace-uri()='urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100'][2]/*:CategoryCode[namespace-uri()='urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100'][1]" criterion="not(../ram:ExemptionReason) and not (../ram:ExemptionReasonCode)">[BR-S-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120).</error>
2021-02-15 14:09:07 +01:00
Daniel Murygin
e90d1e12fd
Check if street in the address of the recipient is null
...
Fixes #222
2021-02-08 10:12:33 +01:00
Sewan Aleanakian
45475bee2e
Allow setting Contact for recipient TradeParty in XRechnung
...
fixes ZUGFeRD/mustangproject#216
2021-01-27 13:34:02 +01:00
jstaerk
4933a69369
removed eclipse translation markers
2021-01-26 15:30:11 +01:00
jstaerk
cf3ba8376b
- a correction should reference the original invoice via invoiceReferencedDocument, not buyerOrderReferencedDocument
2021-01-26 15:29:29 +01:00
Sebastian Sieber
597075e0dc
Support SellerOrderReferencedDocumentId
2021-01-20 10:13:10 +01:00
Sebastian Sieber
157ea9f554
Revert previous change.
...
Instead, calculate the total amounts on amounts with scale 2 to avoid errors in validation.
2020-12-08 15:52:43 +01:00
Sebastian Sieber
d97007d60f
Sum the individual tax amounts to the total tax amount to avoid following error:
...
[BR-CO-14]-Invoice total VAT amount (BT-110) = ? VAT category tax amount (BT-117)
2020-12-08 14:36:06 +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
jstaerk
57d53af39f
Don't write "null" as paymentDescription if no Bank account is specified
2020-12-01 18:32:46 +01:00
jstaerk
08b6d8b5fb
making Transaction calculators getGrandTotal public
2020-11-28 10:59:50 +01:00
jstaerk
d764fb4784
closes #201
2020-11-26 09:39:47 +01:00
jstaerk
0f58a60b74
closes #197
2020-11-22 16:47:20 +01:00
jstaerk
39d98d1e9d
added item delivery periods
2020-11-21 12:50:55 +01:00
jstaerk
2848711cff
have fax numbers for contacts only as of extended profile
2020-11-21 12:03:16 +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
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
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
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
b6aad03da2
updated some javadoc
2020-11-12 08:06:53 +01:00
jstaerk
e1881a3891
closes #190
2020-11-11 21:15:49 +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
jstaerk
ede19a6b74
refactoring Transactioncalculator
2020-10-31 18:16:10 +01:00
jstaerk
b624052fac
use java8 base64 encode
2020-10-31 12:40:45 +01:00
Jochen Stärk
f47222ee58
Reactiate improved migration feature, this time in the library
2020-10-29 17:26:04 +01:00
HKB-CSS
4de53c4c86
Byte-Data of AdditionalDocument converted to String
2020-10-28 15:36:38 +01:00
HKB-CSS
01c2d44b27
additionalReferencedDocuments according to BG-24 XRechnung
...
(Rechnungsbegruendende Unterlagen) included in
IExportableTransaction.java and ZUGFeRD2PullProvider.java
2020-10-28 14:39:31 +01:00
Jochen Stärk
2bb906df3a
add fax number to contact. Allow access to lineTwo(additionaladdress)
2020-10-27 10:18:28 +01:00
Jochen Stärk
72f9093e94
add chareg/allowance percent to XML, if set
2020-10-22 12:11:17 +02:00
Jochen Stärk
55d35b6d0c
updated javadoc
2020-10-17 18:22:34 +02:00
Jochen Stärk
0fbd4944f3
Removed some redundancy
2020-10-08 14:57:26 +02:00
Jochen Stärk
44c6509504
Relative charges/allowances on document level
2020-10-08 14:51:33 +02:00
Jochen Stärk
66fd7b4316
be able to refer to contract id
2020-10-06 12:43:35 +02:00
Jochen Stärk
cd3a5b75ef
Merge branch 'master' of github.com:ZUGFeRD/mustangproject
2020-10-06 12:23:59 +02:00
Jochen Stärk
adc981d98c
add document level billing period
2020-10-06 12:22:57 +02:00
jstaerk
399d671f19
Taxnumber correction
2020-10-01 13:55:26 +02:00
Jochen Stärk
efcbdb7b45
corrected document level charges
2020-10-01 08:26:10 +02:00
Jochen Stärk
0776960e24
adding bank details
2020-09-30 23:18:40 +02:00
Jochen Stärk
7dde7e7180
starting with document level charges/allowances via invoice class
2020-09-29 21:36:56 +02:00
Jochen Stärk
d1b16f6b4d
switch to new profiles (the old ones did not work)
2020-09-24 21:59:03 +02:00
Jochen Stärk
5144758c2f
set BuyerOrderReferencedDocument and correct TypeCode for correction
2020-09-24 18:33:01 +02:00
Jochen Stärk
7f5ae2036d
also write recipienttradeparty with getTradePartyAsXML, not only sender
2020-09-22 21:50:28 +02:00
Jochen Stärk
c5e45f5418
bigger itemChargesAllowances test. BasisQuantity correction
2020-09-21 22:14:33 +02:00