From 5b47f0f41a931eb4635d74ed952d0213392c7067 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 21 Jan 2022 16:38:48 +0300 Subject: [PATCH] graphql: remove selectSupplier query --- src/client/stores/CalculationStore/init/variables.ts | 2 -- .../graphql/query/crm/options/getMainOptions.graphql | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/src/client/stores/CalculationStore/init/variables.ts b/src/client/stores/CalculationStore/init/variables.ts index 5403838..81dba3c 100644 --- a/src/client/stores/CalculationStore/init/variables.ts +++ b/src/client/stores/CalculationStore/init/variables.ts @@ -6,8 +6,6 @@ export const mainOptionsVariables: | Record = { currentDate: currentISODate, statecode: 0, - supplier_account_type: [100000001], - supplier_legal_form: 100000001, dealer_account_type: [100000001], dealer_legal_form: 100000001, product_relation: [100000000], diff --git a/src/core/graphql/query/crm/options/getMainOptions.graphql b/src/core/graphql/query/crm/options/getMainOptions.graphql index 56b1de7..5cc0c55 100644 --- a/src/core/graphql/query/crm/options/getMainOptions.graphql +++ b/src/core/graphql/query/crm/options/getMainOptions.graphql @@ -4,8 +4,6 @@ query GetMainOptions( $statecode: Int $currentDate: DateTime - $supplier_account_type: [Int!] - $supplier_legal_form: Int $dealer_account_type: [Int!] $dealer_legal_form: Int $product_relation: [Int!] @@ -16,15 +14,6 @@ query GetMainOptions( $fuelcard_product_type: Int $techcard_product_type: Int ) { - selectSupplier: accounts( - evo_account_type: $supplier_account_type - statecode: $statecode - evo_legal_form: $supplier_legal_form - ) { - name - accountid - evo_fin_department_accountid - } selectSupplierCurrency: transactioncurrencies(statecode: $statecode) { transactioncurrencyid isocurrencycode