Creating an Invoice
Create professional invoices for your completed work with server-side item search, real-time loading feedback, quick Mark Sent button, purchase order attachment, automatic item validation, profit tracking, multi-PDF attachments, product thumbnails, per-user email signature, dual delivery channels (email + SMS), editable email subjects, prefill from completed jobs, support for jobless invoices, automatic property selection for single-address customers, shared payment links, invoice review link picker, and improved draft invoice query handling
Overview
Invoices are how you get paid. When work is complete, you create an invoice that documents what was done and how much is owed. BlueClerk invoices are professional, can accept online payments, integrate with accounting software, and can include photos from your completed work. You can now attach purchase orders to invoices, linking supplier orders to customer billing for complete job cost tracking.
IMPORTANT: Improved draft invoice loading - The invoice detail page now handles missing invoices more gracefully. If you try to view an invoice that doesn't exist in the database (wrong ID, deleted invoice, etc.), you'll see a clean "Invoice not found" error message instead of a generic database error. This applies to both DRAFT and non-draft invoices.
NEW: Invoice Review Link Picker - When sending invoices via email, you can now select which review link to include in the message footer. Choose from your saved review pages (Google, Facebook, etc.) or use the legacy Google Review URL from your company settings. The picker lets you customize which review platform customers see after paying, helping you gather feedback on the platform that matters most to your business. If you don't select a review link, no review request is included.
NEW: Shared Payment Link - Invoice emails now include a shared payment link (/invoice/[id]) instead of customer-specific links. This allows anyone with the link to view the invoice and make payments - perfect for forwarding to property managers, accountants, or multiple decision-makers without requiring them to log in or have a BlueClerk account.
NEW: Automatic Property Selection - When creating an invoice for a customer with only one address, BlueClerk automatically selects that property for you. This eliminates an extra click and speeds up your workflow - especially helpful when most of your customers only have one service location. You can still change the property if needed.
NEW: Prefill from Completed Jobs - When creating an invoice from a completed job (via URL parameter ?jobId=...), BlueClerk automatically prefills the customer, property, and line items from the job's associated ticket. This saves time and ensures billing accuracy by pulling work details directly from the completed job instead of requiring manual entry.
Include Job Notes & Photos (New)
You can now include job, ticket, or job report notes and photos directly on the New Invoice page using the "Job Notes & Photos" drawer.
What it does
- Click the "Job Notes & Photos" button in the Ticket, Job & Completion Report section to open a drawer showing job context (details, notes, images).
- Choose notes (add whole note blocks) and photos to include with this invoice. Selected photos show as thumbnails on the invoice create page so you can confirm what's attached.
- Selections are preserved before you save the invoice for the first time — you do not need to save a draft first to attach job notes or photos.
- Notes added via the drawer are appended to the invoice notes field; images are stored as invoice photos when you save.
- For security and data integrity, only photos that belong to the selected job, its ticket, or its completion report may be attached to the invoice.
How to use it
- Open New Invoice and pass a job (or jobReport) via the URL or select the job context on the form.
- In the "Ticket, job & completion report" card, click Job Notes & Photos.
- In the drawer, review job notes and images; click "Add Note" or the plus icon on an image to attach it.
- Selected photos appear as thumbnails on the invoice page. Remove any photo by clicking its Remove button.
- Save the invoice — the selected notes and photos are saved with the invoice record.
Tips
- The drawer shows a summary count like "3 photos selected for this invoice" so you can confirm attachments at a glance.
- If you try to add a photo that's already been attached to the invoice, BlueClerk will warn you and avoid duplicates.
- Photos are validated server-side so only images from the chosen job/ticket/report are accepted; attempting to attach an unrelated URL will produce an error.
Important behaviors & protections
-
CRITICAL: Draft invoices stay DRAFT when saved — When you click "Save" on a DRAFT invoice, it remains as DRAFT and does NOT auto-promote to SENT. This gives you full control over when your invoice becomes visible in accounting software. To mark an invoice as sent, use the "Mark Sent" button in the invoice header after saving.
-
CRITICAL: Line Item Edits Flush Before Save — When you type a price or quantity into a line item and immediately click Save, BlueClerk now waits for in-flight line item writes to complete before recalculating totals. This prevents the "type 300, click Save, it syncs as $0" race condition that caused stale $0 invoices to appear in QuickBooks. The system tracks pending line item mutations using a ref counter and blocks the save operation until all pending writes finish.
-
NEW: Email Failure Protection — When you click "Send" on an invoice or purchase order and the email send fails, BlueClerk no longer marks the document as SENT. The status stays at DRAFT (for new documents) or remains unchanged (for existing documents), preventing invoices from being marked sent when customers never received them. This ensures