Overview
The Quotation module streamlines the process of creating professional quotation documents, exporting them as PDFs, and tracking customer responses. It integrates with Google Drive for collaborative editing and S3 for final document storage.Automatic Generation
Generate quotations from service request data
Google Docs Integration
Edit quotations collaboratively before finalizing
Professional PDFs
Export polished PDFs with company branding
Follow-up Automation
Automatic reminders 24 hours after sending
Quotation Workflow
Generating a Quotation
Enter Pricing Information
- Service price: Cost of the service
- Transport price: Delivery or logistics cost (optional)
- Extra data: Additional parameters for the template
The draft is created as a DOCX template and uploaded to Google Drive for collaborative editing.
Editing in Google Drive
After generation, the quotation exists as a Google Doc:Access the Document
Access the Document
Click the “Open in Google Docs” link in the quotation details. The document is automatically shared with the user who generated it.
Make Edits
Make Edits
Update pricing, add special conditions, adjust terms, or modify any content directly in Google Docs.
Collaborate
Collaborate
Share the document with colleagues for review before finalizing.
Finalizing the Quotation
Once the quotation is ready to send:Choose PDF Source
- HTML Template (recommended): Generate a professional PDF from the HTML template
- Google Docs: Export the edited Google Doc as PDF
System Processing
- Exports the document to PDF
- Uploads PDF to S3 storage
- Updates quotation status to FINALIZED
- Sends email to customer with PDF attachment
- Schedules 24-hour follow-up reminder
Quotation Metadata
Each quotation stores rich metadata:Metadata structure
Viewing and Downloading
Customer View
Customers receive a unique link to view their quotation online:- Quotation details
- PDF download button
- Accept/Reject buttons
- Comments section
Internal View
Staff can access quotations through:Service Request Page
Service Request Page
View all quotations related to a service request in the “Quotations” tab.
Quotations List
Quotations List
Filter quotations by user, date range, or status.
Download URL
Download URL
Generate a temporary presigned URL valid for 15 minutes:
Follow-up Management
Automatic Follow-up
After finalizing, the system schedules a follow-up job:Manual Follow-up
Vendors can record follow-up interactions:Record Follow-up Call
Record Follow-up Call
POST /api/quotations/followup
Quotation Status Flow
DRAFT
DRAFT
Initial state after generation. Document exists in Google Drive but not finalized.
FINALIZED
FINALIZED
PDF exported, uploaded to S3, and sent to customer. Ready for follow-up.
ACCEPTED
ACCEPTED
Customer accepted the quotation. Ready to convert to service order.
REJECTED
REJECTED
Customer declined. Follow-up record should include reason.
EXPIRED
EXPIRED
Validity period passed without customer response.
Templates
Quotation templates are defined in the backend and include:- DOCX templates: For Google Docs generation (using docx-templates)
- HTML templates: For professional PDF generation (using Puppeteer)
Available Templates
Available Templates
quotation-standard: General servicesquotation-ptar: Wastewater treatment plantsquotation-fumigation: Fumigation servicesquotation-lab-analysis: Laboratory analysis
API Reference
Best Practices
Review Before Finalizing
Review Before Finalizing
Always review the quotation in Google Docs before finalizing. Once finalized, edits require creating a new version.
Use HTML Templates
Use HTML Templates
The HTML-to-PDF generation produces more consistent, professional results than Google Docs export.
Track Follow-ups
Track Follow-ups
Record all customer interactions in the follow-up system for accurate pipeline management.
Version Control
Version Control
If major changes are needed after finalizing, generate a new quotation version rather than editing the finalized one.
Related Features
Service Requests
Create requests that require quotations
Dashboard
Track quotation metrics and conversion rates