Openbravo Issue Tracking System - POS2
View Issue Details
0053238POS2POSpublic2023-08-18 11:462023-10-05 15:35
Daria_Sh 
ranjith_qualiantech_com 
normalminorhave not tried
scheduledopen 
5
 
 
No
0053238: Restoring Balance Transaction is positive when Order is paid and returned using the same Gift Certificate
I created a Gift Certificate and paid for the Order with this Certificate. Then I opened the created Order from the 'Orders' list, clicked 'Verified Returns', and specified the Card Id of used 'Gift Certificate' as payment method.
I noticed that Restoring Balance Transaction is positive (14.50), but should be negative (-14.50) in the 'Gift Card Transaction' tab of Backoffice

The same happens if pay Order by Gift Card and return it using the same Gift Card

Create a Gift Certificate:
1.Log in to POS2:
-username: vallblanca
-password: openbravo
2.Go to Main menu -> Restaurant -> Gift Cards / Credit Notes / Gift Certificates
3.Click the 'Create Gift Certificate' button
4.Enter the following values:
- Gift Card Category: Commercial
- Expiration Date: A date in the future
- Amount: 50
Push 'Create' button
Go to Backoffice (username and password - openbravo) -> 'Gift Card Instance' window -> Write down the 'Search Key' of the created Certificate (will be used in POS as Card ID)
1.Go to POS2
2.Add the 'Camel bak 3L' product to the Order -> Click the 'Pay' button
3.Select the 'Gift Cards/Certificates' payment method -> Specify the Gift Certificate Card ID
4.Click the 'Search' button -> Pick the shown 'Gift Certificate'-> Pick the 'Done' button
5.Go to 'Orders' -> Open created Order -> Click on 3 dots next to the 'Total 35.50 €'-> Click the 'Verified Returns' button
6.Select the lines to be returned in the 'Add Verified Return' popup -> Click 'Apply'
7.Press 'Refund' button -> Select 'Gift Cards/Certificates' payment method -> Specify the Card ID of used Gift Certificate -> Click on it
8.Before completing the Order, go to Backoffice -> 'Gift Card Instance' window -> Select the used Gift Certificate
9.Pay attention to the line with Amount = 14.50 in the 'Gift Card Transaction' tab

Actual result: Restoring Balance Transaction is positive (14.50)
Expected result: Restoring Balance Transaction is negative (-14.50)
No tags attached.
jpg restoring balance transaction.jpg (140,737) 2023-08-23 13:20
https://issues.openbravo.com/file_download.php?file_id=18902&type=bug
jpg
Issue History
2023-08-18 11:46Daria_ShNew Issue
2023-08-18 11:46Daria_ShAssigned To => Retail
2023-08-18 11:46Daria_ShFile Added: restoring balance transaction.jpg
2023-08-18 11:46Daria_ShTriggers an Emergency Pack => No
2023-08-23 11:48Daria_ShSummaryRestoring Balance Transaction is positive when Order is paid by Gift Certificate and is in Return => Restoring Balance Transaction is positive when Order is paid and returned using the same Gift Certificate
2023-08-23 13:19Daria_ShFile Deleted: restoring balance transaction.jpg
2023-08-23 13:20Daria_ShFile Added: restoring balance transaction.jpg
2023-08-23 13:26Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=26697#r26697
2023-09-12 09:57ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-10-03 12:55ranjith_qualiantech_comStatusnew => scheduled
2023-10-05 15:35hgbotNote Added: 0155580

Notes
(0155580)
hgbot   
2023-10-05 15:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/268 [^]