The Customer Lifecycle Workflow is the primary business process in Taskr,
orchestrating the flow from initial customer request through work completion and payment.
Overview
Flow: Purchase Order → Quote → Job → Invoice → Payment Implementation:packages/workbooks-jobs/src/workflows/customer-lifecycle-workflow.ts
Trigger.dev Task ID: customer-lifecycle-workflow
Workflow Stages
Workflow Diagram
Workflow Paths
- Standard Path
- Direct Path
- Link Path
PO → Quote → Job → Invoice
The most common path for new customer work requests.1
Purchase Order
Customer submits purchase order, which is reviewed and approved.
2
Quote Creation
Quote created with line items, sent to customer for approval.
3
Quote Approval
Customer views and accepts quote, triggering job creation.
4
Job Execution
Job is scheduled, assigned to technician, and completed.
5
Invoicing
Invoice generated from job, sent to customer.
6
Payment
Payment received and matched via bank sync.
Stage Handlers
Quote Handlers
handleQuoteDraft
handleQuoteDraft
handleQuoteApproved
handleQuoteApproved
Job Handlers
handleJobCreated
handleJobCreated
Database Schema
Key Tables
API Endpoints
Workflow Chain Retrieval
Status Transitions
Notifications
Error Handling
Retry Configuration
Common Failure Scenarios
Testing
Related Documentation
Fault Resolution
Handle issues discovered during jobs
Job Scheduler
Automated job creation and assignment
Status Reference
All entity statuses and transitions
Invoice Payment
Billing and payment reconciliation