[Vtigercrm-commits] [vtiger development] #7061: Summary Reports give SQL error
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Apr 7 12:08:30 PDT 2011
#7061: Summary Reports give SQL error
------------------------+---------------------------------------------------
Reporter: perissin | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.2.1
Keywords: |
------------------------+---------------------------------------------------
Both Invoice reports and Sales Orders reports don't work. Choose Summary
Reports and choose Product Name as first Summary Key. You will have an
error in the SQL syntax, due to missing quotes "'" around the name of the
Product Name column in the order by statement. Here is the resulting
(wrong) query (on Sales Orders):
order by SalesOrder_Product Name ASC, vtiger_salesorder.salesorderid,
vtiger_salesorder.subject.
Here the complete description (with Sales Orders reports):
Create Report -> Sales order
I haven't selected any related module
Report Type -> Summary Report
Selected Fields: Sales Order Product Name (I get the same error also if I
add Quantity)
Summarize information by: Product Name, None, None
Calculation: Sales Order -Sales Commission, Sales Order -Total, Sales
Order-Subtotal
No filters.
And here the error:
Report generation failed!
You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'Name ASC,
vtiger_salesorder.salesorderid, vtiger_salesorder.subject' at line 1
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7061>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list