Print RfQResponse - TEMPLATE always selected instead of Clients PrintFormat
Description
After having created a client specific PrintFormat for RfqResponse I expect this to be provided as default selection when printing. But always the 'RfQResponse TEMPLATE' is first and I then have to select the client print format instead. It turns out that the related SQL in ReportEngine.java has a wrong ordering and thus always shows the ID of the template in all lines.
Environment
None
Attachments
1
28 Nov 2016, 02:14 PM
Activity
Show:
Dirk Niemeyer November 28, 2016 at 4:36 PM
Hi @Carlos Ruiz, yeah, my fault, sorry for taking your time. It seemed such a perfect solution to blame the SQL so I did not look further and totally forgot about the setting in RfQTopic. Sorry. Blush... Regards Dirk Niemeyer
Carlos Ruiz November 28, 2016 at 4:18 PM
Hi @Dirk Niemeyer, I created a GardenWorld RfQResponse print format, filled a response from the webstore and when printing the correct GW is selected.
Based on the patch you're sending maybe the cause is because your RfQTopic print format is filled and I think is correct that has a precedence over the print formats.
After having created a client specific PrintFormat for RfqResponse I expect this to be provided as default selection when printing.
But always the 'RfQResponse TEMPLATE' is first and I then have to select the client print format instead.
It turns out that the related SQL in ReportEngine.java has a wrong ordering and thus always shows the ID of the template in all lines.