Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058158Retail ModulesGift cards and gift voucherspublic2025-03-06 11:222025-03-20 11:50
njimenez 
Bimla_vm 
normalminoralways
closedfixed 
5
 
 
approved
No
No
0058158: Glitem generated while returning a credit not is not correct
https://openbravo.atlassian.net/browse/RM-22844 [^]

In case of making a return of a credit note there are two financial account transactions generated.

One for the credit note payment and the other for the payment method used while returning the credit note. (This fields are, Financial account transaction and Related Transaction in Payment Method Cashup Events fron terminal cashup history)

While populating this transactions the glitem used is the one configured in the payment method for withdrawals. This is not correct, the one that should be used is the reimbursements one.
1. Configure credit note functionality
2. Configure a payment method with its corresponding cash management event for refunds in the organization
3. Make a return and pay it with credit note to generate a new gift card instance with type credit note
4. Go to the main menu and open at store section the popup, Gift Cards / Credit Notes / Gift Certificates
5. Search the already created credit note and open it
6. Do click on refund select the configured payment method and confirm the reimbursement.

In case of not having configured the withdrawal glitem shouldn't be raised an error the created financial account transactions should have the reimbursement glitem instead of withdrawal.

See that the transaction generated for the payment method used on the refund is using the withdrawal one, this is not correct.
No tags attached.
png Screenshot from 2025-03-06 11-22-03.png (128,833) 2025-03-06 11:22
https://issues.openbravo.com/file_download.php?file_id=21009&type=bug
png

png Screenshot from 2025-03-06 11-21-55.png (159,804) 2025-03-06 11:24
https://issues.openbravo.com/file_download.php?file_id=21010&type=bug
png
Issue History
2025-03-06 11:22njimenezNew Issue
2025-03-06 11:22njimenezAssigned To => Retail
2025-03-06 11:22njimenezFile Added: Screenshot from 2025-03-06 11-22-03.png
2025-03-06 11:22njimenezOBNetwork customer => No
2025-03-06 11:22njimenezTriggers an Emergency Pack => No
2025-03-06 11:24njimenezFile Added: Screenshot from 2025-03-06 11-21-55.png
2025-03-06 12:59guilleaerAssigned ToRetail => guilleaer
2025-03-06 12:59guilleaerStatusnew => acknowledged
2025-03-11 18:31guilleaerDescription Updatedbug_revision_view_page.php?rev_id=29354#r29354
2025-03-13 14:37guillermogilSeveritymajor => minor
2025-03-14 09:04Bimla_vmAssigned Toguilleaer => Bimla_vm
2025-03-14 09:04Bimla_vmStatusacknowledged => scheduled
2025-03-19 08:04hgbotMerge Request Status => open
2025-03-19 08:04hgbotNote Added: 0176968
2025-03-19 08:04hgbotNote Added: 0176969
2025-03-20 11:47hgbotMerge Request Statusopen => approved
2025-03-20 11:48hgbotNote Added: 0177012
2025-03-20 11:48hgbotNote Added: 0177013
2025-03-20 11:50hgbotNote Added: 0177014
2025-03-20 11:50hgbotResolutionopen => fixed
2025-03-20 11:50hgbotStatusscheduled => closed
2025-03-20 11:50hgbotNote Added: 0177015

Notes
(0176968)
hgbot   
2025-03-19 08:04   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1978 [^]
(0176969)
hgbot   
2025-03-19 08:04   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/448 [^]
(0177012)
hgbot   
2025-03-20 11:48   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: ff4480979ce6c92982e7085826e337184a8f0cdc
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 20-03-2025 10:47:23
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/ff4480979ce6c92982e7085826e337184a8f0cdc [^]

Related to ISSUE-58158: Fixed the condition for glItem

---
M web/org.openbravo.retail.posterminal/app/model/business-object/cashup/actions/CreateAndProcessCashManagements.js
---
(0177013)
hgbot   
2025-03-20 11:48   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1978 [^]
(0177014)
hgbot   
2025-03-20 11:50   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/448 [^]
(0177015)
hgbot   
2025-03-20 11:50   
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: 708981d1da62563bdf760bc8536ca067baeed459
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 20-03-2025 10:50:37
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/708981d1da62563bdf760bc8536ca067baeed459 [^]

Fixed ISSUE-58158: Use the reimbursement GLItem of the payment method used for reimburse

---
M web-jspack/org.openbravo.retail.giftcards/src/model/cashup/user-actions/CreateCashManagementCreditNoteRefund.js
---