human-essentials
human-essentials copied to clipboard
3088 distribution pdf
Resolves #3088
Description
This updates the output of the distribution PDF when there is an associated request.
I've done a minor refactor of the LineItem class to accommodate the requested changes.
Please see screenshots. The "request" version of it is missing a border on the bottom right of the data table - I couldn't figure out how to put it back and I ran out of time. We can decide if that's a blocker or if we can merge as is.
Type of change
- New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Local/unit tests
Screenshots
![image](https://user-images.githubusercontent.com/1986893/189438206-0c08b42d-1f48-4bec-a1d6-30989ac5f658.png)
![image](https://user-images.githubusercontent.com/1986893/189438227-14b8f523-74d4-4754-a99f-0c2c2160fb31.png)
Thanks @dorner -- I probably won't get to this until at least Wednesday, because life.
Still pending some fixes and after that I think we mergey merge
Ack, forgot to push my commit! 😮
@edwinthinks I think this should be good now.
@edwinthinks thanks for the QA - it should be fixed now!
Awesome! Thanks @dorner just QA'ed this and it works.
A bit of a side thought for a future issue, perhaps we can use something like https://adminlte.io/themes/v3/pages/examples/invoice.html from the theme which allows us to consolidate the printing and the show page of distributions. I figure this data could be helpful outside of the PDF. Lemme know what you think.
That looks interesting! Definitely worth looking into next time we do something like this.