WFDASH-WEBAPP/n8n_workfows
Dave 1e3121d838 fix(quotes): persist operator's letterhead choice to prevent silent letterhead-flip
This commit addresses the silent letterhead-flip bug reported on 2026-09-09, where the operator's selected letterhead was not being saved, leading to incorrect letterhead being used in subsequent PDF generations. The operator's choice is now persisted in the quote row during PDF generation, ensuring that the correct letterhead is used for future auto-regens and email sends.

Changes include:
- Updated the `generateQuotePdf` function to include the operator's letterhead choice in the database write.
- Adjusted the API response to surface the persisted letterhead for UI synchronization.
- Added tests to verify that the letterhead choice is correctly saved and not overwritten by empty or invalid inputs.

This fix enhances the reliability of the quote generation process and improves user experience by maintaining the operator's selections.
2026-09-09 16:06:40 +02:00
..
SNAPSHOT-WFDASH-v8-from-live-2026-08-21 chore(agent): baseline — uncommitted work from the local directory 2026-08-26 01:00:23 +02:00
1 - WFDASH QUICKBOOKS INVOICE1 - WFDASH QUICKBOOKS INVOICE.json feat(invoicing): add QuickBooks invoicing flow and print functionality 2026-07-09 09:44:55 +02:00
1 - WFDASH QUICKBOOKS INVOICE1 - WFDASH QUICKBOOKS INVOICE_OLD.json feat(invoicing): add QuickBooks invoicing flow and print functionality 2026-07-09 09:44:55 +02:00
1 - WFDASH QUICKBOOKS INVOICE1 - WFDASH QUICKBOOKS INVOICE_OLD_2.json feat(invoicing): add QuickBooks invoicing flow and print functionality 2026-07-09 09:44:55 +02:00
order_items_m74xvviv2hpzz2d.json feat(invoicing): add QuickBooks invoicing flow and print functionality 2026-07-09 09:44:55 +02:00
POCKETBASE NODES.json feat(quotes): add email-to-quote pipeline with attachments and replies 2026-06-16 20:46:28 +02:00
SNAPSHOT-WFDASH-v4-from-live-2026-06-20.json feat: add quote email intake and atomic numbering 2026-06-22 13:58:24 +02:00
SNIPPET-catch-and-create-uploader.js feat: add quote email intake and atomic numbering 2026-06-22 13:58:24 +02:00
SNIPPET-plan-upload-attachments-early-v2.js feat: add quote email intake and atomic numbering 2026-06-22 13:58:24 +02:00
SNIPPET-plan-upload-attachments-early-v3.js feat: add quote email intake and atomic numbering 2026-06-22 13:58:24 +02:00
WFDASH — Price List Match.js feat(sprint): add new sprint pricing workflow and supporting code 2026-07-03 07:29:43 +02:00
WFDASH — Purchase Order Send (Cron).js refactor: switch hardcoded UI colors to semantic theme tokens 2026-07-07 17:22:03 +02:00
WFDASH — Purchase Order Send.js refactor: switch hardcoded UI colors to semantic theme tokens 2026-07-07 17:22:03 +02:00
WFDASH — Purchase Order Send.json refactor: switch hardcoded UI colors to semantic theme tokens 2026-07-07 17:22:03 +02:00
WFDASH — Quote Email Monitor (v3.1 agentic + PDF text).json feat(quotes): add email-to-quote pipeline with attachments and replies 2026-06-16 20:46:28 +02:00
WFDASH — Quote Email Monitor (v4 direct-to-PB).json feat(quotes): add email-to-quote pipeline with attachments and replies 2026-06-16 20:46:28 +02:00
WFDASH — Quote Email Monitor (v5 catch-and-create).json feat(quotes): split attachments into internal vs outbound with operator upload UI 2026-09-09 13:43:56 +02:00
WFDASH — Quote Email Monitor (v5 catch-and-create).PRE-FIX-REPLY-BRANCH-AUTH.json feat(quotes): split attachments into internal vs outbound with operator upload UI 2026-09-09 13:43:56 +02:00
WFDASH — Quote Email Monitor (v5 catch-and-create).PRE-FIX-REPLY-DETECTION.json feat(quotes): split attachments into internal vs outbound with operator upload UI 2026-09-09 13:43:56 +02:00
WFDASH — Quote Item Rewriter.json feat: add locked pricing and overhaul quote rewrite 2026-06-22 23:07:53 +02:00
WFDASH — Quote Outbound Send (push-payload).baseline.json feat(quotes): split attachments into internal vs outbound with operator upload UI 2026-09-09 13:43:56 +02:00
WFDASH — Quote Outbound Send (with-outbound-attachments).json fix(quotes): persist operator's letterhead choice to prevent silent letterhead-flip 2026-09-09 16:06:40 +02:00