OCA / l10n-brazil

Localização brasileira oficial do Odoo.
https://odoo-community.org/psc-teams/brazil-66
GNU Affero General Public License v3.0
235 stars 244 forks source link

Saldo Fatura incorreto em Operação de Aquisição de Ativo #80

Closed mileo closed 9 years ago

mileo commented 10 years ago

Ao definir uma posição fiscal de aquisição de ativo, com ipi e icms o saldo a pagar fica maior que o valor da fatura.

É possivel resolver o problema invertendo as linhas

        tax['amount'] = round(total_line * tax['percent'], precision)
        tax['amount'] = round(tax['amount'] * (1 - tax['base_reduction']), precision)

        if tax.get('tax_discount'):
            result['tax_discount'] += tax['amount']

Do account.py

mileo commented 10 years ago

https://drive.google.com/a/kmee.com.br/folderview?id=0B95pKEv9JTbiTjYyWDZhQzhxQVk&usp=drive_web

Alguns prints demonstrando o problema

mileo commented 10 years ago

Lembrando que o bug foi reportado em 2013:

https://bugs.launchpad.net/openerp.pt-br-localiz/+bug/1102399