human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Purchase summary report should show total items purchased. Ideally also total spent on diapers, period supplies, etc.

Open cielf opened this issue 1 year ago • 5 comments

Summary

Add more info (see details) to the Purchase Summary Report

Why?

More useful report

Details

The purchase summary report is accessible by signing in as [email protected], then clicking Reports and then Purchases - Summary

Please add the following information before "Recent purchases". Each of these is a field on the purchases that needs to be summed up.

Total spent on diapers: -- sum of the amount spent on diapers on all purchases during the filter time period Total spent on period supplies: sum of the amount spent on period supplies on all purchases during the filter time period Total spent on adult incontinence: -- sum of the amount spent on adult incontinence on all purchases during the filter time period Total spent on other: -- sum of the amount spent on other on all purchases during the filter time period Total Items -- total number of items purchased during the filter time period

Criteria for completion

  • [ ] behaviour as above
  • [ ] automated tests confirming behaviour as above

cielf avatar Sep 30 '24 02:09 cielf

@cielf Hi, I want to take it!

manuel1280 avatar Oct 03 '24 15:10 manuel1280

You may have it!

cielf avatar Oct 03 '24 18:10 cielf

Hi @cielf That is what it would look like, Screenshot from 2024-10-12 17-38-59

what do you think?

manuel1280 avatar Oct 12 '24 22:10 manuel1280

@manuel1280 Looks pretty good to me -- I might move the total items down a line, because the prices form a natural group, but I wouldn't reject the PR if it wasn't.

cielf avatar Oct 13 '24 12:10 cielf

@cielf PR is done, I hope the Queries for the new data are correct

manuel1280 avatar Oct 16 '24 20:10 manuel1280