-
Notifications
You must be signed in to change notification settings - Fork 9.4k
fix qty calculation for the sold product reports #22871
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
Conversation
without the "group by" I'm adding in this commit, report has the same products several times. So to get proper total qty one need to manually sum all the qtys for the product.
Hi @polkan-msk. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
HI @polkan-msk, |
hi @swnsma |
Hi @polkan-msk, does the problem happen with a specific product type only (simple, configurable, etc)? |
hi @misha-kotov. no, it happens for all types. the sql just does not have a 'group by' clause. |
@polkan-msk thanks for confirming. So in your example, how are the quantities 13, 12, 11, 6, and 3 grouped? Are those product quantities in individual orders? |
Hi @misha-kotov, |
OK in that case I agree with the proposed fix. |
Hi @swnsma, thank you for the review. |
Hi @polkan-msk , thanks for the pull request! However, this issue was fixed earlier in #22646 I have to close this pull request as duplicate, but let's collaborate on delivering the earlier pull request with the best quality. |
Hi @polkan-msk, thank you for your contribution! |
Description (*)
without the "group by" I'm adding in this commit, report has the same
products several times. So to get proper total qty one need to manually
sum all the qtys for the product.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)