Browse Source

Merge pull request #15 from Albin-John/patch-1

Add tax_base = base and base in taxes.append
pull/29/head
Cybrosys Technologies 8 years ago
committed by GitHub
parent
commit
4fb5c72430
  1. 5
      sale_discount_total/models/sale.py

5
sale_discount_total/models/sale.py

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

Loading…
Cancel
Save