Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.52k stars 2.81k forks source link

get_default_tva rules ? #30908

Open rycks opened 2 months ago

rycks commented 2 months ago

Bug

Some race conditions does not seems to be implemented into get_default_tva function

For example:

Then :

Source: https://www.impots.gouv.fr/professionnel/achatvente-de-biens

Dolibarr Version

develop

Environment PHP

No response

Environment Database

No response

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

aspangaro commented 2 months ago

Hi @rycks ,

When you have past the limit of 10k€, you can use the constant SERVICE_ARE_ECOMMERCE_200238EC to obtain list of vat rate from buyer's country. It's not automatically applied for the moment.

Ping @SylvainLegrand ;)

comaiteseb commented 2 months ago

Hi @rycks,

If you use the SERVICE_ARE_ECOMMERCE_200238EC and set the value to 2, it makes works has you like.

Si the PR : PR#27568