Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049967
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorhave not tried2022-08-08 09:242022-08-09 11:00
ReportercbernerView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049967: Discounts with CRM property-conditions should be updated in the discounts cache on masterdata-refresh

DescriptionCurrently, 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 Reproduce1. 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 SolutionRun 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.
TagsNo tags attached.
Attached Filesgif file icon loginRequiredDiscounts.gif [^] (2,751,565 bytes) 2022-08-08 10:04

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0049763 closedsntgreale The refresh data does not work well to update the promotion with CRM Property Condition 

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker