Wrong computation of amount currency in analytic entry

Bug #717198 reported by TeMPO
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

6.0.1

make a SO in USD for a PC1 with an analytic distribution (70 % on Seagate P1 and 30 % on Seagate P2)
You get two entries in the analytic sale journal one for the 70 % amount and one for the 30 % amount
In each entry the amount in reference currency is right, the amount in USD is showing the global amount and not
(70 % or 30 %)

regards

Maurice

Related branches

Revision history for this message
TeMPO (info-tempo-consulting) wrote :

I forgot to say that the amount in USD has a minus sign which is not correct

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Problem is Amount_currency is on Analytic lines related with move line's Amount_currency.
So if we Create sale order with sale order line's Distribution 70% + 30% we will get two analytic lines but with only one move line.

We can convert related field with function field (may be we need to add new field on analytic line => for percentage %) using this we can calculate the right amount in currency.

For e.g:

set a distribution that will be 30% and 70%

So it will create analytic line of
30 € with amount in currency = 30€ converted in USD
70 € with amount in currency = 70€ converted in USD
but as you rounded this amount in € then back in $ you may have differences

thanks,
mra

Changed in openobject-addons:
milestone: none → 6.1
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
TeMPO (info-tempo-consulting) wrote :

Dear all

I just wanted to make clear that the rouding is not done yet because the split (70% -30%) is not taken in account
Ane there is another problem with the MINUS sign

Changed in openobject-addons:
status: In Progress → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

I have fixed it in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-717198-pso.
Rev-Id: <email address hidden>
Rev-no: 4640

It will be merged soon with Addons branch.

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

merge proposal set as need fixing, so i'm putting back the bug in confirmed state

Changed in openobject-addons:
status: Fix Committed → Confirmed
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

New changes are committed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-717198-pso

It will be merged soon with Addons branch.

Thanks.

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Fix Committed → Fix Released
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.