[Vtigercrm-commits] [Vtiger development] #8028: reports module generates incorrect discount sums on invoice reports

Vtiger development vtiger-tickets at trac.vtiger.com
Fri May 2 11:08:26 GMT 2014


#8028: reports module generates incorrect discount sums on invoice reports
------------------------+---------------------------------------------
 Reporter:  scharf      |      Owner:  developer
     Type:  defect      |     Status:  new
 Priority:  unassigned  |  Milestone:  Unassigned
Component:  vtigercrm   |    Version:  6.1.0 - wip
 Severity:  Medium      |   Keywords:  reports invoice discount amount
------------------------+---------------------------------------------
 While creating an invoice report customized to calculate "invoice discount
 amount", wrong values are generated for SUM AVG MIN MAX.

 To reproduce it:
 Create an invoice with an invoice discount of e.g. 2% or any direct
 discout (not product discount!)
 Customize the invoice report to calculate "invoice discount amount" SUM
 AVG MIN MAX
 As result you'll find that:
 a) if you gave a percent discount in the analyzed invoice, the report
 generates "0" for SUM AVG MIN MAX of invoice discount amount
 b) if you gave a direct discount, the report calculates wrong values for
 SUM AVG MIN MAX

 (just in case everything seems right on your report, try to change the
 invoice discount from percent to direct an then generate the report again
 to reproduce the strange behaviour i fount on any vtiger installation from
 5.3 up to 6.1wip)

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8028>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list