Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040849
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 09. Financial managementminorhave not tried2019-04-09 20:312019-05-23 17:29
ReportershuehnerView Statuspublic 
Assigned Tononofrancisco 
PrioritynormalResolutionfixedFixed in Version3.0PR19Q1.2
StatusclosedFix in branchFixed in SCM revision126f82691b48
ProjectionnoneETAnoneTarget Version3.0PR19Q1.2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0040849: AcctServer.isConveritble is not using bind-parameters

Description4 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-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0040560 closednonofrancisco AcctServer.isConveritble is not using bind-parameters 

-  Notes
(0112099)
hgbot (developer)
2019-05-23 17:05

Repository: erp/backports/3.0PR19Q1.2
Changeset: 126f82691b4812bb82b3ca7517315beca4821c97
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Mon Apr 22 15:49:11 2019 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/126f82691b4812bb82b3ca7517315beca4821c97 [^]

Fixes issue 40849: 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
---
(0112102)
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.0PR19Q1.2
2019-05-23 17:05 hgbot Checkin
2019-05-23 17:05 hgbot Note Added: 0112099
2019-05-23 17:05 hgbot Status scheduled => resolved
2019-05-23 17:05 hgbot Resolution open => fixed
2019-05-23 17:05 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/126f82691b4812bb82b3ca7517315beca4821c97 [^]
2019-05-23 17:29 Sandrahuguet Review Assigned To => Sandrahuguet
2019-05-23 17:29 Sandrahuguet Note Added: 0112102
2019-05-23 17:29 Sandrahuguet Status resolved => closed
2019-05-23 17:29 Sandrahuguet Fixed in Version => 3.0PR19Q1.2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker