Skip to main content
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

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.
Typical Duration: 2-8 weeks

Stage Handlers

Quote Handlers

Job Handlers

Database Schema

Key Tables

API Endpoints

Workflow Chain Retrieval

Status Transitions

Notifications

Error Handling

Retry Configuration

Common Failure Scenarios

Testing

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