WAIT: Add CE request/payment deadlines to events#1870
Conversation
| if complete | ||
| return unless amount_cents.positive? | ||
| return "#{amount} due" | ||
| return "#{amount} due" if registration.paid_in_full? || event.ce_payment_due_deadline.blank? |
There was a problem hiding this comment.
🤖 From Claude: The deadline suffix is suppressed once paid_in_full?. CE payment isn't tracked separately from the event fee, so this reuses the same signal callouts/ce already uses to show CE "Paid".
| shown in the confirmation and reminder emails. Mirrors the CE callout's | ||
| deadline copy. Locals: event (decorated), registration. The deadlines are | ||
| plain dates, so no time zone is applied. %> | ||
| <% if registration.ce_credit_requested? && (event.ce_hours_request_deadline || event.ce_payment_due_deadline) %> |
There was a problem hiding this comment.
🤖 From Claude: Gated on ce_credit_requested? so only CE registrants see deadlines, and on at least one deadline being set so events without them are unchanged. Same partial backs both confirmation and reminder (html + text) to keep the four templates in sync.
| shown in the confirmation and reminder emails. Mirrors the CE callout's | ||
| deadline copy. Locals: event (decorated), registration. The deadlines are | ||
| plain dates, so no time zone is applied. %> | ||
| <% if registration.ce_credit_requested? && (event.ce_hours_request_deadline || event.ce_payment_due_deadline) %> |
There was a problem hiding this comment.
🤖 From Claude: Gated on ce_credit_requested? so only CE registrants see deadlines, and on at least one deadline being set so events without them are unchanged. One partial backs both confirmation and reminder (html + text) to keep the four templates in sync.
Admins set per-event CE deadlines so registrants know when to request hours and pay; the CE callout, its detail page, and the public CE page show them dynamically based on what the registrant still owes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Registrants who requested CE credit now see the request/payment deadlines in their confirmation and reminder emails — email is where a deadline actually nudges. Shared _ce_deadlines partial keeps the four templates in sync. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
5c1492b to
ef34e0b
Compare
🤖 PR, suggested 👤 review level: 📖 Read — light-logic: two new event date columns, callout badge/subtitle branching, and view/email display
What is the goal of this PR and why is this important?
How did you approach the change?
datecolumnsce_hours_request_deadline/ce_payment_due_deadlineonevents, permitted inEventPolicyand edited in the CE callout section of the event form.MagicTicketCalloutssurfaces them dynamically on the CE card: subtitle prompts "Request your hours by " until hours are on file; the amount-due badge becomes "$150 due by " until the fee is paid (it already keys offpaid_in_full?, the same signal the CE page uses for "Paid").callouts/ce) and the public CE info page (ce_hours)._ce_deadlinespartial (html + text), gated on the registrant having requested CE credit.Anything else to add?