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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050626
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[POS2] Corecriticalhave not tried2022-10-25 11:392022-10-26 19:17
ReportercbernerView Statuspublic 
Assigned Toyogaskarnik 
PrioritynormalResolutionfixedFixed in Version23Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocberner
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050626: Autocomplete CRM reference properties are not supported for discounts & promotions property/condition

DescriptionAutocomplete is a new CRM reference type that was added in core2, but it is not supported to be used as a CRM Property Condition in the Discounts & Promotions window.

Related issue, where Autocomplete CRM type reference is introduced: https://issues.openbravo.com/view.php?id=49834 [^]
Steps To ReproduceThis should be reproducible in an environment with pos2-modules
1. Login Backoffice and configure a CRM property as Autocomplete reference
2. Go to Discounts&Promotions and add that crm property on one discount in the subtab CRM Property Condition
3. Login WebPOS and refresh masterdata
4. Try to add a product with that particular discount
5. Change Business Partner to some business partner from the CRM
Proposed SolutionAs system admin, in Comparators window, add Autocomplete reference type as a Supported reference to the same comparators that have String reference as supported.

Create a new file, following the logic of StringComparatorType.js: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/blob/master/web/org.openbravo.discounts.propertycondition/js/engine/comparators/StringComparatorType.js [^]
This should contain the functions for each of the supported comparisons of the Autocomplete reference type.

Make sure this is executed as part of the ob-init.js or before.
TagsFASH
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0049834 closedRetail DQM Support for React 
related to defect 0050629 newTriage Platform Base You may not call store.getState() error when calling OB.error from discount comparator engine 

-  Notes
(0142606)
hgbot (developer)
2022-10-26 17:18

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/merge_requests/17 [^]
(0142624)
hgbot (developer)
2022-10-26 19:16

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/merge_requests/17 [^]
(0142625)
hgbot (developer)
2022-10-26 19:16

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition [^]
Changeset: a3a3ac4dba6b9ba326105c6cae003ba825354aa1
Author: Yogas Karnik <yogas.karnik@openbravo.com>
Date: 26-10-2022 17:16:44
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/commit/a3a3ac4dba6b9ba326105c6cae003ba825354aa1 [^]

Fixes FR-50626: Autocomplete CRM reference properties are not supported for autocomplete

Adds support for Autocomplete core2 CRM reference property, by adding the necessary comparators.
It also adds a test for it, and the necessary Supported References for this new comparator.

---
A src-test/org/openbravo/discounts/propertycondition/comparators/AutocompleteComparatorTypeTest.java
A web/org.openbravo.discounts.propertycondition/js/engine/comparators/AutocompleteComparatorType.js
M src-db/database/sourcedata/OBPRDIS_REF_COMPARATOR.xml
M src-test/org/openbravo/discounts/propertycondition/DiscountsPropertyConditionTestSuite.java
M src/org/openbravo/discounts/propertycondition/DiscountsPropertyConditionComponentProvider.java
---

- Issue History
Date Modified Username Field Change
2022-10-25 11:39 cberner New Issue
2022-10-25 11:39 cberner Assigned To => Triage Platform Base
2022-10-25 11:39 cberner Triggers an Emergency Pack => No
2022-10-25 11:51 rafaroda Tag Attached: FASH
2022-10-25 11:52 rafaroda Severity major => critical
2022-10-25 14:20 alostale Relationship added related to 0049834
2022-10-25 14:25 alostale Assigned To Triage Platform Base => yogaskarnik
2022-10-25 15:49 rafaroda Relationship added related to 0050629
2022-10-26 17:18 hgbot Note Added: 0142606
2022-10-26 19:16 hgbot Note Added: 0142624
2022-10-26 19:16 hgbot Resolution open => fixed
2022-10-26 19:16 hgbot Status new => resolved
2022-10-26 19:16 hgbot Note Added: 0142625
2022-10-26 19:17 cberner Review Assigned To => cberner
2022-10-26 19:17 cberner Status resolved => closed
2022-10-26 19:17 cberner Fixed in Version => 23Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker