Merge lp:~openerp-dev/openobject-addons/trunk-bug-1154223-dka into lp:openobject-addons

Proposed by Darshan Kalola(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1154223-dka
Merge into: lp:openobject-addons
Diff against target: 18 lines (+7/-1)
1 file modified
account/report/account_invoice_report.py (+7/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1154223-dka
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+196055@code.launchpad.net

Description of the change

Hello sir,

    I have fixed the issue , price_total miscalculated in Turnover Report when COA and invoice in USD.

thanks,
Darshan.

To post a comment you must log in.

Unmerged revisions

8983. By Darshan Kalola(OpenERP)

[FIX]USD price_total miscalculated in Turnover Report

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/report/account_invoice_report.py'
2--- account/report/account_invoice_report.py 2013-05-14 12:05:18 +0000
3+++ account/report/account_invoice_report.py 2013-11-21 04:57:26 +0000
4@@ -109,7 +109,13 @@
5 sub.payment_term, sub.period_id, sub.uom_name, sub.currency_id, sub.journal_id,
6 sub.fiscal_position, sub.user_id, sub.company_id, sub.nbr, sub.type, sub.state,
7 sub.categ_id, sub.date_due, sub.account_id, sub.account_line_id, sub.partner_bank_id,
8- sub.product_qty, sub.price_total / cr.rate as price_total, sub.price_average /cr.rate as price_average,
9+ sub.product_qty,
10+ CASE
11+ WHEN (SELECT currency_id FROM res_company WHERE id = sub.company_id) <> sub.currency_id
12+ THEN sub.price_total / cr.rate
13+ ELSE sub.price_total
14+ END AS price_total,
15+ sub.price_average /cr.rate as price_average,
16 cr.rate as currency_rate, sub.residual / cr.rate as residual, sub.commercial_partner_id as commercial_partner_id
17 """
18 return select_str

Subscribers

People subscribed via source and target branches

to all changes: