Issue 11883

Title
Wrong amount to invoice when invoice_unit_price is overriden
Priority
bug
Status
testing
Nosy list
ced, pokoli
Assigned to
pokoli
Keywords
review

Created on 2022-11-11.09:08:10 by pokoli, last changed 2 weeks ago by pokoli.

Messages

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-11-11.10:17:41

We have a work with list_price of 0 but we have overrinden invoice_unit_price to return a diferent value.
In such case the work quantity is not computed due to:

https://hg.tryton.org/modules/project_invoice/file/33dc059192ce/project.py#l42

Because not list_price is false but it should return a value as inovice_unit_price has a value.

We must switch all list_price usage to the invoice_unit_price property.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-11-11.10:11:32

I do not understand.

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2022-11-11.09:08:10

It is possible to override the list_price used to invoice the project project but in such case the amount to invoice is wrong the list_price is empty as the list price is used to determine the computed amount.

History
Date User Action Args
2022-11-11 10:17:41pokolisetmessages: + msg80019
2022-11-11 10:11:32cedsetmessages: + msg80018
nosy: + ced
2022-11-11 09:09:07pokolisetkeyword: + review
reviews: 413861003
status: in-progress -> testing
2022-11-11 09:08:10pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)