← Back to team overview

openerp-india team mailing list archive

[Bug 897319] Re: V6.03. All analysis do not take discount into account

 

In ~openerp/openobject-addons/6.0 
Report don't use price_subtotal of invoice_line

 /account/report/account_invoice_report.py (revision 5099) 
                    sum(case when ai.type in ('out_refund','in_invoice') then
                         ail.quantity*ail.price_unit * -1
                        else
                         ail.quantity*ail.price_unit
                        end) / cr.rate as price_total,

~openerp/openobject-addons/6.1 : /account/report/account_invoice_report.py (revision 6639) 
                    sum(case when ai.type in ('out_refund','in_invoice') then
                         -ail.price_subtotal
                        else
                          ail.price_subtotal
                        end) / cr.rate as price_total,

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

Title:
  V6.03. All analysis do not take discount into  account

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Hello,

  All the analysis on sales or invoices do not take discount into
  account. They show the price before discount and not after discount.

  Place an Order and generate an invoice :
  Product A: Price 100$  Discount 20%
  Total order without tax = 80$

  In all analysis the price is 100$
  - Invoices analysis
  - Sales analysis
  - Sales by month ....

  100$ is the price before discount, the real sale price  is  80$
  Analysis should show the price after discount 80$

  Thanks

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


References