Skip to content

Commit

Permalink
[FIX]Valor total do documento agora é calculado corretamente
Browse files Browse the repository at this point in the history
  • Loading branch information
carcaroff committed Aug 6, 2018
1 parent 4a6a660 commit 0170114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion br_purchase/models/purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _prepare_tax_context(self):
'icms_st_aliquota_deducao': self.icms_st_aliquota_deducao,
}

@api.depends('taxes_id', 'product_qty', 'price_unit',
@api.depends('taxes_id', 'product_qty', 'price_unit', 'discount',
'icms_aliquota_reducao_base', 'icms_st_aliquota_reducao_base',
'ipi_reducao_bc', 'icms_st_aliquota_deducao',
'incluir_ipi_base', 'icms_st_aliquota_mva')
Expand Down
2 changes: 1 addition & 1 deletion br_purchase_stock/models/purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _amount_all(self):
order.update({
'amount_total': order.total_bruto + order.total_tax +
order.total_frete + order.total_seguro +
order.total_despesas,
order.total_despesas - order.total_desconto,
})

def _calc_ratio(self, qty, total):
Expand Down

0 comments on commit 0170114

Please sign in to comment.