ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
202 stars 113 forks source link

Give possibility to define when VAT becomes applicable (BT-8) #308

Closed chris-webert-its4u closed 1 year ago

chris-webert-its4u commented 1 year ago

Hello,

We're using Mustang to generate Factur-X invoices for our french suppliers so that they can import these in Chorus Pro directly. It works fine so far but a few of those suppliers work differently from the others, and need the VAT applicability (BT-8) on their invoices to be set at payment date rather than invoice issue date (the default). Chorus Pro let you choose that setting when you create an invoice through their portal, so it should be feasible to read it from a Factur-X at import I'd assume.

I found that you can do that with a Time code (UNTDID 2475) at the ram:ApplicableTradeTax level, with a tag called ram:DueDateTypeCode. Authorized values seems to be 5, 29 and 72 for UN/CEFACT CII.

I don't think there's a way to set that code with Mustang yet (or I may have missed it), do you think it's possible to add this in the future?

Thank you

jstaerk commented 1 year ago

It is possible, we can do it together, you could pay for it (this sounds like a 3 digit euro effort) or you might have to wait until someone had the time. For my reference: e.g. in the FNFE Factur-X sample Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_EN_16931 there is a DueDateTypeCode of 72. The TA says the values mean