pos line total does not include tax

Bug #838501 reported by Jonathan Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

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):

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

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 : <email address hidden>
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
Changed in openobject-addons:
milestone: none → 6.1
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

fixed in r5191..5205

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.