Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementminorhave not tried2014-10-13 11:322016-04-08 11:00
ReporterAugustoMauchView Statuspublic 
Assigned Toreinaldoguerra 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision4f00f31f65e1
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Web browser
Regression levelProduction - Confirmed Stable
Regression date2014-02-20
Regression introduced in release3.0PR14Q2
Regression introduced by commit [^]
Triggers an Emergency PackNo

0027848: Not possible to select more than one value in fk filter drop down on Manage Stock

DescriptionIn the pick and execute window of Manage Stock it is not possible to select two records in the filter drop down of the foreign key columns. Selecting one value works, but if two are selected no values are returned and this exception is shown in the log:

java.lang.ClassCastException: org.codehaus.jettison.json.JSONArray cannot be cast to org.codehaus.jettison.json.JSONObject
    at org.openbravo.common.datasource.StockReservationPickAndEditDataSource.getFilteredAttribute(
    at org.openbravo.common.datasource.StockReservationPickAndEditDataSource.getGridData(
    at org.openbravo.common.datasource.StockReservationPickAndEditDataSource.getData(
    at org.openbravo.common.datasource.StockReservationPickAndEditDataSource.fetchJSONObject(
    at org.openbravo.common.datasource.StockReservationPickAndEditDataSource.fetch(
    at org.openbravo.service.datasource.DataSourceServlet.doFetch(
    at org.openbravo.service.datasource.DataSourceServlet.doPost(
    at javax.servlet.http.HttpServlet.service(
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(
    at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(
    at org.openbravo.client.kernel.BaseKernelServlet.service(
    at org.openbravo.service.datasource.DataSourceServlet.service(
    at javax.servlet.http.HttpServlet.service(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.utils.SessionExpirationFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.utils.CharsetFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.client.kernel.KernelFilter$1.doAction(
    at org.openbravo.client.kernel.KernelFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(
    at org.openbravo.dal.core.DalRequestFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.http11.Http11Processor.process(
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Steps To ReproduceLogin as group admin:
1. Go to preference window and set the preference Enable Stock Reservations = Y
2. Go to Stock Reservation window and create a new record:
Org= F&B España - Región Norte
Product= Zumo de Naranja Bio 0,33L
Qty= 10
Warehouse= España Región Norte
3. Click on Manage Stock. A P&E is shown with several records.
4. Select several values in the Attribute Set Value filter drop down. No records will be returned.
TagsManual P&E
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0027788 closedAugustoMauch Filters don't work properly on Manage Stock 
depends on backport 00294473.0PR15Q1.3 closedreinaldoguerra Not possible to select more than one value in fk filter drop down on Manage Stock 
caused by design defect 0023412 closedSandrahuguet Manage Stock Pick and Execute Window does not work with large amount of data 
related to defect 00289073.0PR15Q3 closedreinaldoguerra Cannot filter the Manage Reservation Stock pop-up of Sales Order window 

-  Notes
reinaldoguerra (developer)
2015-03-17 14:35

Test plan used:
1- Login into Openbravo ERP
2- As group admin role, set the Enable Stock Reservation preference to 'Y'
3- Logout and login again
4- Go to Product window and create a new one for F&B España, S.A organization
5- Go to Price tab and create a new record with Tarifa de Ventas as Price List Version
6- Go to Goods Receipt window and create new header for F&B España - Región Norte
7- Go to lines tab and create a new record selecting created product, enter a Movement Quantity. Complete it
8- Repeat steps 6 and 7 now for F&B España - Región Sur organization
9- Go to Stock Reservation window and create a new header for F&B España, S.A. Also select created product. Do not select any Warehouse.
10- Click on Manage Stock button. A P&E is shown with 2 records, one for Región Norte and the other for Región Sur
11- Select more than one filter and the note that now the grid is filtered correctly.
hgbot (developer)
2015-03-27 08:33

Repository: erp/devel/pi
Changeset: 4f00f31f65e1024bf0a9e985297f8bef5746b68f
Author: Reinaldo Guerra <reinaldo.guerra <at>>
Date: Wed Mar 25 12:25:21 2015 -0500
URL: [^]

Fixed bug 28907, fixed bug 27848, fixed bug 29003

The following changes was made in Stock Reservation pick and edit:
When filters are executed, a Reservation entity is created from the json parameter "". This works fine when the pop-up is called from Stock Reservation window, but from Sales Order, this parameter does not exists, and the filter process fails. Now is included a code line that puts a "" into the json parameters before the filters are applied.
Array critera filtering was bad created when getting grid's data, so was changed, to allow filter's multiple selection.
An hibernate exception is launched when typing wrong filters and the expression "in ()" is included in the query to be executed. So this expression was replaced by one which returns a false value: "1 = 2".
Were included also, changes to allow filtering quantity's column. Other changes were included to avoid exceptions comparing to null values.

M src/org/openbravo/common/datasource/
aferraz (manager)
2015-03-27 08:35

Code review + Testing OK
hudsonbot (developer)
2015-03-27 15:58

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test
Sandrahuguet (developer)
2015-04-22 09:45

Test added in testlink [^]
hgbot (developer)
2016-04-08 11:00

Repository: tools/automation/int
Changeset: 777758126bdbe2cf3cc1a64d0f98ffc75330734c
Author: Alvaro Ferraz <alvaro.ferraz <at>>
Date: Fri Feb 26 08:46:30 2016 +0100
URL: [^]

Related to issue 28907 & Related to issue 27848 & Related to issue 29003: Add an automated test

M src-test/com/openbravo/test/integration/erp/data/sales/transactions/salesorder/
M src-test/com/openbravo/test/integration/erp/gui/sales/transactions/salesorder/
M src-test/com/openbravo/test/integration/erp/modules/client/application/gui/pickandexecute/
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/reservation/testsuites/RES_Regressions/
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/reservation/testsuites/RES_Regressions/build.xml
M src-test/com/openbravo/test/integration/erp/testscripts/sales/transactions/
A src-test/com/openbravo/test/integration/erp/modules/functionalteam/reservation/testsuites/RES_Regressions/

- Issue History
Date Modified Username Field Change
2014-10-13 11:32 AugustoMauch New Issue
2014-10-13 11:32 AugustoMauch Assigned To => Sandrahuguet
2014-10-13 11:32 AugustoMauch Modules => Core
2014-10-13 11:32 AugustoMauch Triggers an Emergency Pack => No
2014-10-13 11:33 AugustoMauch Tag Attached: Manual P&E
2014-10-13 11:33 AugustoMauch Relationship added related to 0027788
2014-10-13 11:36 AugustoMauch Regression level => Production - Confirmed Stable
2014-10-13 11:36 AugustoMauch Regression introduced in release => 3.0PR14Q2
2014-10-13 11:36 AugustoMauch Priority normal => immediate
2015-02-10 12:42 ngarcia Relationship added related to 0028907
2015-03-17 05:18 reinaldoguerra Assigned To Sandrahuguet => reinaldoguerra
2015-03-17 05:18 reinaldoguerra Status new => scheduled
2015-03-17 14:35 reinaldoguerra Note Added: 0075690
2015-03-23 12:23 aferraz Regression date => 2014-02-20
2015-03-23 12:23 aferraz Regression introduced by commit => [^]
2015-03-24 18:21 aferraz Relationship added caused by 0023412
2015-03-27 08:33 hgbot Checkin
2015-03-27 08:33 hgbot Note Added: 0076051
2015-03-27 08:33 hgbot Status scheduled => resolved
2015-03-27 08:33 hgbot Resolution open => fixed
2015-03-27 08:33 hgbot Fixed in SCM revision => [^]
2015-03-27 08:35 aferraz Review Assigned To => aferraz
2015-03-27 08:35 aferraz Note Added: 0076054
2015-03-27 08:35 aferraz Status resolved => closed
2015-03-27 14:47 aferraz Status closed => new
2015-03-27 14:47 aferraz Resolution fixed => open
2015-03-27 14:48 aferraz Status new => scheduled
2015-03-27 14:48 aferraz Status scheduled => resolved
2015-03-27 14:48 aferraz Resolution open => fixed
2015-03-27 14:48 aferraz Status resolved => closed
2015-03-27 15:58 hudsonbot Checkin
2015-03-27 15:58 hudsonbot Note Added: 0076097
2015-04-22 09:45 Sandrahuguet Note Added: 0076673
2016-04-08 11:00 hgbot Checkin
2016-04-08 11:00 hgbot Note Added: 0085524

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker