From a0555eddd43e5c3009f66ca393d3b045af926c27 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Mon, 23 Feb 2026 15:07:09 -0600 Subject: [PATCH] window.customers = customers; --- public/customer-view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/customer-view.js b/public/customer-view.js index fbd5534..843854f 100644 --- a/public/customer-view.js +++ b/public/customer-view.js @@ -13,6 +13,8 @@ export async function loadCustomers() { try { const response = await fetch('/api/customers'); customers = await response.json(); + // Backward compat: quote/invoice modals use global 'customers' variable + window.customers = customers; renderCustomerView(); } catch (error) { console.error('Error loading customers:', error);