Merge lp:~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-fix-saldo into lp:openerp.pt-br-localiz/6.1

Status: Needs review
Proposed branch: lp:~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-fix-saldo
Merge into: lp:openerp.pt-br-localiz/6.1
Diff against target: 16 lines (+2/-1)
1 file modified
l10n_br_account/account.py (+2/-1)
To merge this branch: bzr merge lp:~mileo/openerp.pt-br-localiz/openerp.pt-br-localiz-fix-saldo
Reviewer Review Type Date Requested Status
OpenERP Brazil Core Team Pending
Review via email: mp+149739@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

348. By Luis Felipe Miléo - http://www.kmee.com.br

[FIX] Calculo ICMS com RED que causava valores incorretos no saldo/account.move.line/duplicata-nfe

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_br_account/account.py'
2--- l10n_br_account/account.py 2012-08-27 02:11:28 +0000
3+++ l10n_br_account/account.py 2013-02-21 02:24:24 +0000
4@@ -43,10 +43,11 @@
5 if tax.get('type') == 'quantity':
6 tax['amount'] = round(product_qty * tax['percent'], precision)
7
8+ tax['amount'] = round(tax['amount'] * (1 - tax['base_reduction']), precision)
9+
10 if tax.get('tax_discount', False):
11 result['tax_discount'] += tax['amount']
12
13- tax['amount'] = round(tax['amount'] * (1 - tax['base_reduction']), precision)
14 if tax['percent']:
15 tax['total_base'] = round(total_line * (1 - tax['base_reduction']), precision)
16 tax['total_base_other'] = round(total_line - tax['total_base'], precision)