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