Openbravo Issue Tracking System - POS2
View Issue Details
0057708POS2POSpublic2025-01-21 12:312025-02-19 08:22
fermin_ostivar 
sreehari 
normalmajoralways
closedfixed 
5
pi 
25Q2 
marvintm
No
0057708: The User Input set on the "Refund Gift Card" user action not saving lines
When the User Input for Refund Gift Card is set, the information set on the front end is not saved at line level.
[BOS]
Configure Refund giftcar user action:
Steps:
* User Roles -> VallBlancaCashier -> User Action -> Add
    User Action: Refund Gift Card, Approval: Can use, Input Requests Type: Defined Action Inputs
* User Action Input -> Add -> User Action: Refund Gift Card , User Input : Return Line Reason
  
[POS]
Open "Gift Cards / Credit Notes / Gift Certificates"
Search Gift Card code previously sold
Click on View
Click Refund
Select return reason
Pay the ticket

The information related to the line is not saved on the backoffice
Add to the user input info the line related to the giftcard refund
No tags attached.
depends on backport 005802625Q1 closed sreehari The User Input set on the "Refund Gift Card" user action not saving lines 
depends on backport 005802724Q4.2 closed sreehari The User Input set on the "Refund Gift Card" user action not saving lines 
png UserInputRefundGiftCard.png (114,681) 2025-01-21 12:37
https://issues.openbravo.com/file_download.php?file_id=20766&type=bug
png
Issue History
2025-01-21 12:31fermin_ostivarNew Issue
2025-01-21 12:31fermin_ostivarAssigned To => Retail
2025-01-21 12:31fermin_ostivarTriggers an Emergency Pack => No
2025-01-21 12:33fermin_ostivarFile Added: RefundUserAction.png
2025-01-21 12:36fermin_ostivarFile Deleted: RefundUserAction.png
2025-01-21 12:37fermin_ostivarFile Added: UserInputRefundGiftCard.png
2025-01-22 07:15sreehariAssigned ToRetail => sreehari
2025-01-22 07:15sreehariStatusnew => scheduled
2025-01-24 17:21hgbotNote Added: 0174691
2025-01-24 17:21hgbotNote Added: 0174692
2025-02-17 10:34hgbotNote Added: 0175757
2025-02-19 08:12hgbotNote Added: 0175848
2025-02-19 08:12hgbotResolutionopen => fixed
2025-02-19 08:12hgbotStatusscheduled => closed
2025-02-19 08:12hgbotNote Added: 0175849
2025-02-19 08:13marvintmNote Added: 0175850
2025-02-19 08:22marvintmStatusclosed => new
2025-02-19 08:22marvintmResolutionfixed => open
2025-02-19 08:22marvintmStatusnew => scheduled
2025-02-19 08:22marvintmStatusscheduled => resolved
2025-02-19 08:22marvintmFixed in Version => 25Q2
2025-02-19 08:22marvintmResolutionopen => fixed
2025-02-19 08:22marvintmReview Assigned To => marvintm
2025-02-19 08:22marvintmStatusresolved => closed

Notes
(0174691)
hgbot   
2025-01-24 17:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1736 [^]
(0174692)
hgbot   
2025-01-24 17:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/420 [^]
(0175757)
hgbot   
2025-02-17 10:34   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1736 [^]
(0175848)
hgbot   
2025-02-19 08:12   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/420 [^]
(0175849)
hgbot   
2025-02-19 08:12   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: c9c758af875a0655620319d7dec8f1615bbf28db
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 17-02-2025 09:34:33
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/c9c758af875a0655620319d7dec8f1615bbf28db [^]

Fixes ISSUE-57708: Updated inputsAndApprovals with obpos2OrderLine
*added conditional mapping (jest test fix)

---
M web-jspack/org.openbravo.retail.giftcards/src/model/ticket/actions/RefundGiftCard.js
---
(0175850)
marvintm   
2025-02-19 08:13   
Checked that:
- When user input is defined, before fix input information (and approval record) were not saved at line level
- After the fix, both approval and input info are saved also at line level
- If no input is defined but approval is required, after the fix also the approval info is saved at line level