Openbravo Issue Tracking System - POS2
View Issue Details
0053623POS2POSpublic2023-10-09 13:482023-10-20 09:17
Daria_Sh 
sreehari 
normalminorhave not tried
scheduledopen 
5
 
 
No
0053623: Incorrect 'Current Balance' is shown if Order is paid by Credit Note and Reversed
When I pay for an Order using a Credit Note and then make Reverse Payment,the current balance of this Credit Note increases by the total order amount of the Order in the 'Gift Card Instance' window in Backoffice

Create a Credit Note:
1.Log in to POS2 (VBS-3):
-username: vallblanca
-password: openbravo
2.Pick 3 dots in the bottom of the Order area
3.Select 'Convert to return'
4.Add 'Avalanche transceiver' product to the Order
5.Click the 'Refund' button
6.Select the 'Credit Note' payment method
7.Push the 'Done' button
Go to Backoffice (username: Openbravo/password - openbravo) → 'Gift Card Instance' window
Write down:
-the 'Search Key' of the created Credit Note (in POS it is a Card ID)
-Current balance is 150.50
1.Go to POS2 (VBS-3)
2.Add the 'Multi-tool' product to the Order → Click 'Pay' button
3.Select 'Credit Note' payment method → Specify Card ID of Credit Note
4.Pick 'Search' button → Click the shown Credit Note → Push 'Done' button
5.Go to Main menu → 'Orders' → Open created Order by clicking on it
6.Push the 'Review Payments' button → Click the rounded arrow beside '64.90 €'→ Pick 'OK' in confirmation dialog
7.Select 'Cash' payment method → Push 'Done' button
8.Go to Backoffice → 'Gift Card Instance' window
9.Select Credit Note used to pay Order → Pay attention to the Credit Note 'Current Balance'

Actual result: The Current Balance of Credit Note is increased by the total Order amount (64.90 EUR)
Expected result: The Current Balance Credit Note remains 150.50 (as it was at the beginning)
No tags attached.
png current balance before reverse.png (138,083) 2023-10-09 13:49
https://issues.openbravo.com/file_download.php?file_id=19025&type=bug
png

png curremt balance after reverse.png (139,098) 2023-10-09 13:50
https://issues.openbravo.com/file_download.php?file_id=19026&type=bug
png
Issue History
2023-10-09 13:48Daria_ShNew Issue
2023-10-09 13:48Daria_ShAssigned To => Retail
2023-10-09 13:48Daria_ShTriggers an Emergency Pack => No
2023-10-09 13:49Daria_ShFile Added: current balance before reverse.png
2023-10-09 13:50Daria_ShFile Added: curremt balance after reverse.png
2023-10-10 10:12sreehariAssigned ToRetail => sreehari
2023-10-10 15:07sreehariStatusnew => scheduled
2023-10-20 09:17hgbotNote Added: 0156107

Notes
(0156107)
hgbot   
2023-10-20 09:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/271 [^]