Kirti Savalia(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-572444-ksa into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #946125 in OpenERP Addons: "Invoice analysis 'total without VAT' is 
incorrect with VAT included in price"
  https://bugs.launchpad.net/openobject-addons/+bug/946125

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-572444-ksa/+merge/95887

Hello,

When using a price included VAT in invoice, the result of Total without TAX is 
equal to Total with TAX.

Thanks
KSA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-572444-ksa/+merge/95887
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-572444-ksa.
=== modified file 'account/report/account_invoice_report.py'
--- account/report/account_invoice_report.py	2011-04-07 12:29:55 +0000
+++ account/report/account_invoice_report.py	2012-03-05 12:38:21 +0000
@@ -113,9 +113,9 @@
                          ail.quantity / u.factor
                         end) as product_qty,
                     sum(case when ai.type in ('out_refund','in_invoice') then
-                         ail.quantity*ail.price_unit * -1
+                         ail.quantity*ail.price_subtotal * -1
                         else
-                         ail.quantity*ail.price_unit
+                         ail.quantity*ail.price_subtotal
                         end) / cr.rate as price_total,
                     sum(case when ai.type in ('out_refund','in_invoice') then
                          ai.amount_total * -1

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to