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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033884
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementminoralways2016-09-02 11:342016-12-20 20:31
ReporterlorenzofidalgoView Statuspublic 
Assigned Toalekosmp86 
PriorityhighResolutionfixedFixed in Version3.0PR17Q1
StatusclosedFix in branchFixed in SCM revisionccb0950a7446
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Tomarkmm82
Web browserMozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033884: Warning is shown using "Manage Reservation" feature

DescriptionManage 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.

Steps To Reproduce0-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.
TagsNo tags attached.
Attached Filespng file icon ManageReservationGridLegacy.png [^] (193,352 bytes) 2016-09-02 11:34

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0031426RR16Q1 closedguilleaer Retail Modules Warn is shown in log when Process POS Terminal Unlink is used 
related to feature request 00259953.0PR14Q3 closedAugustoMauch Openbravo ERP Parameter Windows Phase III 

-  Notes
(0092359)
alostale (manager)
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 (reporter)
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 (manager)
2016-12-20 10:22

Issue verified.
(0092830)
psanjuan (manager)
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 (manager)
2016-12-20 11:06

Test plan above verified.
Issue can be closed.
(0092858)
hgbot (developer)
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 (developer)
2016-12-20 15:29

Code review + Testing OK
(0092876)
hudsonbot (developer)
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

- Issue History
Date Modified Username Field Change
2016-09-02 11:34 lorenzofidalgo New Issue
2016-09-02 11:34 lorenzofidalgo Assigned To => Triage Finance
2016-09-02 11:34 lorenzofidalgo File Added: ManageReservationGridLegacy.png
2016-09-02 11:34 lorenzofidalgo Web browser => Mozilla Firefox
2016-09-02 11:34 lorenzofidalgo Modules => Core
2016-09-02 11:34 lorenzofidalgo Triggers an Emergency Pack => No
2016-09-02 11:34 lorenzofidalgo Relationship added related to 0031426
2016-12-14 15:33 aferraz Web browser Mozilla Firefox => Mozilla Firefox
2016-12-14 15:33 aferraz Assigned To Triage Finance => platform
2016-12-14 15:42 alostale Relationship added related to 0025995
2016-12-14 15:49 alostale Note Added: 0092359
2016-12-14 15:50 alostale Assigned To platform => Triage Finance
2016-12-15 09:02 aferraz Assigned To Triage Finance => alekosmp86
2016-12-15 16:51 alekosmp86 Status new => scheduled
2016-12-19 16:51 alekosmp86 Note Added: 0092788
2016-12-20 10:22 psanjuan Note Added: 0092828
2016-12-20 10:44 psanjuan Note Added: 0092830
2016-12-20 10:54 psanjuan Note Edited: 0092788 View Revisions
2016-12-20 10:58 psanjuan Note Edited: 0092830 View Revisions
2016-12-20 11:06 psanjuan Note Edited: 0092830 View Revisions
2016-12-20 11:06 psanjuan Note Added: 0092832
2016-12-20 15:22 hgbot Checkin
2016-12-20 15:22 hgbot Note Added: 0092858
2016-12-20 15:22 hgbot Status scheduled => resolved
2016-12-20 15:22 hgbot Resolution open => fixed
2016-12-20 15:22 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ccb0950a744693fd08675f2f245e6f9fa49c82f5 [^]
2016-12-20 15:29 markmm82 Review Assigned To => markmm82
2016-12-20 15:29 markmm82 Note Added: 0092859
2016-12-20 15:29 markmm82 Status resolved => closed
2016-12-20 15:29 markmm82 Fixed in Version => 3.0PR17Q1
2016-12-20 20:31 hudsonbot Checkin
2016-12-20 20:31 hudsonbot Note Added: 0092876


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker