Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040714Retail ModulesWeb POSpublic2019-04-10 12:472019-05-02 08:31
shuehner 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR19Q2RR19Q2 
marvintm
No
0040714: POSUtils.getPriceListVersionForPriceList is not using bind-parameters
This code is not using bind-params:

      Query<PriceListVersion> priceListVersionQuery = OBDal.getInstance()
          .getSession()
          .createQuery("from PricingPriceListVersion AS plv " + "where plv.priceList.id ='"
              + priceListId
              + "' and plv.active=true and plv.validFromDate = (select max(pplv.validFromDate) "
              + "from PricingPriceListVersion as pplv where pplv.active=true and pplv.priceList.id = '"
              + priceListId + "' and to_char(pplv.validFromDate,'yyyy-mm-dd') <= '"
              + format.format(terminalDate) + "' )", PriceListVersion.class);
      for (PriceListVersion plv : priceListVersionQuery.list()) {
        return plv;
      }
-
No tags attached.
blocks defect 0040583 closed ranjith_qualiantech_com POSUtils.getPriceListVersionForPriceList is not using bind-parameters 
Issue History
2019-04-30 11:53shuehnerTypedefect => backport
2019-04-30 11:53shuehnerTarget Version => RR19Q2
2019-05-02 08:22hgbotCheckin
2019-05-02 08:22hgbotNote Added: 0111414
2019-05-02 08:22hgbotStatusscheduled => resolved
2019-05-02 08:22hgbotResolutionopen => fixed
2019-05-02 08:22hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c82334b59fdf53cb9b49284e8ff3a939c5c46d03 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.retail.posterminal/rev/82f52629670cd0ad1a6f37869a82d69afb270509 [^]
2019-05-02 08:31marvintmReview Assigned Toadrianromero => marvintm
2019-05-02 08:31marvintmStatusresolved => closed
2019-05-02 08:31marvintmFixed in Version => RR19Q2

Notes
(0111414)
hgbot   
2019-05-02 08:22   
Repository: retail/backports/3.0RR19Q2/org.openbravo.retail.posterminal
Changeset: 82f52629670cd0ad1a6f37869a82d69afb270509
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu May 02 11:52:10 2019 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.retail.posterminal/rev/82f52629670cd0ad1a6f37869a82d69afb270509 [^]

Fixed issue 40714 : Update POSUtils query to use query parameter

---
M src/org/openbravo/retail/posterminal/POSUtils.java
---