From 8a38241d71f5c358d0265119f431d40d6c3dfd70 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 7 Aug 2026 00:50:58 +0300 Subject: [PATCH] 068 bugfix --- Application.cfc | 2 +- crm2cloud.cfm | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Application.cfc b/Application.cfc index 375f316..1a1b707 100644 --- a/Application.cfc +++ b/Application.cfc @@ -87,7 +87,7 @@ - + diff --git a/crm2cloud.cfm b/crm2cloud.cfm index 7aa45e3..d69596b 100644 --- a/crm2cloud.cfm +++ b/crm2cloud.cfm @@ -142,6 +142,9 @@ AS ( ,round(sum(c.cnt * o.cnt)) AS quantity ,count(*) AS lines ,STRING_AGG(DISTINCT c.code, ', ' ORDER BY c.code) AS codes + ,e.end_customer_wz + ,e.end_customer_uid + ,e.end_customer_name FROM stair o JOIN elma.companies z ON o._companies = z.__id --LEFT JOIN component c on (c.__id = ANY (o.params)) @@ -156,6 +159,9 @@ AS ( GROUP BY z.id_klienta ,z.__id ,z.__name + ,e.end_customer_wz + ,e.end_customer_uid + ,e.end_customer_name ) ------------------------------ ,sold_cpu AS ( @@ -279,6 +285,8 @@ select r.wz as wz_sold r.client as client_sold r.end_customer_wz + r.end_customer_uid + r.end_customer_name r.company_uid a.wz as wz_alloc u.manager