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

Customizing distribution receipt #4218

Closed
3 tasks
cielf opened this issue Mar 24, 2024 · 12 comments · Fixed by #4234
Closed
3 tasks

Customizing distribution receipt #4218

cielf opened this issue Mar 24, 2024 · 12 comments · Fixed by #4234

Comments

@cielf
Copy link
Collaborator

cielf commented Mar 24, 2024

Summary

Provide the ability to suppress the value-related columns and the packages column on the "Print Distribution"

Why do this?

Bank request -- according to them "The value per item and in-kind value can be confusing" for their situation.

Details

  • Add "hide value columns on receipt" and "hide packages column on receipt" flags on Organization, default to false
  • These should be on both edit and show
  • When printing the distribution,
    --if the "hide value columns on receipt" field is true, suppress the Value/item and In-Kind Value columns and totals.
    --if the "hide packages column on receipt" filed is true, suppress the Packages column and totals

Criterial for completion

  • Tests to support behaviour as described above
  • Implement behaviour as described above
  • Please include screenshots in your PR
@cielf cielf added Help Wanted Groomed + open to all! Difficulty—Beginner labels Mar 24, 2024
@pshong79
Copy link
Collaborator

pshong79 commented Mar 25, 2024

Hi. I think I would like to try to take this on. However, I won't be able to take this on for a few days. If someone wants to pick this up and get started earlier, please feel free; otherwise, I can pick this up in a few days.

@cielf
Copy link
Collaborator Author

cielf commented Mar 25, 2024

Hey @pshong79, please comment again when you pick it up, then, and we'll officially assign it to you. Thanks!

@pshong79
Copy link
Collaborator

As I was thinking about this some last night, I did have a question. Are you thinking one flag for the values columns (hide_value_columns_on_receipt) or do you think it would be worth adding a flag for each (hide_value_per_item_column_on_receipt and hide_in_kind_value column_on_receipt)?

@cielf
Copy link
Collaborator Author

cielf commented Mar 26, 2024

Thanks for asking! I'm pretty sure that the two value items are related -- that the in-kind value is the value per item times the number of items? So I think keeping it as one flag covering both the value columns makes sense.

@nikolaz90
Copy link
Contributor

nikolaz90 commented Mar 27, 2024

Hey @pshong79
Did you start working on this one?
Happy to share a PR or let you take it :)

@pshong79
Copy link
Collaborator

Hi @nikolaz90! 👋 I have not started this. I just got a new Macbook and am still in the process of getting things back up and running. Feel free to take it if you want!!!

@github-actions github-actions bot removed the Help Wanted Groomed + open to all! label Mar 28, 2024
@cielf
Copy link
Collaborator Author

cielf commented Mar 28, 2024

Assigning it to @nikolaz90

@nikolaz90
Copy link
Contributor

Oh cool! Thanks @pshong79 !

@nikolaz90
Copy link
Contributor

Hello @cielf
Quick question, I'm not sure if I've misinterpreted the details.
I started working on check boxes a user would use in next to the print button, screenshots are here
But on rereading, it's not clear if the choices should actually be persisted the organization table.
More than happy to adapt/rework the PR as per.

@cielf
Copy link
Collaborator Author

cielf commented Apr 4, 2024

Hey @nikolaz90 Thanks for checking! This should be an option at the organization level, not the distribution level. Banks will would opt out of those columns once to be applied across all their distributions.

Hope that clears things up!

@nikolaz90
Copy link
Contributor

Hey @cielf, that makes sense and I should have read more carefully.
I'll make the changes accordingly, thanks !

Copy link
Contributor

github-actions bot commented May 8, 2024

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants