-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
3528 Scope Customer Totals report also by variant (not just product) and use variant SKU #3646
3528 Scope Customer Totals report also by variant (not just product) and use variant SKU #3646
Conversation
68f343e
to
34eed18
Compare
Probably a copy&paste error. The PackingReport had exactly the same spec.
This conversion is done by Transpec 3.4.0 with the following command: transpec spec/lib/open_food_network/orders_and_fulfillments_report_spec.rb * 8 conversions from: == expected to: eq(expected) * 8 conversions from: obj.should to: expect(obj).to * 1 conversion from: obj.stub(:message) to: allow(obj).to receive(:message) For more details: https://github.com/yujinakayama/transpec#supported-conversions
4c62a3c
to
a64b078
Compare
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.
no comments 💯 :-D
This groups the Customer Totals report by variant too (among others, including by product), and then changes the report to use the variant SKU not the product SKU. This adds a spec for customer totals grouping and details, which replaces the test specific to the SKU column.
Line items belong to a single order.
a64b078
to
807cdb4
Compare
I updated the description of this commit: 46e7090, and also the title and description of this PR, to reflect that the grouping is by variant in addition to (not "instead of") by product. 🙂 No code changes. In an earlier version, I just replaced the grouping by product to grouping by variant. The current version uses both because both are important. |
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.
❤️
I hate myself. I literally spent 20 minutes on "I don't see SKU in the report, am I on the correct report?" Only to discover that SKU is called "product code" in the export 🤦♀️ Anyway this is good to go :) |
Scope Customer Totals report also by variant (not just product) and use variant SKU.
(This includes the work of @mkllnk in his fork. Thank you, @mkllnk!)
What? Why?
Closes #3528
The report groups the line item data by product, among other attributes. We need to display the variant SKU, not the product SKU, so we need to group these by variant
insteadalso.What should we test?
Release notes
Changelog Category: Fixed