Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0057784Openbravo ERP07. Sales managementpublic2025-01-28 17:272025-03-17 12:56
philippe_mui 
Bimla_vm 
lowtrivialalways
closedfixed 
5
 
 
approved
Gold
Core
No
0057784: RM-20167 [Coupon] Import / value of 'Organization' in csv file not verified when using Business API Data load to create a coupon
When importing a coupon by csv file, the value of ‘Organization’ in the csv is not verified when the ‘Business API Data Load’ is ran.

I attached the CSV doc in the files

See video:
https://drive.google.com/file/d/1cHFam9zka7UDXhjmUpF_iygtBRA4VkaZ/view?usp=sharing [^]

https://openbravo.atlassian.net/browse/RM-20167 [^]
Steps :
In back-office :
Create a Promotion with Searchkey = ‘TEST9196’
Organization for the promotion = 'Vall Blanca Store' with 'uses coupon codes'=yes

In csv file to import :
Promotion = ‘TEST9196’
Organization = ‘Central Mountains Store’ ---> this organization is from a different legal entity
CouponCode = ‘Test_21_FR’

Result after import file :
The coupon ‘Test_21_FR’ is created in the promotion ‘TEST9196’ even the organization doesn't match the organization where the promotion is created in BO
FASH
csv Fichier_FR_Import_21.csv (180) 2025-01-28 17:27
https://issues.openbravo.com/file_download.php?file_id=20806&type=bug
Issue History
2025-01-28 17:27philippe_muiNew Issue
2025-01-28 17:27philippe_muiAssigned To => Triage Omni OMS
2025-01-28 17:27philippe_muiFile Added: Fichier_FR_Import_21.csv
2025-01-28 17:27philippe_muiOBNetwork customer => Gold
2025-01-28 17:27philippe_muiModules => Core
2025-01-28 17:27philippe_muiTriggers an Emergency Pack => No
2025-01-28 17:28philippe_muiTag Attached: FASH
2025-01-29 08:18jonaeAssigned ToTriage Omni OMS => radhakrishnan
2025-01-31 19:46aferrazNote Added: 0174977
2025-02-04 13:37jonaeAssigned Toradhakrishnan => Retail
2025-02-04 13:57guillermogilAssigned ToRetail => guilleaer
2025-02-11 23:45guilleaerStatusnew => acknowledged
2025-02-12 06:28Bimla_vmAssigned Toguilleaer => Bimla_vm
2025-02-12 06:28Bimla_vmStatusacknowledged => scheduled
2025-02-17 15:04hgbotMerge Request Status => open
2025-02-17 15:04hgbotNote Added: 0175779
2025-03-17 12:56hgbotMerge Request Statusopen => approved
2025-03-17 12:56hgbotResolutionopen => fixed
2025-03-17 12:56hgbotStatusscheduled => closed
2025-03-17 12:56hgbotNote Added: 0176891
2025-03-17 12:56hgbotNote Added: 0176892

Notes
(0174977)
aferraz   
2025-01-31 19:46   
Jira: https://openbravo.atlassian.net/browse/RM-20167 [^]
(0175779)
hgbot   
2025-02-17 15:04   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/merge_requests/26 [^]
(0176891)
hgbot   
2025-03-17 12:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api [^]
Changeset: c3b6f5db4117ac7646634c71c6d26e90c3d9a088
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 17-03-2025 11:47:45
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/commit/c3b6f5db4117ac7646634c71c6d26e90c3d9a088 [^]

Fixed ISSUE-57784: Considered org while importing coupon

---
M src/org/openbravo/retail/discounts/coupons/api/mappings/coupon/ImportCouponJavaPropertyMappingHandler.java
---
(0176892)
hgbot   
2025-03-17 12:56   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.api/-/merge_requests/26 [^]