Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051223Retail ModulesDiscounts and Promotionspublic2022-12-21 15:012023-04-12 08:03
Lcazaux 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0051223: [Client Trigger] - Values saved after changing the CRM property
When modifying a CRM Connector Property, when doing a Discount&Promo, the value previously filled in “String Value” has not been set to empty after changing the CRM Property.
So both string and number values are filled for a number property.
In any environment:
Step 1 : Create a promotion with CRM Property of type string - Ex: email
Step 2 : Enter a string value - Ex : contains “@gmail.com”
Step 3 : Without deleting the one you just created, modify it directly and change the CRM Property to a property of type number - Ex: Birthday Advantage
Step 4 : Enter a number value
SAVE
--> We can still see the string value corresponding to email
The string value should be erased when the CRM Connector Property is changed or it should be possible to modify this field.
FASH
png 2022-12-21_14h59_35.png (160,777) 2022-12-21 15:01
https://issues.openbravo.com/file_download.php?file_id=17973&type=bug
png

png 2022-12-21_15h00_23.png (160,054) 2022-12-21 15:01
https://issues.openbravo.com/file_download.php?file_id=17974&type=bug
png
Issue History
2022-12-21 15:01LcazauxNew Issue
2022-12-21 15:01LcazauxAssigned To => Retail
2022-12-21 15:01LcazauxFile Added: 2022-12-21_14h59_35.png
2022-12-21 15:01LcazauxTriggers an Emergency Pack => No
2022-12-21 15:01LcazauxTag Attached: FASH
2022-12-21 15:01LcazauxFile Added: 2022-12-21_15h00_23.png
2023-02-06 10:25ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-02-07 06:00ranjith_qualiantech_comStatusnew => scheduled
2023-02-07 12:04hgbotNote Added: 0146283
2023-04-12 08:03hgbotResolutionopen => fixed
2023-04-12 08:03hgbotStatusscheduled => closed
2023-04-12 08:03hgbotNote Added: 0148390
2023-04-12 08:03hgbotNote Added: 0148391

Notes
(0146283)
hgbot   
2023-02-07 12:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/merge_requests/23 [^]
(0148390)
hgbot   
2023-04-12 08:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition [^]
Changeset: 8913977bd851262042ea2fb01a59ea45ac1da4fa
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 07-02-2023 10:44:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/commit/8913977bd851262042ea2fb01a59ea45ac1da4fa [^]

Fixed ISSUE-51223: Added Callout to reset condtion values when crm property is changed

---
A src-db/database/sourcedata/AD_CALLOUT.xml
A src-db/database/sourcedata/AD_MODEL_OBJECT.xml
A src/org/openbravo/discounts/propertycondition/callouts/UpdateCRMConditionValues.java
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0148391)
hgbot   
2023-04-12 08:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts.propertycondition/-/merge_requests/23 [^]