window.customers = customers;
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user