-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avoid sql error with refunded product #58
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @NicolasCador, thanks for your contribution ;)
Thank you for your PR, I tested it and it seems to works on develop as you can see : recording.77.webmUnfortunately, when I test on 8.1.x, I keep the "Recents Orders" but I can't have the "best sellers" before and after the partial refund as you can see : recording.78.webmDid you know how we can improve your modification ? Thank you for your first PR which was clear enough for me to test it easily ! Waiting for your feedback |
Hi @AureRita , ok, thank you for your feedback. I'm sorry, I have 8.1.x and I can see the "best sellers" before and after the partial refund. And it seems the videos are photos: when I click on play, it doesn't move. Could you plea&se check? Thanks PS: |
Hello, I answered |
Hello @AureRita, how to remove waiting for author? |
> SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in '(((
dbs9731789
.od
.product_quantity
-dbs9731789
.od
.product_quantity_refunded
) -dbs9731789
.od
.product_quantity_return
) -dbs9731789
.od
.product_quantity_reinjected
)'due to the fact that columns product_quantity, product_quantity_refunded, product_quantity_return, and product_quantity_reinjected are unsigned so the sum is unsigned. But there is a refunded/return product in an order, it could be automatically reinjected. So quantity - refunded/return quantity - reinjected quantity is negative. so it gives a SQL error.
2. go to BO and in the order
3. Create a refunding
4. go to dashboard
5. see there IS data in dashproducts hook