Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0040964 | Openbravo ERP | 09. Financial management | public | 2019-05-28 17:19 | 2019-12-13 08:19 | |||||||||||||||||||||
Reporter | ngarcia | |||||||||||||||||||||||||
Assigned To | nonofrancisco | |||||||||||||||||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | 3.0PR19Q3 | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | Sandrahuguet | |||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Web browser | ||||||||||||||||||||||||||
Modules | Core | |||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | Production - Confirmed Stable | |||||||||||||||||||||||||
Regression date | 2017-10-10 | |||||||||||||||||||||||||
Regression introduced in release | 3.0PR18Q1 | |||||||||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/9cf1f8c7de280894eb268e310a732b3e61cd128d [^] | |||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0040964: Cannot open Payment Execution form if there are more than 1000 payment methods | |||||||||||||||||||||||||
Description | Cannot open Payment Execution form if there are more than 1000 payment methods | |||||||||||||||||||||||||
Steps To Reproduce | Log 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 Solution | The 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 () | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ||||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2019-05-28 17:19 | ngarcia | New Issue | ||||||||||||||||||||||||
2019-05-28 17:19 | ngarcia | Assigned To | => Triage Finance | |||||||||||||||||||||||
2019-05-28 17:19 | ngarcia | Modules | => Core | |||||||||||||||||||||||
2019-05-28 17:19 | ngarcia | Resolution time | => 1560808800 | |||||||||||||||||||||||
2019-05-28 17:19 | ngarcia | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2019-05-28 17:20 | ngarcia | Relationship added | related to 0036747 | |||||||||||||||||||||||
2019-05-28 17:20 | ngarcia | Issue Monitored: networkb | ||||||||||||||||||||||||
2019-05-29 09:25 | Sandrahuguet | Assigned To | Triage Finance => nonofrancisco | |||||||||||||||||||||||
2019-05-30 17:43 | nonofrancisco | Note Added: 0112279 | ||||||||||||||||||||||||
2019-05-30 18:02 | nonofrancisco | Status | new => scheduled | |||||||||||||||||||||||
2019-06-04 13:24 | Sandrahuguet | Regression level | => Production - Confirmed Stable | |||||||||||||||||||||||
2019-06-04 13:24 | Sandrahuguet | Regression date | => 2017-10-10 | |||||||||||||||||||||||
2019-06-04 13:24 | Sandrahuguet | Regression introduced in release | => 3.0PR18Q1 | |||||||||||||||||||||||
2019-06-04 13:24 | Sandrahuguet | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/9cf1f8c7de280894eb268e310a732b3e61cd128d [^] | |||||||||||||||||||||||
2019-06-04 15:49 | nonofrancisco | Status | scheduled => acknowledged | |||||||||||||||||||||||
2019-06-04 15:50 | nonofrancisco | Status | acknowledged => scheduled | |||||||||||||||||||||||
2019-06-05 16:44 | hgbot | Checkin | ||||||||||||||||||||||||
2019-06-05 16:44 | hgbot | Note Added: 0112435 | ||||||||||||||||||||||||
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/devel/pi/rev/9c31b62de9a269832e9e6050de26df795757f7c2 [^] | |||||||||||||||||||||||
2019-06-05 16:44 | hgbot | Checkin | ||||||||||||||||||||||||
2019-06-05 16:44 | hgbot | Note Added: 0112436 | ||||||||||||||||||||||||
2019-06-05 16:46 | Sandrahuguet | Review Assigned To | => Sandrahuguet | |||||||||||||||||||||||
2019-06-05 16:46 | Sandrahuguet | Note Added: 0112439 | ||||||||||||||||||||||||
2019-06-05 16:46 | Sandrahuguet | Status | resolved => closed | |||||||||||||||||||||||
2019-06-05 16:46 | Sandrahuguet | Fixed in Version | => 3.0PR19Q3 | |||||||||||||||||||||||
2019-06-06 01:52 | hudsonbot | Checkin | ||||||||||||||||||||||||
2019-06-06 01:52 | hudsonbot | Note Added: 0112446 | ||||||||||||||||||||||||
2019-06-06 01:52 | hudsonbot | Checkin | ||||||||||||||||||||||||
2019-06-06 01:52 | hudsonbot | Note Added: 0112447 | ||||||||||||||||||||||||
2019-12-13 08:19 | Sandrahuguet | Note Added: 0116295 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|