Use the right base amount for taxe on invoice.

bzr revid: ced-3ee74ba0f7a15f294dcbb220b161687a32be347b
This commit is contained in:
ced
2007-10-30 09:06:42 +00:00
parent df543d3f1d
commit 11aa32b736
+1 -1
View File
@@ -885,7 +885,7 @@ class account_invoice_tax(osv.osv):
val['amount'] = cur_obj.round(cr, uid, cur, tax['amount'])
val['manual'] = False
val['sequence'] = tax['sequence']
val['base'] = tax['price_unit'] * line['quantity'] * (1-(line.discount or 0.0)/100.0)
val['base'] = tax['price_unit'] * line['quantity']
if inv.type in ('out_invoice','in_invoice'):
val['base_code_id'] = tax['base_code_id']