[PS] Reinvoice cost on an analytic account has no effect when doing the final invoice

Bug #783996 reported by Harmel Delphine (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

trunk server revno 3415

Using demo data

* Accounting/Configuration/Analytic Accounting/Analytic Accounts, create an analytic account and set a partner, a pricelist and a reinvoice cost at 50%
* Having analytic entries for this analytic account, display the list and click on "Action" to reinvoice

Obtained result : it generates the invoice taking into account that we are reinvoicing 100% of the cost

Expected result : it generated the invoice taking into account that we are reinvoicing 50% of the cost

reported by dha, OpenERP PRof. Serv

Tags: profserv
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → nobody
Amit Parik (amit-parik)
Changed in openobject-addons:
importance: Medium → Undecided
Revision history for this message
Harmel Delphine (OpenERP) (dha-openerp) wrote :

It works now if you reinvoice line by line but if you generate the final invoice for the whole analytic account, there is a problem in the price calculation.

E.g. : Click on final invoice on the analytic account and (using demo data) take the employee product as balance product. It generates an invoice with quantity = 1h and price = 0.00. And so even if the hourly sale price of the employee product is 200

Changed in openobject-addons:
status: New → Triaged
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hi Delphine,

I'm not sure if I understand correctly the issue you're reporting, but you should be careful that the "invoicing status" or "invoicing rate" is a property of the analytic entry itself, and not of the analytic account they belong to. Therefore changing the invoicing rate on the account does not affect entries that already exist in this account.
The rate on the account is only used as a default for new entries created automatically, such as timesheet entries (via project_timesheet module) or when confirming invoice lines on which an analytic account was set.

Note that having the invoice rate on each individual entry and not only on the account is required so you can book entries with different invoicing rates in the same account (some entries may need re-invoicing, some don't, or need other rates...)

If this is not what you were talking about, please reopen this issue. Thanks!

PS: what is a bit confusing is a side issue related to what you mention in comment #1: if there is no line marked "to be invoiced" in the account, clicking on "final invoice" should perhaps give you a warning or prevent creating an empty invoice - this could be a different bug report

Changed in openobject-addons:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.