Skip to content
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

Report Orders and Distributors should display variant #12878

Open
nicolasVr opened this issue Sep 29, 2024 · 5 comments · May be fixed by #12930
Open

Report Orders and Distributors should display variant #12878

nicolasVr opened this issue Sep 29, 2024 · 5 comments · May be fixed by #12930
Assignees
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.

Comments

@nicolasVr
Copy link

Description

This report should display the product variant. Instead the "variant" column displays the unit. So this report can not be used by shops who use variants.

Expected Behavior

Report should display the product variant.

Actual Behaviour

Only Product, unit... are included in report.

Steps to Reproduce

Ask a report where some products have various variants.

Workaround

Unkown

Severity

s3 ?
Together with #12877 hubs have some difficulty using various delivery methods in a same order cycle.

@sigmundpetersen sigmundpetersen added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Sep 30, 2024
@chahmedejaz chahmedejaz self-assigned this Oct 7, 2024
@chahmedejaz
Copy link
Collaborator

chahmedejaz commented Oct 10, 2024

Hi @RachL - I've fixed this such that the values for the current "Variant" column are moved to the new columns named "Variant Unit" and the "Variant" column is now displaying the variant display name. Please review the attached screenshot below:
image

I think with this fix, we should rename the "Item Name" to "Product Name" as it displays product name only. The "Variant" column displays the display name for the variant if it's set. If it's not set, then we would be displaying the Product name in its place (which is also the same behavior on the products page).
Another thought to this might be to show the variant display name in "Item Name" if it's present. If no variant display name is set then "Item Name" displays the product name.

Please share your thoughts on it. Thanks

@nicolasVr
Copy link
Author

Thanks Ahmed. Your fix answers my request. I think it would be fine to rename "Item Name" to "Product Name".

@RachL
Copy link
Contributor

RachL commented Oct 11, 2024

Hi @chahmedejaz thanks for the fix ❤️ ! LGTM

Another thought to this might be to show the variant display name in "Item Name" if it's present. If no variant display name is set then "Item Name" displays the product name.

What is the display we choose on the order? I would keep the same behavior as this report is showing orders.

@chahmedejaz
Copy link
Collaborator

chahmedejaz commented Oct 11, 2024

What is the display we choose on the order? I would keep the same behavior as this report is showing orders.

@RachL - On the order's page, if the variant has the display name set, it gets displayed along with the unit in the round braces. If the variant name is not set, only the unit is displayed without braces.

With variant name:
image

Without variant name:
image

Now this behavior suggests another solution to use this in the current variant column i.e. If the variant name is present, then display it along with the unit in braces. Otherwise, display the unit without braces.
And this solution might turn out to be this:
image

I think this looks better, what do you guys say?
CC: @nicolasVr

@chahmedejaz
Copy link
Collaborator

Just found out that Order Cycle Distributor Totals by Supplier report has the same behavior as above. So, I think let's continue with this solution. 🙌

@chahmedejaz chahmedejaz linked a pull request Oct 17, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.
Projects
Status: In Progress ⚙
Development

Successfully merging a pull request may close this issue.

4 participants