Browse Source

Merge branch '10.0' of https://github.com/CybroOdoo/CybroAddons into 10.0

pull/29/head
SHEREEF PT 8 years ago
parent
commit
e773d5cc4a
  1. 3
      sale_discount_total/models/sale.py

3
sale_discount_total/models/sale.py

@ -115,6 +115,8 @@ class AccountTax(models.Model):
else: else:
total_included += tax_amount total_included += tax_amount
tax_base = base
if tax.include_base_amount: if tax.include_base_amount:
base += tax_amount base += tax_amount
@ -126,6 +128,7 @@ class AccountTax(models.Model):
'account_id': tax.account_id.id, 'account_id': tax.account_id.id,
'refund_account_id': tax.refund_account_id.id, 'refund_account_id': tax.refund_account_id.id,
'analytic': tax.analytic, 'analytic': tax.analytic,
'base': tax_base,
}) })
print "total_excluded:",total_excluded print "total_excluded:",total_excluded
print "total_included:",total_included print "total_included:",total_included

Loading…
Cancel
Save