Some companies could have more than one VAT code, one per country.
In Europe, the invoice should show the VAT code of the country of delivery.
So I think we should select the VAT code depending on this country when printing the invoice. Also we should order the identifiers to allow to pick the first one as default one.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
I think the right way will be to store the identifier of the vat code on the invoice. It will be filled by default with the first one from the company identifiers.
In account_tax_rule_country, we add a new list of lines which have from/to country and define which identifier to use instead of the default one (same behaviour for tax).
For me, it is the best solution because it links the selection of the vat code to the tax rule used.
Cédric Krieradded 1 deleted label and removed 1 deleted label
Here is review26861002 for party and review28961002 for account_invoice.
I'm still not sure about the account_tax_rule_country modification so I will postpone it until we have more feedback. But at least we have a customisable hook for the feature.