Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033884Openbravo ERP04. Warehouse managementpublic2016-09-02 11:342016-12-20 20:31
lorenzofidalgo 
alekosmp86 
highminoralways
closedfixed 
5
pi 
3.0PR17Q1 
markmm82
Mozilla Firefox
Core
No
0033884: Warning is shown using "Manage Reservation" feature
Manage Reservation feature, shown through "Enable Stock Reservation" preference, show the following warning message when is used:
"WARN org.openbravo.client.application.process.BaseProcessActionHandler - Process Manage Reservation Pick and Edit is marked as Grid Legacy, you should consider migrating it to prevent parameter conversion"
Each time "Manage Reservation" process is clicked or something related is clicked, that Warning message is being shown.

Currently, this is showing the automated tests as Unstable.

0-It is required to test it in localhost with Eclipse capturing the warning messages of the localhost ERP to check the warning message.
1-Login ERP as Openbravo and go to "Preference" window. Create a new record with the following values:
--
Value: Y
Property: "Enable Stock Reservations".
Visible at User: QAAdmin.
--
Save the record.
2-Logout and login as QAAdmin.
3-Go to "Sales Order" window and create a new record. Complete that record and add a new Line.
4-Book the just created "Sales Order".
5-Select the just created Line (Line tab).
6-Realise "Manage Reservation" process is shown. Click it and check Eclipse ERP console is showing "WARN org.openbravo.client.application.process.BaseProcessActionHandler - Process Manage Reservation Pick and Edit is marked as Grid Legacy, you should consider migrating it to prevent parameter conversion".
7-Besides, in the just shown Popup, click "DONE" and realise the message is shown again.
No tags attached.
related to defect 0031426RR16Q1 closed guilleaer Retail Modules Warn is shown in log when Process POS Terminal Unlink is used 
related to feature request 00259953.0PR14Q3 closed AugustoMauch Openbravo ERP Parameter Windows Phase III 
png ManageReservationGridLegacy.png (193,352) 2016-09-02 11:34
https://issues.openbravo.com/file_download.php?file_id=9775&type=bug
png
Issue History
2016-09-02 11:34lorenzofidalgoNew Issue
2016-09-02 11:34lorenzofidalgoAssigned To => Triage Finance
2016-09-02 11:34lorenzofidalgoFile Added: ManageReservationGridLegacy.png
2016-09-02 11:34lorenzofidalgoWeb browser => Mozilla Firefox
2016-09-02 11:34lorenzofidalgoModules => Core
2016-09-02 11:34lorenzofidalgoTriggers an Emergency Pack => No
2016-09-02 11:34lorenzofidalgoRelationship addedrelated to 0031426
2016-12-14 15:33aferrazWeb browserMozilla Firefox => Mozilla Firefox
2016-12-14 15:33aferrazAssigned ToTriage Finance => platform
2016-12-14 15:42alostaleRelationship addedrelated to 0025995
2016-12-14 15:49alostaleNote Added: 0092359
2016-12-14 15:50alostaleAssigned Toplatform => Triage Finance
2016-12-15 09:02aferrazAssigned ToTriage Finance => alekosmp86
2016-12-15 16:51alekosmp86Statusnew => scheduled
2016-12-19 16:51alekosmp86Note Added: 0092788
2016-12-20 10:22psanjuanNote Added: 0092828
2016-12-20 10:44psanjuanNote Added: 0092830
2016-12-20 10:54psanjuanNote Edited: 0092788bug_revision_view_page.php?bugnote_id=0092788#r14067
2016-12-20 10:58psanjuanNote Edited: 0092830bug_revision_view_page.php?bugnote_id=0092830#r14069
2016-12-20 11:06psanjuanNote Edited: 0092830bug_revision_view_page.php?bugnote_id=0092830#r14070
2016-12-20 11:06psanjuanNote Added: 0092832
2016-12-20 15:22hgbotCheckin
2016-12-20 15:22hgbotNote Added: 0092858
2016-12-20 15:22hgbotStatusscheduled => resolved
2016-12-20 15:22hgbotResolutionopen => fixed
2016-12-20 15:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ccb0950a744693fd08675f2f245e6f9fa49c82f5 [^]
2016-12-20 15:29markmm82Review Assigned To => markmm82
2016-12-20 15:29markmm82Note Added: 0092859
2016-12-20 15:29markmm82Statusresolved => closed
2016-12-20 15:29markmm82Fixed in Version => 3.0PR17Q1
2016-12-20 20:31hudsonbotCheckin
2016-12-20 20:31hudsonbotNote Added: 0092876

Notes
(0092359)
alostale   
2016-12-14 15:49   
When implementing 3rd phase of parameter windows, process definition was extended to support multiple parameters, before process definitions allowed a single grid parameter.

To support backwards compatibility old processes where flagged as isgridlegacy, when they are executed this warn is logged. The idea was to allow a smooth transition to new format.

These processes should be adapted to receive parameters in the new format so that they can be unflagged.

The list of process definitions to be checked is:

select name from obuiapp_process where isgridlegacy ='Y' order by 1

CopyProcessPlanVersion
Create Purchase Order Lines
Doubtful Debt Pick and Edit
Grant Portal Access
Manage Prereservation Pick and Edit
Manage Reservation Pick and Edit
Manage Stock Reservation Pick and Edit
Manage Variants
Modify Payment In Plan
Modify Payment Out Plan
Open Close Periods
Reserved Good Movement Pick and Edit
RM Receipt Pick and Edit Lines
RM Shipment Pick and Edit Lines
Set New Currency
UpdateInvariants
(0092788)
alekosmp86   
2016-12-19 16:51   
(edited on: 2016-12-20 10:54)
Test Plan 1 ("Manage Reservation Pick and Edit" and "Manage Stock Reservation Pick and Edit")

Log in as F&B International Group Admin
   Go to Preference screen
      Create a new record
         Organization: *
         Property: Enable Stock Reservation
         Value: Y
      Save the record

   Log out and log back in
   Go to Sales Order screen
      Create a new record
         Organization: F&B Espana - Region Norte
         BP: Hoteles Buenas Noches S.A
      Save the record
      Go to Lines tab
         Add a new record
            Product: Limonada 0,5L
            Ordered Quantity: 10
            Tax: Ventas exentas
         Save the record
      Book the order
      Back in the Lines tab, select the line just created.
      Notice the "Manage Reservation" button is shown. Click on it. Go to Eclipse IDE and notice there's no warning shown in the console.


Test Plan 2 ("Manage Variants")

Log in as F&B International Group Admin
   Go to Product Characteristics screen
      Create a new record
         Organization: *
         Name: Color
         Variant: checked
      Save the record

      Go to Value tab
         Create a new record
            Name: Red
         Save the record
         Create a new record
            Name: Blue
         Save the record

   Go to Product screen
      Create a new record
         Organization: *
         Search Key/Name: Test Product
         IsGeneric: checked
      Save the record
      Go to Characteristics tab
         Create a new record
            Characteristic: Color (previously created)
            Variant: checked
         Save the record
      
      Run "Create Variants" process. Once the variants are created, run "Manage Variants" process. Select all the characteristics listed and click "Done".
      Go to Eclipse IDE, notice there's no warning message in console.


Test Plan 3 ("Create Purchase Order Lines")

Log in as F&B International Group Admin
Go to Purchase Order screen
   Create a new record
      Organization: F&B España - Region Norte
      BP: Bebidas Alegres S.A
   Save the record
   Go to Lines tab
      Run "Create Lines" process
      Select "Cerveza Ale 0,5L"
      Fill Ordered Quantity field with value 10
      Click Done.

Go to Eclipse IDE, notice there's no warning message in console.


Test Plan 4 ("Reserved Good Movement Pick and Edit")

Log in as F&B International Group Admin
   Go to Sales Order screen
      Create a new record
         Organization: F&B Espana - Region Norte
         BP: Hoteles Buenas Noches S.A
      Save the record
      Go to Lines tab
         Add a new record
            Product: Limonada 0,5L
            Ordered Quantity: 10
            Tax: Ventas exentas
         Save the record
      Book the order
      Back in the Lines tab, select the line just created.
      Click on the "Manage Reservation" button. A stock reservation is created for this product.

   Go to Stock Reservation screen
      Select the record with the previous product.
      Run the "Goods Movement" process.
      Select a line with Reserved Quantity > 0. Define a new Storage Bin.
      Enter a Movement Quantity. Click Done.
   
   Go to Eclipse IDE, notice there's no warning message in console.

(0092828)
psanjuan   
2016-12-20 10:22   
Issue verified.
(0092830)
psanjuan   
2016-12-20 10:44   
(edited on: 2016-12-20 11:06)
Test Plan 5 - Open Close Periods

Go to Open/Close Period Control window.
Select US Calendar and 2014 Year.
Select Jan-14 period. Click Close Period button.
Select the option Close.

Verify that the period is closed.
Go to Eclipse and verify that no warning is shown.

Select Jan-14 period. Click Close Period button.
Select the option Open.

Verify that the period is open.
Go to Eclipse and verify that no warning is shown.

Test Plan 6 - Set New Currency

Go to Business partner window and create a new one with below setup for F&B España:
Search Key = Name = Customer Test
Go to Customer tab and enter below data:
Price List = Tarifa de Ventas
Payment Method = Transferencia
Payment Terms = 30 days
Financial account = Cuenta de Banco

Go to Location tab and enter a location in Spain.

Go to payment in window and enter a credit payment in for the customer of 100.00 EUR.

Go back to business partner window and press on Set New Currency process.
Check that the currency shown is EUR. Change it to USD.

Remove the check "Use Default conversion rate". Enter a Rate of 1.5, for instance. Select any G/L item.
Press Done.

Verify customer balance has changed to -150.00
Go to Eclipse and verify that no warning is shown.

(0092832)
psanjuan   
2016-12-20 11:06   
Test plan above verified.
Issue can be closed.
(0092858)
hgbot   
2016-12-20 15:22   
Repository: erp/devel/pi
Changeset: ccb0950a744693fd08675f2f245e6f9fa49c82f5
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Fri Dec 16 10:32:07 2016 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/ccb0950a744693fd08675f2f245e6f9fa49c82f5 [^]

Fixes issue 33884: Warning is shown using "Manage Reservation" feature

When using the Manage Reservation feature, shown through "Enable Stock Reservation"
preference, the following warning message was shown:
"WARN org.openbravo.client.application.process.BaseProcessActionHandler - Process
Manage Reservation Pick and Edit is marked as Grid Legacy, you should consider
migrating it to prevent parameter conversion". The problem is that this process is
flagged as "islegacygrid" which is an option to support backward compatibility with
old processes. Currently, the Manage Reservation feature and the other ones requested
in the issue description have been adapted to receive parameters in the new format,
this means that they have been unflagged, and the way to get the values from the grid
in its respective ActionHandler class has been updated. Before the change, the grid lines'
data was taken from the "_selection" array in the json sent to the actionhandler, now
the method was changed so the data is now taken from the "_params" object, which
has a "grid" property, in which is stored the "_selection" array, which effectively
have the selected lines of the grid. The following processes have been adapted:
CopyProcessPlanVersion
Create Purchase Order Lines
Doubtful Debt Pick and Edit
Grant Portal Access
Manage Prereservation Pick and Edit
Manage Reservation Pick and Edit
Manage Stock Reservation Pick and Edit
Manage Variants
Modify Payment In Plan
Modify Payment Out Plan
Open Close Periods
Reserved Good Movement Pick and Edit
RM Receipt Pick and Edit Lines
RM Shipment Pick and Edit Lines
Set New Currency
UpdateInvariants

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/DoubtFulDebtPickEditLines.java
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
M src/org/openbravo/common/actionhandler/ManagePrereservationActionHandler.java
M src/org/openbravo/common/actionhandler/ManageReservationActionHandler.java
M src/org/openbravo/common/actionhandler/OrderCreatePOLines.java
M src/org/openbravo/common/actionhandler/RMInOutPickEditLines.java
M src/org/openbravo/common/actionhandler/RMShipmentPickEditLines.java
M src/org/openbravo/common/actionhandler/ReservedGoodMovementActionHandler.java
M src/org/openbravo/materialmgmt/actionhandler/ManageVariants.java
---
(0092859)
markmm82   
2016-12-20 15:29   
Code review + Testing OK
(0092876)
hudsonbot   
2016-12-20 20:31   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9209a29903bc [^]
Maturity status: Test