Record invoice sent date in timeline - #425
Merged
clstaudt merged 1 commit intoJul 19, 2026
Merged
Conversation
clstaudt
approved these changes
Jul 19, 2026
clstaudt
left a comment
Contributor
There was a problem hiding this comment.
Thanks @sreedevi-i - good work, clean PR, good to go.
Contributor
Author
|
Thanks for the review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #393
Adds a recorded
sent_datefor invoices, updates sent/un-sent behavior, shows the sent date in invoice details, and adds invoice sent events to the timeline.Approach
This adds a nullable
sent_datefield to invoices so Tuttle can record when an invoice was sent, instead of only storing a booleansentstatus.When an invoice is marked sent or sent by email,
sent_dateis set to today. When it is unmarked as sent,sent_dateis cleared.The timeline now emits an
Invoice ... sentevent for regular invoices usingsent_date, falling back to the invoice date for older sent invoices that do not have a recorded sent date.Invoice details also show the sent date when present.
Since this change modifies the schema in
tuttle/model.py(addingsent_dateto Invoice), I generated and reviewed the resulting migration (revision 4447db01f757): it's a straightforward nullableadd_columnon invoice, no rename risk, and PRAGMA foreign_key_check passes.Developed with AI assistance (Cursor). I've reviewed and can explain all changes.
Screenshots
Invoice details showing recorded sent date:

Timeline showing invoice sent event:

Checklist
just dev).just test).just precommit).tuttle/model.py), I generated and reviewed an Alembic migration (just migrate "<msg>").