Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0040716 | Retail Modules | Web POS | public | 2019-04-10 12:53 | 2019-05-02 08:30 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR19Q2 | Fixed in Version | RR19Q2 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0040716: CashUpReport.doPost is not using bind-parameters | |||||||||||
Description | This code is not using bind-params: final String hqlCashup = "SELECT netsales, grosssales, netreturns, grossreturns, totalretailtransactions " // + " FROM OBPOS_App_Cashup " // + " WHERE id = '" + cashupId + "' "; // final Query<Object[]> cashupQuery = OBDal.getReadOnlyInstance() .getSession() .createQuery(hqlCashup, Object[].class); and final String hqlTaxes = String.format("SELECT name, STR(ABS(amount)) " // + " FROM OBPOS_Taxcashup " // + " WHERE obpos_app_cashup_id='%s' AND ordertype='0' " // + " ORDER BY name ", cashupId); final Query<Object[]> salesTaxesQuery = OBDal.getReadOnlyInstance() .getSession() .createQuery(hqlTaxes, Object[].class); and final String hqlReturnTaxes = String.format("SELECT name, STR(ABS(amount)) " // + " FROM OBPOS_Taxcashup " // + " WHERE obpos_app_cashup_id='%s' AND ordertype='1' " // + " ORDER BY name ", cashupId); final Query<Object[]> returnsTaxesQuery = OBDal.getReadOnlyInstance() .getSession() .createQuery(hqlReturnTaxes, Object[].class); | |||||||||||
Steps To Reproduce | - | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-04-30 11:55 | shuehner | Type | defect => backport | |||||||||
2019-04-30 11:55 | shuehner | Target Version | => RR19Q2 | |||||||||
2019-05-02 08:21 | hgbot | Checkin | ||||||||||
2019-05-02 08:21 | hgbot | Note Added: 0111412 | ||||||||||
2019-05-02 08:21 | hgbot | Status | scheduled => resolved | |||||||||
2019-05-02 08:21 | hgbot | Resolution | open => fixed | |||||||||
2019-05-02 08:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.retail.posterminal/rev/8365c58d4244a6439a7728a7a98c8b433d166453 [^] | |||||||||
2019-05-02 08:30 | marvintm | Review Assigned To | adrianromero => marvintm | |||||||||
2019-05-02 08:30 | marvintm | Status | resolved => closed | |||||||||
2019-05-02 08:30 | marvintm | Fixed in Version | => RR19Q2 |
Notes | |||||
|
|||||
|
|