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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050371
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorhave not tried2022-09-29 08:162022-10-03 16:16
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050371: optional discounts do not take into account CRM property conditions

DescriptionWhen a discount is marked as optional and it defines a CRM property condition, this condition is not taken into account.
Steps To ReproduceIn 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

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0049884 closedgorka_gil POS2 Implement semi-automatic discounts in pos2 
related to feature request 0049021 closedyogaskarnik Retail Modules Add support for discount filters that depend on CRM properties 

-  Notes
(0141478)
hgbot (developer)
2022-09-29 08:32

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/merge_requests/9 [^]
(0141582)
hgbot (developer)
2022-10-03 16:16

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/merge_requests/9 [^]
(0141583)
hgbot (developer)
2022-10-03 16:16

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition [^]
Changeset: 1f1a10a622b8c1911209186099b6b9211c49b8cc
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 03-10-2022 14:16:09
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/commit/1f1a10a622b8c1911209186099b6b9211c49b8cc [^]

fixes BUG-50371: optional discounts don't take into account CRM properties

Optional discounts are cached in a different object than automatic
discounts, this object wasn't taken into account when crm properties
were added.

---
M web-jspack/org.openbravo.discounts.propertycondition/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.discounts.propertycondition/src/model/ticket/__test__/TicketExtension.test.js
M web-jspack/org.openbravo.discounts.propertycondition/src/ob-init.js
---

- 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 View Revisions
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 View Revisions
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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker