Openbravo Issue Tracking System - POS2
View Issue Details
0056222POS2POSpublic2024-04-24 12:502024-08-13 10:43
Markel_Iruretagoyena 
SABARINATH P 
immediatemajoralways
closedunable to reproduce 
5
 
24Q3 
Packaging and release
No
0056222: [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.
blocks defect 0055305 closed SABARINATH P [24Q2] Credit Note balance not calculated correctly after changing the payment method of a paid order 
Issue History
2024-08-09 08:03marvintmTypedefect => backport
2024-08-09 08:03marvintmTarget Version => 24Q3
2024-08-09 08:16hgbotNote Added: 0167883
2024-08-13 10:41hgbotNote Added: 0168018
2024-08-13 10:43marvintmNote Added: 0168019
2024-08-13 10:43marvintmStatusscheduled => closed
2024-08-13 10:43marvintmResolutionopen => unable to reproduce

Notes
(0167883)
hgbot   
2024-08-09 08:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/364 [^]
(0168018)
hgbot   
2024-08-13 10:41   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/364 [^]
(0168019)
marvintm   
2024-08-13 10:43   
change not needed as issue is not reproducible