← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 838501] [NEW] pos line total does not include tax

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/838501

Title:
  pos line total does not include tax

Status in OpenERP Modules (addons):
  New

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


Follow ups

References