Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0057720Openbravo ERP07. Sales managementpublic2025-01-22 10:162025-01-28 07:44
philippe_mui 
guilleaer 
highmajoralways
closedno change required 
5
 
 
guillermogil
Gold
Core
No
0057720: RM-20165 [COUPON] - Coupon imported with Business API data load - 'Number of uses' in BO is not correct : always 'Infinite'
When creating a promotion using coupon and importing the coupon using the Business API data load with numberofUses=NU and numberOfUsesLimit=3, the number of uses is set to infinite. It should not.

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

https://openbravo.atlassian.net/browse/RM-20165 [^]

Create a promotion in promotion window and check the box "Use coupon codes"
Write a csv file to import ‘coupons’ in a promotion.
In the column ‘numberofUses’ write ‘NU’ ou ‘NC’
In ‘Business API Data Load’ window in BO, import the CSV file (check attachment)
Import the file and click on Done

Result :

After import in the promotion, the value of the field ‘Number of Uses’ of the coupon in tab ‘Coupon’ is always ‘Infinite’ in the promotion window > Coupon Tab.


That means that :

the value indicated on the file csv is not teken into account at the creation of the coupon.

the coupon created is always usable, without limit while it should not
FASH
csv Fichier_FR_Import_05.csv (192) 2025-01-22 10:16
https://issues.openbravo.com/file_download.php?file_id=20772&type=bug
Issue History
2025-01-22 10:16philippe_muiNew Issue
2025-01-22 10:16philippe_muiAssigned To => Triage Omni OMS
2025-01-22 10:16philippe_muiFile Added: Fichier_FR_Import_05.csv
2025-01-22 10:16philippe_muiOBNetwork customer => Gold
2025-01-22 10:16philippe_muiModules => Core
2025-01-22 10:16philippe_muiTriggers an Emergency Pack => No
2025-01-22 10:17philippe_muiTag Attached: FASH
2025-01-27 17:31aferrazAssigned ToTriage Omni OMS => Retail
2025-01-28 07:31guillermogilAssigned ToRetail => guilleaer
2025-01-28 07:31guillermogilStatusnew => acknowledged
2025-01-28 07:43guillermogilStatusacknowledged => scheduled
2025-01-28 07:44guillermogilReview Assigned To => guillermogil
2025-01-28 07:44guillermogilNote Added: 0174782
2025-01-28 07:44guillermogilStatusscheduled => closed
2025-01-28 07:44guillermogilResolutionopen => no change required
2025-01-28 07:44guillermogilNote Edited: 0174782bug_revision_view_page.php?bugnote_id=0174782#r29130

Notes
(0174782)
guillermogil   
2025-01-28 07:44   
Number Of Uses property has a typo in the example provided.
It should be numberOfUses instead of numberofUses