This commit is contained in:
phaichayon
2026-06-25 16:26:14 +07:00
parent 69279fc341
commit 5a83040077
11 changed files with 547 additions and 64 deletions

View File

@@ -91,7 +91,7 @@ export async function listPipelineReportDataset(
const { start, end } = getDateRange(requiredFilters);
const [branches, productTypes, leadSources, opportunityRows, quotationRows, followupRows] =
await Promise.all([
getUserBranches(),
getUserBranches(context.organizationId),
getActiveOptionsByCategory('crm_product_type', { organizationId: context.organizationId }),
getActiveOptionsByCategory('crm_lead_channel', { organizationId: context.organizationId }),
db
@@ -260,4 +260,3 @@ export async function listPipelineReportDataset(
rows
};
}