Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055305
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2024-04-24 12:502024-08-12 09:29
ReporterMarkel_IruretagoyenaView Statuspublic 
Assigned ToSABARINATH P 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression levelPackaging and release
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055305: [24Q2] Credit Note balance not calculated correctly after changing the payment method of a paid order

DescriptionIf 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.
Steps To ReproducePrecondition:
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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 005622224Q3 closedSABARINATH P [24Q2] Credit Note balance not calculated correctly after changing the payment method of a paid order 

-  Notes
(0164064)
hgbot (developer)
2024-05-03 14:10

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/323 [^]
(0167880)
hgbot (developer)
2024-08-09 08:03

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/323 [^]
(0167881)
hgbot (developer)
2024-08-09 08:03

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 40adf983dd85a0debee71c7ab49f0299263d52cf
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 09-08-2024 05:56:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/40adf983dd85a0debee71c7ab49f0299263d52cf [^]

Fixed ISSUE-55305: Updated correct value on revert credit note operation

---
M src/org/openbravo/retail/giftcards/GiftCardModel.java
M src/org/openbravo/retail/giftcards/OrderLoaderPreProcessPaymentHookExtension.java
---
(0167882)
marvintm (manager)
2024-08-09 08:04

Closed as the steps to reproduce are no longer reproducible after the fix. Besides this case, also verified that credit note generation itself, and consumption, seem to be working fine in basic case apart from reverse payment case.
(0167948)
hgbot (developer)
2024-08-12 09:29

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 32e593920daa95bf0ec94cea9b3b7977b9c34cb0
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 12-08-2024 12:58:41
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/32e593920daa95bf0ec94cea9b3b7977b9c34cb0 [^]

Revert "Fixed ISSUE-55305: Updated correct value on revert credit note operation"

This reverts commit 40adf983dd85a0debee71c7ab49f0299263d52cf.

---
M src/org/openbravo/retail/giftcards/GiftCardModel.java
M src/org/openbravo/retail/giftcards/OrderLoaderPreProcessPaymentHookExtension.java
---

- Issue History
Date Modified Username Field Change
2024-04-24 12:50 Markel_Iruretagoyena New Issue
2024-04-24 12:50 Markel_Iruretagoyena Assigned To => Retail
2024-04-24 12:50 Markel_Iruretagoyena Regression level => Packaging and release
2024-04-24 12:50 Markel_Iruretagoyena Triggers an Emergency Pack => No
2024-04-26 00:01 guilleaer Status new => acknowledged
2024-04-30 08:39 SABARINATH P Assigned To Retail => SABARINATH P
2024-04-30 08:39 SABARINATH P Status acknowledged => scheduled
2024-05-03 14:10 hgbot Note Added: 0164064
2024-05-06 16:58 lorenzofidalgo Target Version => 24Q2
2024-05-07 09:40 Markel_Iruretagoyena Priority normal => immediate
2024-05-27 12:23 guillermogil Severity critical => major
2024-05-29 13:26 marvintm Target Version 24Q2 =>
2024-08-09 08:03 marvintm Status scheduled => acknowledged
2024-08-09 08:03 marvintm Status acknowledged => scheduled
2024-08-09 08:03 hgbot Note Added: 0167880
2024-08-09 08:03 hgbot Resolution open => fixed
2024-08-09 08:03 hgbot Status scheduled => closed
2024-08-09 08:03 hgbot Note Added: 0167881
2024-08-09 08:04 marvintm Note Added: 0167882
2024-08-12 09:29 hgbot Note Added: 0167948


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker