rubyforgood / human-essentials

Human Essentials is an inventory management system for diaper, incontinence, and period-supply banks. It supports them in distributing to partners, tracking inventory, and reporting stats and analytics.
https://humanessentials.app
MIT License
447 stars 474 forks source link

4481 Print Individual Donation Receipts #4484

Closed mdphillips375 closed 2 months ago

mdphillips375 commented 3 months ago

Resolves #4481

Description

Added buttons to donation list rows and donation view page to print PDF receipt of individual donation. PDF is modification of existing distribution receipt.

Type of change

How Has This Been Tested?

Added and modified sample donation records to provide a variety of types of donations: sources, various states of completeness of contact info, line items, money values.

For some reason rSpec is currently getting hung on my system, so these tests were not run. Only changes made to existing code was adding 2 routes, 2 buttons, and one controller method.

Screenshots

DonationShow DonationRows AllInfoPlusMoney MfgOnlyItems MiscNoItems PartInfoNoItems

Hiding value columns: Hide Not hiding value columns: NoHide

mdphillips375 commented 3 months ago

Added zero dollar money raised display and tests.

ZeroDollars

mdphillips375 commented 2 months ago

Latest changes pushed.

mdphillips375 commented 2 months ago

All things being tested for now have hardcoded values.

dorner commented 2 months ago

Thanks very much!

github-actions[bot] commented 2 months ago

@mdphillips375: Your PR 4481 Print Individual Donation Receipts is part of today's Human Essentials production release: 2024.07.21. Thank you very much for your contribution!