-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
admin 🧑⚖️Tasks related to the admin pagesTasks related to the admin pagescontract-signingContract signing workflowContract signing workflowcrm-phase-2CRM Phase 2: Contract Signing & AutomationCRM Phase 2: Contract Signing & Automationsponsor 💰
Description
Summary
Create tier-based contract templates with variable substitution and PDF generation.
Changes
Schema
- Create
sanity/schemaTypes/contractTemplate.tstitle(string)content(portable text with variable placeholders)tiers- array of tier references this template applies toinclude_addons- boolean
Variables Supported
{{sponsor.name}},{{sponsor.org_number}}{{tier.name}},{{tier.benefits}}{{contract_value}},{{contract_currency}}{{addons}}- list of selected addons{{conference.name}},{{conference.dates}}
Implementation
src/lib/sponsor-crm/contract-generator.ts- template engine- PDF generation using
@react-pdf/renderer - tRPC endpoint
crm.contract.generatePdf
Admin UI
- Template management at
/admin/sponsors/templates - Preview/download generated PDF
Acceptance Criteria
- Admin can create/edit contract templates
- Templates can be assigned to specific tiers
- PDF generates with correct variable substitution
- Addons section included when configured
Dependencies
None - can start immediately
Part of
Epic: CRM Phase 2 - Sponsor Contract Signing & Automation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
admin 🧑⚖️Tasks related to the admin pagesTasks related to the admin pagescontract-signingContract signing workflowContract signing workflowcrm-phase-2CRM Phase 2: Contract Signing & AutomationCRM Phase 2: Contract Signing & Automationsponsor 💰