-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Describe the bug
If I edit an order and add an item it goes into "arranging additional payment"; if I then edit it and remove that item (customer changed their mind, payment processing didn't work, whatever) it will try to refund the original order even though the refund amount would be the same as the amount due on the order.
To Reproduce
Steps to reproduce the behavior:
- Go to an existing order in Payment Settled state
- Edit the order
- Add an item, save. The order should go to "Arranging additional payment"
- Without adding any new payments, edit the order
- Remove the item, restoring the total price to the original (paid) price
Expected behavior
It should be happy and return the order to the original state, Payment Settled
Actual behavior
If you go through with it a refund will be created and processed for the amount of the item you removed, thus requiring another additional payment to fix it.
Screenshots/Videos
Environment (please complete the following information):
- @vendure/core version: 3.4.4
- Nodejs version: 22
- Database (mysql/postgres etc): postgres
- Operating System (Windows/macOS/Linux): Linux
- Browser (if applicable): Any
- Package manager (npm/yarn/pnpm): npm
Additional context
It is possible this is related to customizations that I've made, but I've been digging through and if so I don't know where to start looking.