Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040848 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 09. Financial management | minor | have not tried | 2019-04-09 20:31 | 2019-05-23 17:29 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | nonofrancisco | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR19Q2.1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | f14dc55b25f0 | ||||
Projection | none | ETA | none | Target Version | 3.0PR19Q2.1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | Sandrahuguet | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0040848: AcctServer.isConveritble is not using bind-parameters | |||||||
Description | 4 cases in this methods are not using bind-parameters conversionQuery = OBDal.getInstance() .createQuery(ConversionRateDoc.class, "invoice = '" + Record_ID + "' and currency='" + currency + "' and toCurrency='" + acctSchema.m_C_Currency_ID + "'"); } else if (AD_Table_ID.equals(TABLEID_Payment)) { conversionQuery = OBDal.getInstance() .createQuery(ConversionRateDoc.class, "payment = '" + Record_ID + "' and currency='" + currency + "' and toCurrency='" + acctSchema.m_C_Currency_ID + "'"); } else if (AD_Table_ID.equals(TABLEID_Transaction)) { conversionQuery = OBDal.getInstance() .createQuery(ConversionRateDoc.class, "financialAccountTransaction = '" + Record_ID + "' and currency='" + currency + "' and toCurrency='" + acctSchema.m_C_Currency_ID + "'"); } else if (AD_Table_ID.equals(TABLEID_GLJournal)) { conversionQuery = OBDal.getInstance() .createQuery(ConversionRateDoc.class, "journalEntry = '" + Record_ID + "' and currency='" + currency + "' and toCurrency='" + acctSchema.m_C_Currency_ID + "'"); | |||||||
Steps To Reproduce | - | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0112100) hgbot (developer) 2019-05-23 17:27 |
Repository: erp/backports/3.0PR19Q2.1 Changeset: f14dc55b25f0d4fe5d886ffefba6ce732796ab11 Author: Nono Carballo <nonofce <at> gmail.com> Date: Mon Apr 22 15:49:11 2019 -0400 URL: http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/f14dc55b25f0d4fe5d886ffefba6ce732796ab11 [^] Fixes issue 40848: Uses bind parameters in query When creating the query to get exchange rates by documents, instead of use string concatenation, bind parameters are uses. --- M src/org/openbravo/erpCommon/ad_forms/AcctServer.java --- |
(0112101) Sandrahuguet (developer) 2019-05-23 17:29 |
Code review + testing ok |
Issue History | |||
Date Modified | Username | Field | Change |
2019-05-12 16:01 | nonofrancisco | Type | defect => backport |
2019-05-12 16:01 | nonofrancisco | Target Version | => 3.0PR19Q2 |
2019-05-23 16:24 | Sandrahuguet | Target Version | 3.0PR19Q2 => 3.0PR19Q2.1 |
2019-05-23 17:27 | hgbot | Checkin | |
2019-05-23 17:27 | hgbot | Note Added: 0112100 | |
2019-05-23 17:27 | hgbot | Status | scheduled => resolved |
2019-05-23 17:27 | hgbot | Resolution | open => fixed |
2019-05-23 17:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/f14dc55b25f0d4fe5d886ffefba6ce732796ab11 [^] |
2019-05-23 17:29 | Sandrahuguet | Review Assigned To | => Sandrahuguet |
2019-05-23 17:29 | Sandrahuguet | Note Added: 0112101 | |
2019-05-23 17:29 | Sandrahuguet | Status | resolved => closed |
2019-05-23 17:29 | Sandrahuguet | Fixed in Version | => 3.0PR19Q2.1 |
Copyright © 2000 - 2009 MantisBT Group |