Openbravo Issue Tracking System - POS2
View Issue Details
0055305POS2POSpublic2024-04-24 12:502024-05-07 09:40
Markel_Iruretagoyena 
SABARINATH P 
immediatecriticalalways
scheduledopen 
5
 
24Q2 
Packaging and release
No
0055305: [24Q2] Credit Note balance not calculated correctly after changing the payment method of a paid order
If you change the payment for an order that has been paid with a credit note for another method e.g. cash, the balance of the credit note is not well calculated, you will have more than the expected amount.
Precondition:
Have credit notes configured.

Steps:
1- Login to POS as vallblanca
2- Change the 'VBS Customer' for 'Arturo Montoro'
3- Add the product 'Avalanche transceiver' to the order
4- Pay for the ticket with cash
5- Go to 'Orders' and click on the 3 vertical dots next to 'Total: 150.00', then select 'Cancel Order'
6- Click on 'Pay' (note that the name of the button should be 'Refund')
7- Select 'Credit Note' as payment method, then click on 'Done'

8- Login to Backoffice and open the 'Gift Card Instance' window => Notice that there is a new credit note record with Arturo Montoro as 'Business Partner' and Initial balance = 150.50

9- Go back to the POS
10- Select 'Arturo Montoro' as the business partner again
11- Add the product 'Multi-Tool' to the order and pay for it with the Credit Note just created => In the backoffice, check that the credit note balance has been updated to 85.60
12- Go to orders and select the record you just created
13- Click on 'Review Payments' button
14- Click on the rounded arrow next to '64.90 €' and select Cash as the payment method
15- Click 'Done' button => Note that now the Credit Note balance is now 365.90 € instead of 150.50 € as it was at the beginning
No tags attached.
Issue History
2024-04-24 12:50Markel_IruretagoyenaNew Issue
2024-04-24 12:50Markel_IruretagoyenaAssigned To => Retail
2024-04-24 12:50Markel_IruretagoyenaRegression level => Packaging and release
2024-04-24 12:50Markel_IruretagoyenaTriggers an Emergency Pack => No
2024-04-26 00:01guilleaerStatusnew => acknowledged
2024-04-30 08:39SABARINATH PAssigned ToRetail => SABARINATH P
2024-04-30 08:39SABARINATH PStatusacknowledged => scheduled
2024-05-03 14:10hgbotNote Added: 0164064
2024-05-06 16:58lorenzofidalgoTarget Version => 24Q2
2024-05-07 09:40Markel_IruretagoyenaPrioritynormal => immediate

Notes
(0164064)
hgbot   
2024-05-03 14:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/323 [^]