question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Order modification impossible (4 bugs)

See original GitHub issue

Describe the bug 1.) Currently when I make any modification to Order, the “Preview changes” button is always disabled - this is UI bug as when I enable it via DevTools then the update works. 2.) Updates to addresses are not made, the payload of this update call is empty "updateShippingAddress": {}, "updateBillingAddress": {}, 3.) When updating an order that has failed/cancelled payments then it’s impossible to add additional payment, as the outstanding value does not match to order total. The outstanding order amount (114800) should equal the unsettled OrderModifications total (10000) 4.) If order contains promotion already and we change the order value, then the outstanding value is higher by value of this promotion (e.g. order have promotion “Discount 10%”: -3€; we add surcharge 10€, now the outstanding value is 13€ instead of 10€ (applied promotion “dissapears”).

Environment (please complete the following information):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelbromleycommented, Feb 9, 2021

Got it. Once https://github.com/vendure-ecommerce/vendure/pull/539 is resolved then I’ll also work on making the payments more flexible so it is easier to deal with more unusual payment flows like you described.

1reaction
chladogcommented, Feb 8, 2021

Yes, didn’t consider there is no way by default to transition to this state. (I have a custom rest endpoint where payment provider notify us on payment status-if it’s declined or timeouts then we cancel that payment as it’s transaction ID is not valid, but keep order alive and if customer wants he can create a new payment for another 24hours) - and this is the use case, where would modification be useful for us, if some non-techy customer calls us to that he will pay in person or by direct payment we want to be able to handle this scenario even for a case that there is need to modify the order. ^ That’s just the context where you can see the issue.

Anyway for reproduction of the bug I believe changing a state of your payment to “Error” in DB will suffice and I guess there should be a check “isOrderSettled” before actual outstanding amount calculation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to change order status - Is this a bug or working as ...
1) Nowhere it is documented that you cannot change order status(from "Completed" to "Awaiting Fulfilment") for orders having digital products.
Read more >
Fix Block Bug in Project Slayers Mobile - YouTube
For more information, follow this guide:https://www.techy.how/tutorials/project-slayers-fix-block- bug - unable -to- change -positionA short ...
Read more >
Bug Collection :: Potion Permit Bug & Glitches
Hi everyone! Starting up a thread for bugs and glitches. Please follow the format listed bellow.
Read more >
9 techniques for fixing bugs in production - TechTarget
Bugs in software are bad. Bugs in live software are really bad. These nine techniques for fixing bugs in production empower software teams ......
Read more >
How Do You Fix An Impossible Bug? - Exception Not Found
When our change went out, the bug that the users had been complaining about from the web service deployment vanished, replaced by a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found