Skip to content

Recurring: clear the stale "no e-mail address" error once the client has one - #53

Merged
flocom merged 1 commit into
mainfrom
claude/focused-hypatia-9nmd4u
Nov 16, 2026
Merged

flocom merged 1 commit into
mainfrom
claude/focused-hypatia-9nmd4u

Conversation

@flocom

@flocom flocom commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Problem

A schedule created for a client without an e-mail address recorded e-mail: the client has no e-mail address. That error was only reset at the schedule's next generation, so it kept showing ("Dernière erreur : …") after an address was added to the client.

Fix

  • Saving a client that now has an address clears that error on its schedules.
  • E-mailing an invoice generated by a schedule successfully clears the schedule's e-mail: error.
  • Migration 17 clears the error on schedules already affected whose client now has an address.

Tests

  • New TestRecurringNoRecipientErrorClearedWhenClientGetsEmail (fails without the fix).
  • go vet ./... and go test ./... pass.

Generated by Claude Code

…has one

The error recorded on a schedule was only reset at its next generation, so
it kept showing after an address was added to the client. It is now cleared
when the client is saved with an address, when an invoice of the schedule is
e-mailed successfully, and by a migration for schedules already affected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYH8S5oYUwFL3iDkVPeLFR
@flocom
flocom merged commit 54bc76e into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants