Skip to content

fix: stamp the real signing date next to the signature - #40

Merged
codcreater1 merged 20 commits into
mainfrom
fix/stamp-signing-date
Jul 21, 2026
Merged

codcreater1 merged 20 commits into
mainfrom
fix/stamp-signing-date

Conversation

@codcreater1

Copy link
Copy Markdown
Owner

The date beside the signature was printed at contract generation, so a contract signed days later still showed the generation date and never updated. Generation now leaves it blank and the signing date is stamped during signing, via a new optional text_stamps argument on embed_signature (same save as the signature). Regression test added.

The date beside the signature was printed by create_contract_pdf, i.e. when the
contract was generated. Signing usually happens days later, so a contract
signed on the 21st still showed the 16th — and the date never changed no matter
when it was signed.

Generation now leaves that field blank and the date is stamped during signing,
at the position the contract layout owns (SIGNATURE_DATE_POS). embed_signature
gained an optional text_stamps argument so it lands in the same save as the
signature. The header 'Date:' still records when the contract was drawn up.

Adds a regression test covering both halves.
@codcreater1
codcreater1 merged commit 9de2f16 into main Jul 21, 2026
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.

1 participant