From 01f1bb1358afc2dbfc88d8eb856d10656e071a12 Mon Sep 17 00:00:00 2001 From: mac Date: Thu, 18 Jun 2026 14:16:44 +0300 Subject: [PATCH] change locale and z-index add filter --- css/crm.css | 5 +++-- engine/classes/Requisitions.php | 7 +++++++ js/requisitions_vue.js | 5 +++++ requisitions.php | 6 ++++++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/css/crm.css b/css/crm.css index 30e28d8..9241a47 100644 --- a/css/crm.css +++ b/css/crm.css @@ -5310,7 +5310,8 @@ } .p-portal, .p-select-overlay, - .p-datepicker-overlay, - .p-dropdown-panel { + .p-datepicker-panel, + .p-dropdown-panel, + .p-multiselect-overlay { z-index: 100000 !important; } \ No newline at end of file diff --git a/engine/classes/Requisitions.php b/engine/classes/Requisitions.php index 14cbd5b..8621534 100644 --- a/engine/classes/Requisitions.php +++ b/engine/classes/Requisitions.php @@ -2223,6 +2223,12 @@ $wherePart1 .= " AND doer_clients = 1"; $wherePart2 .= " AND doer_clients = 1"; } + + if(isset($filtr->is_deal) && $filtr->is_deal){ + $where .= " AND req.deal_id IS NOT NULL AND req.deal_id > 0"; + $wherePart1 .= " AND req.deal_id IS NOT NULL AND req.deal_id > 0"; + $wherePart2 .= " AND req.deal_id IS NOT NULL AND req.deal_id > 0"; + } if(isset($filtr->expired_stages) && $filtr->expired_stages > 0){ $expired_stages = 1; @@ -5395,6 +5401,7 @@ $result['activities'] = array(); $result['order'] = 0; $result['isPartner'] = false; + $result['is_deal'] = false; $result['source'] = -1; $result['employee_id'] = -1; $result['fields'] = array(); diff --git a/js/requisitions_vue.js b/js/requisitions_vue.js index 481ce40..1729345 100644 --- a/js/requisitions_vue.js +++ b/js/requisitions_vue.js @@ -2805,6 +2805,7 @@ if ($('#req_filtr').length > 0) { activities: [], order: $('#sort_order_req').val(), isPartner: false, + is_deal: false, source: -1, fields: {}, is_contract: false, @@ -2851,6 +2852,7 @@ if ($('#req_filtr').length > 0) { activities: [], order: $('#sort_order_req').val(), isPartner: false, + is_deal: false, source: -1, fields: {}, is_contract: false, @@ -3040,6 +3042,9 @@ if ($('#req_filtr').length > 0) { if (this.filtr.isPartner) { this.options++; } + if (this.filtr.is_deal) { + this.options++; + } if (this.filtr.fields && Object.keys(this.filtr.fields).length) { this.options++; } diff --git a/requisitions.php b/requisitions.php index 01883b1..f62f7c6 100644 --- a/requisitions.php +++ b/requisitions.php @@ -1017,6 +1017,12 @@ $_SESSION['event_id_temp'] *= -1; +
+
+ + +
+