Openbravo Issue Tracking System - POS2 | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0050626 | POS2 | Core | public | 2022-10-25 11:39 | 2022-10-26 19:17 | ||||||||||||||
Reporter | cberner | ||||||||||||||||||
Assigned To | yogaskarnik | ||||||||||||||||||
Priority | normal | Severity | critical | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | 23Q1 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | cberner | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0050626: Autocomplete CRM reference properties are not supported for discounts & promotions property/condition | ||||||||||||||||||
Description | Autocomplete is a new CRM reference type that was added in core2, but it is not supported to be used as a CRM Property Condition in the Discounts & Promotions window. Related issue, where Autocomplete CRM type reference is introduced: https://issues.openbravo.com/view.php?id=49834 [^] | ||||||||||||||||||
Steps To Reproduce | This should be reproducible in an environment with pos2-modules 1. Login Backoffice and configure a CRM property as Autocomplete reference 2. Go to Discounts&Promotions and add that crm property on one discount in the subtab CRM Property Condition 3. Login WebPOS and refresh masterdata 4. Try to add a product with that particular discount 5. Change Business Partner to some business partner from the CRM | ||||||||||||||||||
Proposed Solution | As system admin, in Comparators window, add Autocomplete reference type as a Supported reference to the same comparators that have String reference as supported. Create a new file, following the logic of StringComparatorType.js: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/blob/master/web/org.openbravo.discounts.propertycondition/js/engine/comparators/StringComparatorType.js [^] This should contain the functions for each of the supported comparisons of the Autocomplete reference type. Make sure this is executed as part of the ob-init.js or before. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | FASH | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2022-10-25 11:39 | cberner | New Issue | |||||||||||||||||
2022-10-25 11:39 | cberner | Assigned To | => Triage Platform Base | ||||||||||||||||
2022-10-25 11:39 | cberner | Triggers an Emergency Pack | => No | ||||||||||||||||
2022-10-25 11:51 | rafaroda | Tag Attached: FASH | |||||||||||||||||
2022-10-25 11:52 | rafaroda | Severity | major => critical | ||||||||||||||||
2022-10-25 14:20 | alostale | Relationship added | related to 0049834 | ||||||||||||||||
2022-10-25 14:25 | alostale | Assigned To | Triage Platform Base => yogaskarnik | ||||||||||||||||
2022-10-25 15:49 | rafaroda | Relationship added | related to 0050629 | ||||||||||||||||
2022-10-26 17:18 | hgbot | Note Added: 0142606 | |||||||||||||||||
2022-10-26 19:16 | hgbot | Note Added: 0142624 | |||||||||||||||||
2022-10-26 19:16 | hgbot | Resolution | open => fixed | ||||||||||||||||
2022-10-26 19:16 | hgbot | Status | new => resolved | ||||||||||||||||
2022-10-26 19:16 | hgbot | Note Added: 0142625 | |||||||||||||||||
2022-10-26 19:17 | cberner | Review Assigned To | => cberner | ||||||||||||||||
2022-10-26 19:17 | cberner | Status | resolved => closed | ||||||||||||||||
2022-10-26 19:17 | cberner | Fixed in Version | => 23Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|