Openbravo Issue Tracking System - POS2
View Issue Details
0056351POS2POSpublic2024-09-03 13:382024-09-12 09:39
malsasua 
Rajesh_18 
normalmajorsometimes
closedfixed 
5
24Q2.2 
24Q4 
No
0056351: EWI: org.codehaus.jettison.json.JSONException: JSONObject["offerid"] not found.
EWI: in an Order, an empty element was added to the discountsFromUser->coupons array
(see attachment)
n/a
No tags attached.
depends on backport 005643424Q3.1 closed Rajesh_18 EWI: org.codehaus.jettison.json.JSONException: JSONObject["offerid"] not found. 
depends on backport 005643524Q2.3 closed Rajesh_18 EWI: org.codehaus.jettison.json.JSONException: JSONObject["offerid"] not found. 
png 2024-09-03_13-32.png (24,451) 2024-09-03 13:38
https://issues.openbravo.com/file_download.php?file_id=20125&type=bug
png
Issue History
2024-09-03 13:38malsasuaNew Issue
2024-09-03 13:38malsasuaAssigned To => Retail
2024-09-03 13:38malsasuaFile Added: 2024-09-03_13-32.png
2024-09-03 13:38malsasuaTriggers an Emergency Pack => No
2024-09-03 14:31guillermogilNote Added: 0168705
2024-09-03 14:31guillermogilAssigned ToRetail => malsasua
2024-09-03 14:31guillermogilStatusnew => feedback
2024-09-03 17:50malsasuaNote Added: 0168712
2024-09-03 17:50malsasuaStatusfeedback => new
2024-09-04 07:08guillermogilAssigned Tomalsasua => Retail
2024-09-04 08:44guillermogilStatusnew => acknowledged
2024-09-04 08:44guillermogilversion => 24Q2.2
2024-09-04 10:46Rajesh_18Assigned ToRetail => Rajesh_18
2024-09-04 10:47Rajesh_18Statusacknowledged => scheduled
2024-09-09 16:07guilleaerNote Added: 0168971
2024-09-09 16:07guilleaerNote Edited: 0168971bug_revision_view_page.php?bugnote_id=0168971#r28421
2024-09-10 18:43hgbotNote Added: 0169050
2024-09-11 06:11guillermogilNote Added: 0169054
2024-09-11 06:11guillermogilAssigned ToRajesh_18 => malsasua
2024-09-11 06:11guillermogilStatusscheduled => feedback
2024-09-12 09:38guillermogilStatusfeedback => scheduled
2024-09-12 09:38guillermogilAssigned Tomalsasua => Rajesh_18
2024-09-12 09:39hgbotResolutionopen => fixed
2024-09-12 09:39hgbotStatusscheduled => closed
2024-09-12 09:39hgbotNote Added: 0169114
2024-09-12 09:39hgbotNote Added: 0169115
2024-09-12 09:39marvintmStatusclosed => new
2024-09-12 09:39marvintmResolutionfixed => open
2024-09-12 09:39marvintmStatusnew => scheduled
2024-09-12 09:39marvintmStatusscheduled => resolved
2024-09-12 09:39marvintmFixed in Version => 24Q4
2024-09-12 09:39marvintmResolutionopen => fixed
2024-09-12 09:39marvintmStatusresolved => closed

Notes
(0168705)
guillermogil   
2024-09-03 14:31   
Missing information about the JSON that has the error:
- When it happened
- Version of the invironment
- Customer affected
- etc...
(0168712)
malsasua   
2024-09-03 17:50   
in the spreadsheet, in the first line, Im informing about the date-time, customer and EWI generated
(0168971)
guilleaer   
2024-09-09 16:07   
We are not able to reproduce this problem. We will propose to add some log to get more info in case it happens again

(0169050)
hgbot   
2024-09-10 18:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/68 [^]
(0169054)
guillermogil   
2024-09-11 06:11   
Can you apply the code of the MR to add more logs?
Let us know if it reproduces again after adding them.
(0169114)
hgbot   
2024-09-12 09:39   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: c096ef01766496117c7310dc5f7d8dd46f207553
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 11-09-2024 13:05:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/c096ef01766496117c7310dc5f7d8dd46f207553 [^]

Fixed ISSUE-56351: Added log for add Coupon action and while adding coupon, skipped if coupon object is empty

---
M src/org/openbravo/retail/discounts/coupons/OrderLoaderHookCoupons.java
M web-jspack/org.openbravo.retail.discounts.coupons/src/model/ticket/coupons/user-actions/AddCoupon.js
M web-jspack/org.openbravo.retail.discounts.coupons/src/model/ticket/coupons/user-actions/RemoveCoupon.js
---
(0169115)
hgbot   
2024-09-12 09:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/68 [^]