Open Zimputer opened 2 months ago
Found the solution to the problem:
The function get_default_tva(), sets the VAT rate according to the customer. Since we used a generic customer with no country assigned to this customer, the default VAT = 0. This is following this rule: VATRULE 6: Otherwise the VAT proposed by default=0. End of rule.
Changing the country of this generic user solves the problem. This can be marked as not a bug, but maybe leave this for other people encountering the same issue.
Bug
When selecting a product, the price in Takepos is the same with and without VAT. Somehow, it uses a VAT of 0 percent. When digging through the code, I couldn't find any obvious place where this originates. The VAT set at the price of the product should be used.
Here is the view in takepos:
Invoices work without a problem.
Dolibarr Version
19.0.2
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
Add product in Takepos from the dolibarr products.
Attached files
dolibarr.log