diff --git a/README.md b/README.md index 0a54c4e..e081167 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ python scripts/seed_schedule.py Every Monday at 7am ET, the bot posts the week's schedule to the configured channel with pickup buttons for any available shifts. +## Pay Report Email + +A weekly Bonus Pay Summary email is sent via SES with a table showing each employee's name, rate, and total pay for the week. + ## Related - [3cx-ring-scheduler](https://github.com/Sea-Haven-Industries/3cx-ring-scheduler) — the Lambda that updates 3CX ring group routing daily diff --git a/src/weekly_post.py b/src/weekly_post.py index ef2464c..2695d6b 100644 --- a/src/weekly_post.py +++ b/src/weekly_post.py @@ -80,7 +80,7 @@ def _build_pay_email_html(week_label: str, pay_record: dict) -> str: totals_rows = "" for name, info in sorted(pay_record["totals"].items()): totals_rows += ( - f"{name}{info['shifts']}" + f"{name}" f"${info.get('rate', 0):.2f}${info['total']:.2f}\n" ) @@ -89,10 +89,10 @@ def _build_pay_email_html(week_label: str, pay_record: dict) -> str:

Bonus Pay Summary — {week_label}

- + {totals_rows}
NameShiftsRateTotal
NameRateTotal
-

This is an automated report from the After-Hours Shift Manager.

+

This is an automated report from Sea Haven Industries.

"""