Project:
View Revisions: Issue #57455 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0057455: Suggestions Engine use initial form values to make suggestions | ||
Revision | 2025-01-08 11:17 by guilleaer | ||
Steps To Reproduce | 1. Select a customer an edit any address. 2. Change Postal Code. 3. Type something into Address Line 1 to get suggestions. This suggestions will be related to initial Postal Code, and not to the changed. Once you save the form, and opened again, data is saved, and the suggestions will be correctly generated. This is also easily noticeable by using the network debugger, watching the network requests done to "getPropertySuggestion" endpoint (this is automatically requested when a the POS is going to show suggestions). Inside the request, the sent entity will contain the old data. HOW TO REPRODUCE WITH SAMPLEBPINTEGRATION: Having org.openbravo.retail.samplebpintegration module installed, and the CRM Dataset of this module imported and having CRM without coding enabled (at client window) 1. Select Arturo Montoro as customer an edit "Calle Estafeta 25" address. 2. Change Postal Code: Delete the input and type "310" to view some suggest, select "31010 - Baranain" 3. WITHOUT SAVE OR EXIT THE FORM, change again the Postal Code: Delete the input and type again "310" to watch some suggest, choose "31013 - Berriozar" 4. In network debbuger, the request to getPropertySuggestions, at payload, has entity.postalCode set to 31001. This is not correct because at UI the Postal Code have changed. 5. The infrastructure is using the old postalCode, and this is because the entity which is send to the server is not updated when is sent. |
||
Revision | 2024-12-16 12:12 by jayala | ||
Steps To Reproduce | 1. Select a customer an edit any address. 2. Change Postal Code. 3. Type something into Address Line 1 to get suggestions. This suggestions will be related to initial Postal Code, and not to the changed. Once you save the form, and opened again, data is saved, and the suggestions will be correctly generated. This is also easily noticeable by using the network debugger, watching the network requests done to "getPropertySuggestion" endpoint (this is automatically requested when a the POS is going to show suggestions). Inside the request, the sent entity will contain the old data. |
||
Revision | 2024-12-16 10:42 by jayala | ||
Steps To Reproduce | 1. Select a customer an edit any address. 2. Change Postal Code. 3. Type something into Address Line 1 to get suggestions. This suggestions will be related to initial Postal Code, and not to the changed. Once you save the form, and opened again, data is saved, and the suggestions will be correctly generated. |
Copyright © 2000 - 2009 MantisBT Group |