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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041023
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 09. Financial managementmajoralways2019-05-28 17:192019-06-05 16:45
ReporterngarciaView Statuspublic 
Assigned Tononofrancisco 
PriorityurgentResolutionfixedFixed in Version3.0PR19Q2.1
StatusclosedFix in branchFixed in SCM revisiondfb79e80d307
ProjectionnoneETAnoneTarget Version3.0PR19Q2.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2017-10-10
Regression introduced in release3.0PR18Q1
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/9cf1f8c7de280894eb268e310a732b3e61cd128d [^]
Triggers an Emergency PackNo
Summary

0041023: Cannot open Payment Execution form if there are more than 1000 payment methods

DescriptionCannot open Payment Execution form if there are more than 1000 payment methods
Steps To ReproduceLog in with 'The White Valley Group Admin' role
Open the Payment Execution window
Check the following error is shown:
   "org.hibernate.exception.SQLGrammarException: could not execute query"
The log shows:
   
ERROR org.openbravo.advpaymentmngt.ad_forms.BatchPaymentExecution - Error captured:
org.hibernate.exception.SQLGrammarException: could not extract ResultSet
...
    at org.openbravo.dal.service.OBCriteria.list(OBCriteria.java:103) ~[OBCriteria.class:?]
    at org.openbravo.advpaymentmngt.dao.AdvPaymentMngtDao.getFilteredPaymentMethods(AdvPaymentMngtDao.java:874) ~[AdvPaymentMngtDao.class:?]
    at org.openbravo.advpaymentmngt.utility.FIN_Utility.getPaymentMethodList(FIN_Utility.java:505) ~[FIN_Utility.class:?]
    at org.openbravo.advpaymentmngt.ad_forms.BatchPaymentExecution.printPageDataSheet(BatchPaymentExecution.java:205) ~[BatchPaymentExecution.class:?]
    at org.openbravo.advpaymentmngt.ad_forms.BatchPaymentExecution.doPost(BatchPaymentExecution.java:85) ~[BatchPaymentExecution.class:?]
Proposed SolutionThe problem is in the addPaymentMethodList function of AdvPaymentMngtDao class. The following line is leaving the paymentMethods empty

paymentMethods.removeAll(paymentMethodsToRemove);

and the following instruction is not calculating the size correctly:

      paymentMethodsSize = paymentMethodsSize - 999;

so the following condition is included in the query:

or this_.Fin_Paymentmethod_ID in ()
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0040964 closednonofrancisco Cannot open Payment Execution form if there are more than 1000 payment methods 

-  Notes
(0112433)
hgbot (developer)
2019-06-05 16:44

Repository: erp/backports/3.0PR19Q2.1
Changeset: dfb79e80d3077f5408e3604dcca31820db0c3574
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Thu May 30 11:36:20 2019 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/dfb79e80d3077f5408e3604dcca31820db0c3574 [^]

Fixes issue 41023: Fixes getting Filter by Payment Method

Avoids duplicates in list of payment method Id's.
Fixes the way the filter is build when there are more than 1000 payment methods
for filtering

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
(0112434)
hgbot (developer)
2019-06-05 16:44

Repository: erp/backports/3.0PR19Q2.1
Changeset: 9636def9bef61b415120fd81b1fefb12548fab91
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Jun 05 16:10:12 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/9636def9bef61b415120fd81b1fefb12548fab91 [^]

related to issue 41023 reimplement the way to split the paymentMethods

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
---
(0112437)
Sandrahuguet (developer)
2019-06-05 16:45

code review + testing ok

- Issue History
Date Modified Username Field Change
2019-06-04 15:50 nonofrancisco Type defect => backport
2019-06-04 15:50 nonofrancisco Target Version => 3.0PR19Q2.1
2019-06-05 16:44 hgbot Checkin
2019-06-05 16:44 hgbot Note Added: 0112433
2019-06-05 16:44 hgbot Status scheduled => resolved
2019-06-05 16:44 hgbot Resolution open => fixed
2019-06-05 16:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q2.1/rev/dfb79e80d3077f5408e3604dcca31820db0c3574 [^]
2019-06-05 16:44 hgbot Checkin
2019-06-05 16:44 hgbot Note Added: 0112434
2019-06-05 16:45 Sandrahuguet Review Assigned To => Sandrahuguet
2019-06-05 16:45 Sandrahuguet Note Added: 0112437
2019-06-05 16:45 Sandrahuguet Status resolved => closed
2019-06-05 16:45 Sandrahuguet Fixed in Version => 3.0PR19Q2.1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker