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.27k stars 2.73k forks source link

product price change in the order / invoice #25078

Open michalhana99 opened 1 year ago

michalhana99 commented 1 year ago

Bug

if I edit the price of the product with VAT in the order, an erroneous recalculation occurs on the line The total amount is correct, but subsequently when generating the invoice, the wrong price is overwritten

Environment Version

17.0.1, 17.0.2

Environment OS

Windows

Environment Web server

IIS

Environment PHP

No response

Environment Database

No response

Environment URL(s)

No response

Expected and actual behavior

No response

Steps to reproduce the behavior

Create an item in the order with a price of 250 excluding VAT confirm Subsequently, modify and adjust the price of the already entered item with VAT to 350 and confirm

Attached files

image

image

sonikf commented 1 year ago

v. 17.0.2 works as expected for me. What is the (z) in the vat ?

I can confirm this bug. it also applies to 18.0.0 beta For clarity when trying to edit - update the U.P. (inc. tax) field value the U.P. (net) field is updated instead, calculations are correct.

michalhana99 commented 1 year ago

VAT is europe, price inc. tax image

EDIT image

image

sonikf commented 1 year ago

Can you post a screenshot of your vat rates Dictionary.

michalhana99 commented 1 year ago

IMG_20230614_143013

michalhana99 commented 10 months ago

This problem was not fixed in version 18.0.3 or previous :-(