Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043877 | Retail Modules | Loyalty Programs for Web POS | public | 2020-04-27 12:06 | 2020-05-12 16:39 |
Reporter | leyre-iriarte | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR20Q3 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | Gold | ||||
Support ticket | |||||
Regression level | |||||
Regression date | 2019-05-03 | ||||
Regression introduced in release | RR19Q3 | ||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/rev/fbebc4634da4#l11.168 [^] | ||||
Triggers an Emergency Pack | No | ||||
Summary | 0043877: Extra fields are not supported in subcription creation | ||||
Description | Before the commit mentioned it was possible to support extra fields added from external modules, but after changing the way of creating subscription it is not possible anymore. This can potentially lead to synchronization errors (records in Errors While Importing POS Data window) if some SaveSubscriptionHooks depend on data from those extra fields. | ||||
Steps To Reproduce | Before 19Q3, the create subscription process worked as a simple JSONProcess. When clicking on the Save button of the create subscription window, the code would iterate all the fields of the window (both standard fields and those added from external modules[1]) and the send all the information to the SaveSubscription java process. In 19Q3, the subscription creation process was transformed into a data synchronization process in order to support offline operations. With this change, the create subscription window was refactored, and the sendCreateSubscriptionRequest js function was renamed to saveNewSubscription and refactored [2]. While the popup itself still retains the ability to add new fields from external modules (the newAttributes array is still there, and components are created based on this array), these components are no longer taken into account by the saveNewSubscription function. [1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/file/58767b732e01/web/org.openbravo.retail.loyalty.programs/js/view/subscription-create-form.js#l240 [^] [2] https://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/file/tip/web/org.openbravo.retail.loyalty.programs/js/view/subscription-create-form.js#l250 [^] | ||||
Proposed Solution | The saveNewSubscription function should take into account again all the fields part of the newAttributes array. One possible point to add this would be when the initial subscription json is created[3], right before calling OBRLP.Util.getNewSubscriptionSyncModel(). [3] https://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/file/tip/web/org.openbravo.retail.loyalty.programs/js/view/subscription-create-form.js#l269 [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-04-27 12:06 | leyre-iriarte | New Issue | |||
2020-04-27 12:06 | leyre-iriarte | Assigned To | => Retail | ||
2020-04-27 12:06 | leyre-iriarte | OBNetwork customer | => Gold | ||
2020-04-27 12:06 | leyre-iriarte | Resolution time | => 1589148000 | ||
2020-04-27 12:06 | leyre-iriarte | Regression date | => 2019-05-03 | ||
2020-04-27 12:06 | leyre-iriarte | Regression introduced in release | => RR19Q3 | ||
2020-04-27 12:06 | leyre-iriarte | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/rev/fbebc4634da4#l11.168 [^] | ||
2020-04-27 12:06 | leyre-iriarte | Triggers an Emergency Pack | => No | ||
2020-04-27 12:22 | aaroncalero | Description Updated | bug_revision_view_page.php?rev_id=20887#r20887 | ||
2020-04-27 12:22 | aaroncalero | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20889#r20889 | ||
2020-04-27 12:22 | aaroncalero | Proposed Solution updated | |||
2020-05-04 15:07 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2020-05-04 15:07 | ranjith_qualiantech_com | Status | new => scheduled | ||
2020-05-05 03:04 | hgbot | Checkin | |||
2020-05-05 03:04 | hgbot | Note Added: 0119537 | |||
2020-05-06 04:51 | hgbot | Checkin | |||
2020-05-06 04:51 | hgbot | Note Added: 0119593 | |||
2020-05-06 07:47 | ranjith_qualiantech_com | Status | scheduled => resolved | ||
2020-05-06 07:47 | ranjith_qualiantech_com | Resolution | open => fixed | ||
2020-05-06 18:26 | adrianromero | Review Assigned To | => adrianromero | ||
2020-05-06 18:26 | adrianromero | Note Added: 0119644 | |||
2020-05-06 18:26 | adrianromero | Status | resolved => closed | ||
2020-05-06 18:26 | adrianromero | Fixed in Version | => RR20Q2 | ||
2020-05-12 13:47 | aaroncalero | Note Added: 0119780 | |||
2020-05-12 13:47 | aaroncalero | Status | closed => new | ||
2020-05-12 13:47 | aaroncalero | Resolution | fixed => open | ||
2020-05-12 13:47 | aaroncalero | Fixed in Version | RR20Q2 => | ||
2020-05-12 16:39 | marvintm | Note Added: 0119784 | |||
2020-05-12 16:39 | marvintm | Status | new => scheduled | ||
2020-05-12 16:39 | marvintm | Status | scheduled => resolved | ||
2020-05-12 16:39 | marvintm | Fixed in Version | => RR20Q3 | ||
2020-05-12 16:39 | marvintm | Resolution | open => fixed | ||
2020-05-12 16:39 | marvintm | Review Assigned To | adrianromero => marvintm | ||
2020-05-12 16:39 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|