Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0044000 | Retail Modules | Loyalty Programs for Web POS | public | 2020-05-08 11:15 | 2020-05-15 09:35 |
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 | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0044000: Display Logic does not work for standar loyalty fields | ||||
Description | When checking 'displayLogic' for each component, only the new attributes are checked. the standar attributes are assigned to a variable called 'fields'. The next links shows where the problem is: 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#l199 [^] | ||||
Steps To Reproduce | 1. Add a display logic for a field, for example: OBRLP.UI.Subscriptions.CreateSubscriptionForm.prototype.fields.find(field => field.name === 'createSubCardNumber').displayLogic = function() { return false; }; 2. Log in in the POS and try to simply create a loyalty program for a customer. 3. the function doesn't check the field, so the field is always displayed. | ||||
Proposed Solution | 1. Concatenate the fields : const fields = this.fields.concat(this.newAttributes); 2. Change the name of the array of the fields for "newAtributes": 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#l99 [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-05-08 11:15 | leyre-iriarte | New Issue | |||
2020-05-08 11:15 | leyre-iriarte | Assigned To | => Retail | ||
2020-05-08 11:15 | leyre-iriarte | OBNetwork customer | => Gold | ||
2020-05-08 11:15 | leyre-iriarte | Resolution time | => 1590098400 | ||
2020-05-08 11:15 | leyre-iriarte | Triggers an Emergency Pack | => No | ||
2020-05-08 13:32 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2020-05-11 08:27 | hgbot | Checkin | |||
2020-05-11 08:27 | hgbot | Note Added: 0119725 | |||
2020-05-11 08:29 | ranjith_qualiantech_com | Status | new => scheduled | ||
2020-05-12 08:24 | ranjith_qualiantech_com | Status | scheduled => resolved | ||
2020-05-12 08:24 | ranjith_qualiantech_com | Resolution | open => fixed | ||
2020-05-15 09:35 | marvintm | Review Assigned To | => marvintm | ||
2020-05-15 09:35 | marvintm | Status | resolved => closed | ||
2020-05-15 09:35 | marvintm | Fixed in Version | => RR20Q3 |
Notes | |||||
|
|||||
|
|