Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0050371 | POS2 | POS | public | 2022-09-29 08:16 | 2022-10-03 16:16 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0050371: optional discounts do not take into account CRM property conditions |
Description | When a discount is marked as optional and it defines a CRM property condition, this condition is not taken into account. |
Steps To Reproduce | In an instance with org.openbravo.discounts.propertycondition module installed.
1. In BO create a new discount that:
a. Applies to all products
b. Has an optional filter with a CRM property condition
2. Log in POS2. ERROR (technical) -> In dev console check discountPropertyCRMFilters property in OB.Discounts.Pos.optionalRuleImpls object -> ERROR: it's an empty array but it should contain the CRM property that was defined
3. Create a ticket with anonymous user and pay it. ERROR -> the discount is proposed even if not applicable to the user
4. Create a ticket with a CRM user that does not satisfy the CRM filter defined in the discout and pay it -> ERROR: it's an empty array but it should contain the CRM property that was defined
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0049884 | | closed | gorka_gil | POS2 | Implement semi-automatic discounts in pos2 | related to | feature request | 0049021 | | closed | yogaskarnik | Retail Modules | Add support for discount filters that depend on CRM properties |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-09-29 08:16 | alostale | New Issue | |
2022-09-29 08:16 | alostale | Assigned To | => Retail |
2022-09-29 08:16 | alostale | Triggers an Emergency Pack | => No |
2022-09-29 08:17 | alostale | Relationship added | related to 0049884 |
2022-09-29 08:18 | alostale | Relationship added | related to 0049021 |
2022-09-29 08:19 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24794#r24794 |
2022-09-29 08:30 | alostale | Summary | optional discounts do not take into account CRM property condiftions => optional discounts do not take into account CRM property conditions |
2022-09-29 08:32 | hgbot | Note Added: 0141478 | |
2022-09-29 08:34 | alostale | Assigned To | Retail => alostale |
2022-09-29 10:58 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24795#r24795 |
2022-10-03 16:16 | hgbot | Note Added: 0141582 | |
2022-10-03 16:16 | hgbot | Resolution | open => fixed |
2022-10-03 16:16 | hgbot | Status | new => closed |
2022-10-03 16:16 | hgbot | Note Added: 0141583 | |