← Back to team overview

credativ team mailing list archive

[Bug 898099] Re: [addons-6.0][point_of_sale][report][pos_details.py] The calculation of the total amount discounted is wrong in the report

 

Hello Olivier,

The Point_of_sale is totally new implemented with trunk, you can try
with latest trunk.

So this issue only effect for the stable version6 and this is not a
blocking issue.

For this type of stable version's issue, If you have a support and
maintenance contact with us then you can contact with our OPW team at
support@xxxxxxxxxxx, they will definitely help you.

Thanks.

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/898099

Title:
  [addons-6.0][point_of_sale][report][pos_details.py] The calculation of
  the total amount discounted is wrong in the report

Status in OpenERP Addons (modules):
  Won't Fix

Bug description:
  Ubuntu 10.4 - openerp-server & client 6.0.3

  I have noticed a mistake in the report /point_of_sale/report/pos_details.py
  At the end in the "total discount" line, the amount is wrong

  In the report, the amount discounted by order line
  (pos_order_line.price_ded)  is multiply by the quantity of products
  (pos_order_line.qty) and it shouldn't.

  In fact, the price_ded in the pos_order_line table is already the
  TOTAL amount disounted per order line (discount per product TIMES
  quantity of product)

  The Total discount should be only the sum of all
  pos_order_line.price_ded

  ==============

  I modified the code and the amount looks good now.
  In the code (pos_order_report.py)

  def _get_sum_dis_2(self,form,user):
          res4=[]
  #       self.cr.execute ("select sum(pol.price_ded * pol.qty)" \
          self.cr.execute ("select sum(pol.price_ded)" \

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/898099/+subscriptions


References