c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #31787
[Bug 838501] Re: pos line total does not include tax
Hello Jonathan Wilson,
Thanks for your kind co-operation, i have checked your above solution
and its working as expected, following are the Revision ID and Number of
the bug :
Revision ID : bde@xxxxxxxxxxx-20110908125231-d8r730iek6zrlwxl
Revision Number : 4953
The solution of the bug will be merged in main addons soon.
Regards,
Devnani Bharat R.
** Changed in: openobject-addons
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/838501
Title:
pos line total does not include tax
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Ver 6.03
The line view of a pos transaction has the 2nd last column as
"Subtotal w/o tax" and the last column as "Subtotal". The last coumn
should display the line total including tax. However the calculation
is incorrect as it references the wrong field in the object. Fix
below:
=== modified file 'point_of_sale/point_of_sale.py'
--- point_of_sale/point_of_sale.py 2011-06-02 05:14:55 +0000
+++ point_of_sale/point_of_sale.py 2011-09-01 01:03:00 +0000
@@ -1017,7 +1017,7 @@
price = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
computed_taxes = account_tax_obj.compute_all(cr, uid, taxes, price, line.qty)
cur = line.order_id.pricelist_id.currency_id
- res[line.id][f] = self.pool.get('res.currency').round(cr, uid, cur, computed_taxes['total'])
+ res[line.id][f] = self.pool.get('res.currency').round(cr, uid, cur, computed_taxes['total_included'])
return res
def price_by_product_multi(self, cr, uid, ids, context=None):
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/838501/+subscriptions
References