Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0049967 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | major | have not tried | 2022-08-08 09:24 | 2022-08-09 11:00 | |||
Reporter | cberner | View Status | public | |||||
Assigned To | Triage Platform Base | |||||||
Priority | normal | Resolution | duplicate | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | marvintm | |||||||
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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | loginRequiredDiscounts.gif [^] (2,751,565 bytes) 2022-08-08 10:04 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 | View Revisions |
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 | View Revisions |
2022-08-08 10:03 | cberner | Steps to Reproduce Updated | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |