mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 05:33:12 +00:00
Remove shift count column from pay email, update footer text (#15)
- Remove the Shifts column from the Bonus Pay Summary email table (fixes #14) - Change footer from "After-Hours Shift Manager" to "Sea Haven Industries" (fixes #13) - Update README with pay report email section
This commit is contained in:
parent
9e2eab6953
commit
6ad952c498
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"<tr><td>{name}</td><td>{info['shifts']}</td>"
|
||||
f"<tr><td>{name}</td>"
|
||||
f"<td>${info.get('rate', 0):.2f}</td><td><strong>${info['total']:.2f}</strong></td></tr>\n"
|
||||
)
|
||||
|
||||
|
|
@ -89,10 +89,10 @@ def _build_pay_email_html(week_label: str, pay_record: dict) -> str:
|
|||
<h2>Bonus Pay Summary — {week_label}</h2>
|
||||
|
||||
<table border="1" cellpadding="6" cellspacing="0" style="border-collapse: collapse;">
|
||||
<tr style="background: #f0f0f0;"><th>Name</th><th>Shifts</th><th>Rate</th><th>Total</th></tr>
|
||||
<tr style="background: #f0f0f0;"><th>Name</th><th>Rate</th><th>Total</th></tr>
|
||||
{totals_rows}</table>
|
||||
|
||||
<p style="color: #888; font-size: 12px;">This is an automated report from the After-Hours Shift Manager.</p>
|
||||
<p style="color: #888; font-size: 12px;">This is an automated report from Sea Haven Industries.</p>
|
||||
</body>
|
||||
</html>"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue