Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0049967 | POS2 | POS | public | 2022-08-08 09:24 | 2022-08-09 11:00 | |||||||
Reporter | cberner | |||||||||||
Assigned To | Triage Platform Base | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | duplicate | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0049967: Discounts with CRM property-conditions should be updated in the discounts cache on masterdata-refresh | |||||||||||
Description | Currently, CRM property conditions in the discounts cache are not updated when the masterdata refresh is executed, resulting in this changes not being shown until the user does logout/login or refresh. This is due to it being done in a on login action, when it should also be done as a after masterdata refresh action. | |||||||||||
Steps To Reproduce | 1. Install the org.openbravo.discounts.property-condition module and its dependencies: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition [^] 2. Setup CRM proxy: 2.1. Login backoffice and Organization window 2.2. Select Vall Blanca Store organization and activate CRM Configuration, selecting the proxy one 3. Go to Discounts window, select some discount and add a CRM Property condition in the property condition subtab, following instructions from the documentation: https://docs.google.com/document/d/1QRzn_NRYRn3kcVVR8MklxS67jDB3kPYDHI2o7CanSmk/edit [^] 4. Login WebPOS, execute masterdata refresh and check that the discount is applied to the anonymous customer (not a CRM business partner) It is fixed if we do logout/login and do some change that affects the ticket(required to recalculate prices and discounts). | |||||||||||
Proposed Solution | Run the discount cache update for crm property-conditions after a masterdata refresh happens. Here: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/blob/master/web-jspack/org.openbravo.discounts.propertycondition/src/ob-init.js#L14 [^] We could add a listener for Masterdata refresh, and when the DiscountPropertyCRMFilter changes, update the discount cache as expected. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | loginRequiredDiscounts.gif (2,751,565) 2022-08-08 10:04 https://issues.openbravo.com/file_download.php?file_id=17389&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2022-08-08 09:24 | cberner | New Issue | ||||||||||
2022-08-08 09:24 | cberner | Assigned To | => cberner | |||||||||
2022-08-08 09:24 | cberner | Triggers an Emergency Pack | => No | |||||||||
2022-08-08 09:26 | cberner | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24594#r24594 | |||||||||
2022-08-08 10:03 | cberner | Summary | Discounts with CRM property-conditions should not be applied when the client is not a CRM User => Discounts with CRM property-conditions should be updated in the discounts cache on masterdata-refresh | |||||||||
2022-08-08 10:03 | cberner | Description Updated | bug_revision_view_page.php?rev_id=24596#r24596 | |||||||||
2022-08-08 10:03 | cberner | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24597#r24597 | |||||||||
2022-08-08 10:03 | cberner | Proposed Solution updated | ||||||||||
2022-08-08 10:03 | cberner | Assigned To | cberner => | |||||||||
2022-08-08 10:04 | cberner | Assigned To | => Triage Platform Base | |||||||||
2022-08-08 10:04 | cberner | File Added: loginRequiredDiscounts.gif | ||||||||||
2022-08-08 10:13 | cberner | Proposed Solution updated | ||||||||||
2022-08-09 10:02 | cberner | Relationship added | duplicate of 0049763 | |||||||||
2022-08-09 11:00 | marvintm | Review Assigned To | => marvintm | |||||||||
2022-08-09 11:00 | marvintm | Status | new => closed | |||||||||
2022-08-09 11:00 | marvintm | Resolution | open => duplicate |
There are no notes attached to this issue. |