openobject-italia-core-devs team mailing list archive
-
openobject-italia-core-devs team
-
Mailing list archive
-
Message #01694
[Merge] lp:~a-camilli/openobject-italia/7.0-fix-deductible_vat_qty into lp:openobject-italia/7.0
Alessandro Camilli has proposed merging lp:~a-camilli/openobject-italia/7.0-fix-deductible_vat_qty into lp:openobject-italia/7.0.
Requested reviews:
OpenERP Italia core devs (openobject-italia-core-devs)
For more details, see:
https://code.launchpad.net/~a-camilli/openobject-italia/7.0-fix-deductible_vat_qty/+merge/193733
Correzione x errato calcolo iva detraibile nel caso in cui sulla riga della fattura la qta sia maggiore di 1
--
https://code.launchpad.net/~a-camilli/openobject-italia/7.0-fix-deductible_vat_qty/+merge/193733
Your team OpenERP Italia core devs is requested to review the proposed merge of lp:~a-camilli/openobject-italia/7.0-fix-deductible_vat_qty into lp:openobject-italia/7.0.
=== modified file 'l10n_it_partially_deductible_vat/account.py'
--- l10n_it_partially_deductible_vat/account.py 2013-05-23 16:55:09 +0000
+++ l10n_it_partially_deductible_vat/account.py 2013-11-04 07:07:12 +0000
@@ -91,8 +91,8 @@
base_ind = float(Decimal(str(totalex * ind_tax_obj.amount)).quantize(Decimal('1.'+precision*'0'), rounding=ROUND_HALF_UP))
base_ded = float(Decimal(str(totalex - base_ind)).quantize(Decimal('1.'+precision*'0'), rounding=ROUND_HALF_UP))
tax_total = float(Decimal(str(tax['balance'])).quantize(Decimal('1.'+precision*'0'), rounding=ROUND_HALF_UP))
- ind_tax['price_unit'] = base_ind
- tax['price_unit'] = base_ded
+ ind_tax['price_unit'] = round(base_ind/quantity, self.pool.get('decimal.precision').precision_get(cr, uid, 'Product Price'))
+ tax['price_unit'] = round(base_ded/quantity, self.pool.get('decimal.precision').precision_get(cr, uid, 'Product Price'))
return res
Follow ups