...
We should research the common ground for invoices and POS receipts
Quoting Jacopo in this commit
Now most of the mandatory information required by EU/VAT countries as described here
This commit implements
- improved code to retrieve the bill-to-party tax id, required by VAT rules only: now the tax id is retrieved only if in the invoice there are taxes of type VAT_TAX
- added shipment date if available
- as required by EU rules for VAT taxes, if there are VAT taxes in the invoice, then a break-down of the VAT amount payable per VAT rate is displayed at the bottom of the invoice
Important: the information that are not relevant for "sales tax" invoices (e.g. US invoices) are not rendered if VAT taxes are not available in the invoice.
...
requirement | region | needed? |
---|---|---|
Unique invoice number based on a chronological and continuous sequence | France | yes |
| Germany | yes |
| Spain | yes |
Discounts applied per line |
|
|
Ofbiz supports invoice level discounts. This is not valid for VAT. For VAT, amount for each line must be known, so discounts | Poland | yes |
Germany | yes | |
| France | yes |
I.e. there can be invoices with different VAT rates per line. | Spain | yes |
Rounding |
|
|
Important: rounding may only take place one time per VAT rate (after all calc. VAT amounts are summed up for that rate) | Germany | yes |
| France | yes |
| EU | yes? |
Exemption |
|
|
Some products can have different tax rate when selling to different type of customer. E.g. In Poland flat/house renting is 0% for individual |
|
|
Similar situtation in Germany: FastFood restaurants: take-a-way food has 7%, stay-here is 19%, usually handled via different products, too. |
|
|
Same in France : only rates change (5.5% and 19.6%) (I wonder why they did not choose 5.55468 and 19.65548754, hey it's France ;o) |
|
|
Has different VAT rates, for different type of goods |
|
|
Official EU document Wikipedia (could be more updated than EU document) | EU | yes |
0%, 7%, 19% | Germany | yes |
2.1%, 5.5% 19.6% (there is no 0% rate in France only conditionnal exemption) | France | yes |
0%, 4%, 7%, 16% | Spain | yes |
Apply VAT for sales in INTERNAL_ORGANIZATION country Official EU document |
| |
| EU | yes |
Apply VAT for sales outside EU |
|
|
Buyer may get VAT back from German Customs Auth. when he proves, that goods leave Germany (or EU?) | Germany | yes |
There are some exceptions with DOM-TOM (no metropolitan territories) and electricity. | France | no: goods |
| Poland | yes |
Spain | no | |
Apply VAT for sales outside INTERNAL_ORGANIZATION country && inside EU && with valid VAT ID (B2B) |
|
|
INTERNAL_ORGANIZATION may have to proof that goods left Germany (for Tax Auth.) | Germany | no |
In Poland there is also need for spedition document to have proof that goods left Poland | Poland | no |
Same in France (document de transport)
| France | no |
| Spain | no |
Apply VAT for sales outside INTERNAL_ORGANIZATION country && inside EU && without valid VAT ID (B2C) |
|
|
| Germany | yes |
| France | yes |
| Poland | yes |
| Spain | yes |
Apply VAT for purchases like sales |
|
|
| EU | yes |
...