From 9e6f3d451c58412b8d45f9a51fe8997907dc5023 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 11 Dec 2023 15:37:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=86=D0=B8=D1=8E?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BD=D0=B0=D0=B6=D0=B0=D1=82=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=A0=D0=B0=D1=81=D1=81?= =?UTF-8?q?=D1=87=D0=B8=D1=82=D0=B0=D1=82=D1=8C=20btnCalculate:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Если Пересчет без пересмотра recalcWthtRevision = True И в поле Предложение Quote указана запись, у которой поле "Акция"quote.evo_promotion содержит значение "ЭвоЛайт_China" 100 000 000 или "ЭвоЛайт_ЛКТ" 100 000 001 И в поле "Программа принятия решения" quote.evo_programsolution значение = ЭвоЛайт 100 000 000, И значение поля "Плательщик КАСКО" в Предложении quote.evo_kasko_payer не равно значению Плательщик КАСКО insuredKASKO в калькуляторе, то не считать график и выводить сообщение "По акции <значение поля "Акция" из Предложение> после одобрения нельзя менять Плательщика по КАСКО" иначе ничего не проверяем --- apps/web/graphql/crm.query.graphql | 3 + apps/web/graphql/crm.schema.graphql | 109 +++++++++++++++++++++++ apps/web/graphql/crm.types.ts | 28 +++++- apps/web/process/insurance/validation.ts | 17 ++++ 4 files changed, 155 insertions(+), 2 deletions(-) diff --git a/apps/web/graphql/crm.query.graphql b/apps/web/graphql/crm.query.graphql index 954efe6..240c1ca 100644 --- a/apps/web/graphql/crm.query.graphql +++ b/apps/web/graphql/crm.query.graphql @@ -103,6 +103,9 @@ query GetQuote($quoteId: Uuid!) { evo_maximum_percentage_av evo_untype_insurance evo_percent_subsidy + evo_programsolution + evo_kasko_payer + evo_promotion } } diff --git a/apps/web/graphql/crm.schema.graphql b/apps/web/graphql/crm.schema.graphql index e283eef..f2fcfd6 100644 --- a/apps/web/graphql/crm.schema.graphql +++ b/apps/web/graphql/crm.schema.graphql @@ -181,6 +181,7 @@ type account { evo_contracts: [evo_contract] evo_dadata_dateupdate: DateTime evo_dadatdalog: String + evo_dealer_brandid: Uuid evo_dealer_responsible_systemuserid: Uuid evo_div_12month: Boolean evo_documents(evo_documenttypeid_param: GuidParamInput, latestversion: Boolean = true): [evo_document] @@ -223,6 +224,7 @@ type account { evo_legal_form: Int evo_legal_region_calc: Boolean evo_licenses_list: String + evo_limit_evopartner: Decimal evo_lkt: String evo_lk_regdate: DateTime evo_log_activdate_1c: String @@ -332,6 +334,7 @@ type contact { emailaddress2: String emailaddress3: String evo_assignment_date: DateTime + evo_connumber: String evo_consent_date: DateTime evo_credentials_dateend: DateTime evo_delegation_agreement: Boolean @@ -458,6 +461,7 @@ type evo_baseproduct { evo_id: String evo_leasingobject_types(statecode: Int): [evo_leasingobject_type] evo_name: String + evo_object_count_max: Int evo_relation: [Int!] evo_sale_without_nds: Boolean evo_scoring_available: Boolean @@ -495,6 +499,7 @@ type evo_insurance_period { createdon: DateTime evo_accept_pay_listid: Uuid evo_accountid: Uuid + evo_activativation_for_ius_insurance_periodid: Uuid evo_age_drivers: Int evo_base_reward_factor: Decimal evo_base_reward_rub: Decimal @@ -506,6 +511,7 @@ type evo_insurance_period { evo_contractidData: evo_contract evo_datefrom: DateTime evo_dateto: DateTime + evo_decentral_type: Int evo_dgo_price: Decimal evo_elt_id: String evo_evokasko_price: Decimal @@ -514,6 +520,7 @@ type evo_insurance_period { evo_franchise: Decimal evo_id: String evo_id_elt_calc: String + evo_insurance_conditionsid: Uuid evo_insurance_decentral: Boolean evo_insurance_decentral_factor: Decimal evo_insurance_decentral_rub: Decimal @@ -524,11 +531,13 @@ type evo_insurance_period { evo_insurance_supplier: Boolean evo_insurance_supplier_factor: Decimal evo_insurance_supplier_rub: Decimal + evo_insurance_systemuserid: Uuid evo_insurance_type: Int evo_insurer_accountid: Uuid evo_insurer_accountidData: account evo_ins_risk: [Int!] evo_invoice_date: DateTime + evo_ius_status: Int evo_kasko_price: Decimal evo_leasingobjectid: Uuid evo_loss_kv: Decimal @@ -536,8 +545,10 @@ type evo_insurance_period { evo_mobile_discount_factor: Decimal evo_mobile_discount_rub: Decimal evo_name: String + evo_new_policy: Boolean evo_nsib_connection_listid: Uuid evo_nsib_pay_summ: Decimal + evo_nsib_price: Decimal evo_ns_price: Decimal evo_opponent_discount: Boolean evo_opponent_discount_factor: Decimal @@ -549,7 +560,9 @@ type evo_insurance_period { evo_paid: Boolean evo_payer: Int evo_pay_summ_fact: Decimal + evo_period_for_ius_insurance_periodid: Uuid evo_period_number: Int + evo_period_type: Int evo_prolong_listid: Uuid evo_request_clientid: Uuid evo_request_clientidData: evo_request_client @@ -611,6 +624,7 @@ type evo_external_supplier_code { evo_accountidData: account evo_available_lead_failure_reason: [Int!] evo_broker_accountid: Uuid + evo_edo_url: String evo_external_supplier_codeid: Uuid evo_id: String evo_manager_systemuserid: Uuid @@ -665,6 +679,7 @@ type evo_leasingobject { evo_delivery_time: Int evo_driving_axle: String evo_ecological_class: Int + evo_engine_hours: Int evo_engine_model: String evo_engine_power: Decimal evo_engine_power_kvt: Decimal @@ -676,6 +691,7 @@ type evo_leasingobject { evo_gos_akt: String evo_guarantee: String evo_insured_contactid: Uuid + evo_izt_accountid: Uuid evo_leasingobjectid: Uuid evo_leasingobject_specification: String evo_leasingobject_typeid: Uuid @@ -687,6 +703,7 @@ type evo_leasingobject { evo_max_mass: Decimal evo_max_speed: Decimal evo_mileage: Decimal + evo_mileage_izt: Int evo_modelid: Uuid evo_motor_power_1: String evo_name: String @@ -711,6 +728,7 @@ type evo_leasingobject { evo_registration_regionid: Uuid evo_reg_date: DateTime evo_result_business_valuation: Boolean + evo_sales_price_fact: Decimal evo_seats: Int evo_storage: String evo_sts_number: String @@ -793,12 +811,16 @@ type lead { evo_failure: Boolean evo_fin_department_accountid: Uuid evo_firstname: String + evo_getdate: DateTime evo_inn: String evo_kpp: String evo_lastname: String evo_new_client: String evo_opportunityid: Uuid evo_opportunityidData: opportunity + evo_phonecall_systemuserid: Uuid + evo_planaction: String + evo_plandate: DateTime evo_scheduled_callid: Uuid evo_statuscodeid: Uuid evo_supplier_accountid: Uuid @@ -807,6 +829,7 @@ type lead { evo_utm_medium: String evo_utm_source: String evo_utm_term: String + evo_workhistory: String fullname: String jobtitle: String leadid: Uuid @@ -827,11 +850,13 @@ type opportunity { accountid: Uuid accountidData: account createdon: DateTime + customerid: Uuid evo_acc_director_contactid: Uuid evo_acc_singdoc_contactid: Uuid evo_all_credit: Decimal evo_all_credit_actual_date: DateTime evo_all_credit_evolight: Decimal + evo_all_credit_evopartner: Decimal evo_all_credit_evoprofi: Decimal evo_all_credit_evosmart: Decimal evo_all_credit_gk: Decimal @@ -871,12 +896,14 @@ type opportunity { evo_fssp_legal_entity: Decimal evo_gt_client_riskid: Uuid evo_guarantor1_accountid: Uuid + evo_guarantor1_bank_detailsid: Uuid evo_guarantor1_contactid: Uuid evo_guarantor1_report_year: Int evo_guarantor1_year_equity_capital: Decimal evo_guarantor1_year_profit: Decimal evo_guarantor1_year_revenue: Decimal evo_guarantor2_accountid: Uuid + evo_guarantor2_bank_detailsid: Uuid evo_guarantor2_contactid: Uuid evo_guarantor3_contactid: Uuid evo_guarantor4_contactid: Uuid @@ -892,6 +919,7 @@ type opportunity { evo_report_year: Int evo_sfm_comment: [Int!] evo_solution_agents_com: String + evo_solution_agents_reason: [Int!] evo_solution_average_cost: Int evo_solution_average_cost_com: String evo_solution_average_cost_reason: String @@ -945,6 +973,7 @@ type quote { evo_another_payments: Decimal evo_approvallogs: [evo_approvallog] evo_approved_first_payment: Decimal + evo_average_monthly_revenue: Decimal evo_balance_holder: Int evo_baseproductid: Uuid evo_base_bonus: Decimal @@ -964,6 +993,8 @@ type quote { evo_category_tr: Int evo_check_average_result: Int evo_check_ins_result: Int + evo_claims_legal_entity: Decimal + evo_claims_legal_entity_plaintiff: Decimal evo_client_riskid: Uuid evo_client_typeid: Uuid evo_coefficien_bonus_reducttion: Decimal @@ -1016,6 +1047,7 @@ type quote { evo_evokasko_insurer_accountidData: account evo_evokasko_price: Decimal evo_exp_drivers: Int + evo_financial_loan: Decimal evo_financing_with_own_funds: Boolean evo_fingap_accountid: Uuid evo_fingap_bonus_sum: Decimal @@ -1039,6 +1071,7 @@ type quote { evo_first_payment_rub: Decimal evo_first_payment_rub_without_subsidy: Decimal evo_franchise: Decimal + evo_fssp_legal_entity: Decimal evo_fuel: Boolean evo_gender: Int evo_gps_brandid: Uuid @@ -1046,6 +1079,7 @@ type quote { evo_graphs: [evo_graph] evo_graph_irr: Decimal evo_graph_type: Int + evo_group_companies_accountid: Uuid evo_guarantee_fl: Boolean evo_guarantee_flname: String evo_guarantee_ul: Boolean @@ -1108,6 +1142,7 @@ type quote { evo_legal_townid: Uuid evo_lessor_bank_detailsid: Uuid evo_lessor_bank_detailsidData: evo_bank_details + evo_limit_evopartner_approved: Decimal evo_loan_appraisalid: Uuid evo_logid: Uuid evo_loss_kv: Decimal @@ -1161,15 +1196,18 @@ type quote { evo_programsolution: Int evo_program_import_subsidyid: Uuid evo_program_import_subsidy_sum: Decimal + evo_promotion: [Int!] evo_pts_type: Int evo_purchases_participation: Boolean evo_question_credit_committees: [evo_question_credit_committee] evo_quotename: String evo_quotenumber: String + evo_raleation_arbitration_defendant_revenue: Decimal evo_rate: Decimal evo_rateid: Uuid evo_recalc_limit: Int evo_recalc_quoteid: Uuid + evo_receipts_amount: Decimal evo_redemption_graph: Boolean evo_regionid: Uuid evo_region_director_bonus: Decimal @@ -1178,6 +1216,10 @@ type quote { evo_registration: Boolean evo_registration_quote: Boolean evo_registration_regionid: Uuid + evo_relation_arbitration_claimant_revenue: Decimal + evo_relation_financial_loan: Decimal + evo_relation_financial_loan_all: Decimal + evo_relation_fssp_revenue: Decimal evo_report_year: Int evo_req_telematic: Int evo_req_telematicname: String @@ -1193,6 +1235,7 @@ type quote { evo_sale_without_nds: Boolean evo_seasons_type: Int evo_seats: Int + evo_statement_period: Int evo_statuscodeid: Uuid evo_statuscodeidData: evo_statuscode evo_statuscode_reason: String @@ -1482,6 +1525,8 @@ type evo_request_payment { evo_bank_detailsid: Uuid evo_bank_detailsidData: evo_bank_details evo_businessunitid: Uuid + evo_comment: String + evo_comment_1c: String evo_conditionid: Uuid evo_contractid: Uuid evo_contractidData: evo_contract @@ -1493,6 +1538,7 @@ type evo_request_payment { evo_director_systemuserid: Uuid evo_evobank_detailsid: Uuid evo_evofact_bank_code: String + evo_evofact_bank_detailsid: Uuid evo_evofact_payment_account: String evo_final_accept: Int evo_finegibddid: Uuid @@ -1614,6 +1660,7 @@ type evo_contract { evo_cession_opportunityid: Uuid evo_change_publish_date: DateTime evo_change_publish_plan_date: DateTime + evo_check_negativ_list: Int evo_check_scan_comment: String evo_check_scan_result: Int evo_claim_pledge_agreementid: Uuid @@ -1627,6 +1674,10 @@ type evo_contract { evo_contract_status_date_1c: DateTime evo_credit_pledge_agreementid: Uuid evo_cre_uuid: String + evo_cre_uuid_guarantee1: String + evo_cre_uuid_guarantee2: String + evo_cre_uuid_guarantee3: String + evo_cre_uuid_guarantee4: String evo_dateend: DateTime evo_date_of_pledge_claim: DateTime evo_date_of_pledge_leasobject: DateTime @@ -1663,6 +1714,7 @@ type evo_contract { evo_director_nsib_bonus: Decimal evo_discount_perc: Decimal evo_discount_supplier_currency: Decimal + evo_dkp_termination: Boolean evo_docdate: DateTime evo_docdate_dkp: DateTime evo_documents: [evo_document] @@ -1710,6 +1762,18 @@ type evo_contract { evo_graphs(statecode: Int): [evo_graph] evo_graph_irr: Decimal evo_graph_irr_actual: Decimal + evo_guarantee1_number: String + evo_guarantee2_number: String + evo_guarantee3_number: String + evo_guarantee4_number: String + evo_guarantor1_accountid: Uuid + evo_guarantor1_bank_detailsid: Uuid + evo_guarantor1_contactid: Uuid + evo_guarantor2_accountid: Uuid + evo_guarantor2_bank_detailsid: Uuid + evo_guarantor2_contactid: Uuid + evo_guarantor3_contactid: Uuid + evo_guarantor4_contactid: Uuid evo_help_card_addproductid: Uuid evo_help_card_addproductidData: evo_addproduct evo_help_card_addproduct_typeid: Uuid @@ -1724,6 +1788,8 @@ type evo_contract { evo_issue_place_addressid: Uuid evo_issue_without_pay: Boolean evo_issue_without_pay_comm: String + evo_izt_sale_type: Int + evo_last_data_transfer_to_bch_date: DateTime evo_last_formation_cre_date: DateTime evo_last_formation_cre_status: Int evo_last_payment_redemption: Boolean @@ -1742,6 +1808,7 @@ type evo_contract { evo_name: String evo_nds_in_price_supplier_currency: Decimal evo_nds_perc: Decimal + evo_nearest_payment_num: String evo_need_change_condition: Boolean evo_net_irr: Decimal evo_niatinception_msfo: Decimal @@ -1761,6 +1828,7 @@ type evo_contract { evo_payment_redemption: Int evo_payment_redemption_sum: Decimal evo_payment_redemption_sum_without_nds: Decimal + evo_paysum_before_act_date_fact: Decimal evo_paysum_before_act_date_plan: Decimal evo_period: Int evo_pi: Decimal @@ -1859,8 +1927,10 @@ type evo_external_system_request { evo_addproductid: Uuid evo_addressid: Uuid evo_agency_agreementid: Uuid + evo_by_whom_credit_history_trasfer: Int evo_contactid: Uuid evo_contractid: Uuid + evo_credit_history_event_date: DateTime evo_credreg_report_code: String evo_documentid: Uuid evo_emailid: Uuid @@ -2017,6 +2087,9 @@ type evo_tarif { evo_max_irr: Decimal evo_max_last_payment: Decimal evo_max_period: Decimal + evo_max_reward_fl: Decimal + evo_max_reward_summ: Decimal + evo_max_reward_ul: Decimal evo_min_decreasing_perc: Decimal evo_min_first_payment: Decimal evo_min_irr: Decimal @@ -2473,6 +2546,7 @@ type evo_addcontract { evo_irr_msfo_final: Decimal evo_irr_msfo_final2: Decimal evo_irr_plan: Decimal + evo_issue_twopay_change: Boolean evo_kasko_elt_id: String evo_kasko_elt_id_new: String evo_kasko_id_elt_calc: String @@ -2654,6 +2728,7 @@ type email { evo_process: Int modifiedon: DateTime regardingobjectid_account: Uuid + regardingobjectid_evo_act_tmc: Uuid regardingobjectid_evo_addcontract: Uuid regardingobjectid_evo_contract: Uuid regardingobjectid_evo_debtwork_contract: Uuid @@ -2662,6 +2737,7 @@ type email { regardingobjectid_evo_insurance_policyData: evo_insurance_policy regardingobjectid_evo_letter: Uuid regardingobjectid_evo_list: Uuid + regardingobjectid_evo_tmc: Uuid regardingobjectid_incident: Uuid regardingobjectid_opportunity: Uuid statecode: Int @@ -2964,6 +3040,7 @@ type evo_question_credit_committee { evo_accountid: Uuid evo_confluence_file_referenceid: String evo_description_general_solution: String + evo_name: String evo_opportunityid: Uuid evo_ownerid_systemuser: Uuid evo_process_for_approvalid: Uuid @@ -2989,6 +3066,7 @@ type evo_parking { evo_email: String evo_name: String evo_parkingid: Uuid + evo_parking_addressid: Uuid evo_storage: String modifiedon: DateTime toObjectString: String @@ -3049,6 +3127,8 @@ type evo_systemparameters { evo_elt_login: String evo_elt_pass: String evo_entityrecord_url_template: String + evo_insurance_period_web: String + evo_izt_systemuserid: Uuid evo_min_reward_top_boss: Decimal evo_necessary_signatory_systemuserid: Uuid evo_necessary_signatory_systemuseridData: systemuser @@ -3262,6 +3342,7 @@ type evo_insurance_policy { evo_create_contract_elt: Boolean evo_create_period_status: Int evo_id: String + evo_individual_insurance: Boolean evo_insurance_periods(statecode: Int): [evo_insurance_period] evo_insurance_policyid: Uuid evo_insurer_accountid: Uuid @@ -3327,11 +3408,15 @@ type evo_edo { evo_edo_statusname: String evo_edo_type: Int evo_edo_typeename: String + evo_external_supplier_codeid: Uuid evo_formalized: Boolean evo_invite_crm_status: Int evo_invite_crm_statusname: String evo_legal_status: Int + evo_lk: Boolean evo_name: String + evo_powerattorneyid: Uuid + evo_powerattorney_evo_number: String evo_project_documenttypeid: Uuid evo_signer_systemuserid: Uuid evo_sign_date: DateTime @@ -3523,6 +3608,7 @@ input quoteInput { evo_age_drivers: Int evo_another_payments: Decimal evo_approved_first_payment: Decimal + evo_average_monthly_revenue: Decimal evo_balance_holder: Int evo_baseproductid: Uuid evo_base_bonus: Decimal @@ -3542,6 +3628,8 @@ input quoteInput { evo_category_tr: Int evo_check_average_result: Int evo_check_ins_result: Int + evo_claims_legal_entity: Decimal + evo_claims_legal_entity_plaintiff: Decimal evo_client_riskid: Uuid evo_client_typeid: Uuid evo_coefficien_bonus_reducttion: Decimal @@ -3593,6 +3681,7 @@ input quoteInput { evo_evokasko_insurer_accountid: Uuid evo_evokasko_price: Decimal evo_exp_drivers: Int + evo_financial_loan: Decimal evo_financing_with_own_funds: Boolean evo_fingap_accountid: Uuid evo_fingap_bonus_sum: Decimal @@ -3616,12 +3705,14 @@ input quoteInput { evo_first_payment_rub: Decimal evo_first_payment_rub_without_subsidy: Decimal evo_franchise: Decimal + evo_fssp_legal_entity: Decimal evo_fuel: Boolean evo_gender: Int evo_gps_brandid: Uuid evo_gps_modelid: Uuid evo_graph_irr: Decimal evo_graph_type: Int + evo_group_companies_accountid: Uuid evo_guarantee_fl: Boolean evo_guarantee_ul: Boolean evo_guarantor1_another_peyments: Decimal @@ -3679,6 +3770,7 @@ input quoteInput { evo_legal_regionid: Uuid evo_legal_townid: Uuid evo_lessor_bank_detailsid: Uuid + evo_limit_evopartner_approved: Decimal evo_loan_appraisalid: Uuid evo_logid: Uuid evo_loss_kv: Decimal @@ -3731,14 +3823,17 @@ input quoteInput { evo_programsolution: Int evo_program_import_subsidyid: Uuid evo_program_import_subsidy_sum: Decimal + evo_promotion: [Int!] evo_pts_type: Int evo_purchases_participation: Boolean evo_quotename: String evo_quotenumber: String + evo_raleation_arbitration_defendant_revenue: Decimal evo_rate: Decimal evo_rateid: Uuid evo_recalc_limit: Int evo_recalc_quoteid: Uuid + evo_receipts_amount: Decimal evo_redemption_graph: Boolean evo_regionid: Uuid evo_region_director_bonus: Decimal @@ -3747,6 +3842,10 @@ input quoteInput { evo_registration: Boolean evo_registration_quote: Boolean evo_registration_regionid: Uuid + evo_relation_arbitration_claimant_revenue: Decimal + evo_relation_financial_loan: Decimal + evo_relation_financial_loan_all: Decimal + evo_relation_fssp_revenue: Decimal evo_report_year: Int evo_req_telematic: Int evo_req_telematic_accept: Int @@ -3760,6 +3859,7 @@ input quoteInput { evo_sale_without_nds: Boolean evo_seasons_type: Int evo_seats: Int + evo_statement_period: Int evo_statuscodeid: Uuid evo_statuscode_reason: String evo_subsidyid: Uuid @@ -3819,6 +3919,7 @@ input evo_leasingobjectInput { evo_delivery_time: Int evo_driving_axle: String evo_ecological_class: Int + evo_engine_hours: Int evo_engine_model: String evo_engine_power: Decimal evo_engine_power_kvt: Decimal @@ -3830,6 +3931,7 @@ input evo_leasingobjectInput { evo_gos_akt: String evo_guarantee: String evo_insured_contactid: Uuid + evo_izt_accountid: Uuid evo_leasingobjectid: Uuid evo_leasingobject_specification: String evo_leasingobject_typeid: Uuid @@ -3840,6 +3942,7 @@ input evo_leasingobjectInput { evo_max_mass: Decimal evo_max_speed: Decimal evo_mileage: Decimal + evo_mileage_izt: Int evo_modelid: Uuid evo_motor_power_1: String evo_name: String @@ -3864,6 +3967,7 @@ input evo_leasingobjectInput { evo_registration_regionid: Uuid evo_reg_date: DateTime evo_result_business_valuation: Boolean + evo_sales_price_fact: Decimal evo_seats: Int evo_storage: String evo_sts_number: String @@ -3895,11 +3999,15 @@ input leadInput { evo_failure: Boolean evo_fin_department_accountid: Uuid evo_firstname: String + evo_getdate: DateTime evo_inn: String evo_kpp: String evo_lastname: String evo_new_client: String evo_opportunityid: Uuid + evo_phonecall_systemuserid: Uuid + evo_planaction: String + evo_plandate: DateTime evo_scheduled_callid: Uuid evo_statuscodeid: Uuid evo_supplier_accountid: Uuid @@ -3908,6 +4016,7 @@ input leadInput { evo_utm_medium: String evo_utm_source: String evo_utm_term: String + evo_workhistory: String fullname: String jobtitle: String leadid: Uuid diff --git a/apps/web/graphql/crm.types.ts b/apps/web/graphql/crm.types.ts index 7b5b35f..c0ab1d5 100644 --- a/apps/web/graphql/crm.types.ts +++ b/apps/web/graphql/crm.types.ts @@ -185,6 +185,7 @@ export type Evo_LeasingobjectInput = { evo_delivery_time?: InputMaybe; evo_driving_axle?: InputMaybe; evo_ecological_class?: InputMaybe; + evo_engine_hours?: InputMaybe; evo_engine_model?: InputMaybe; evo_engine_power?: InputMaybe; evo_engine_power_kvt?: InputMaybe; @@ -196,6 +197,7 @@ export type Evo_LeasingobjectInput = { evo_gosnumber?: InputMaybe; evo_guarantee?: InputMaybe; evo_insured_contactid?: InputMaybe; + evo_izt_accountid?: InputMaybe; evo_leasingobject_specification?: InputMaybe; evo_leasingobject_typeid?: InputMaybe; evo_leasingobjectid?: InputMaybe; @@ -206,6 +208,7 @@ export type Evo_LeasingobjectInput = { evo_max_speed?: InputMaybe; evo_maximum_percentage_av?: InputMaybe; evo_mileage?: InputMaybe; + evo_mileage_izt?: InputMaybe; evo_modelid?: InputMaybe; evo_motor_power_1?: InputMaybe; evo_name?: InputMaybe; @@ -230,6 +233,7 @@ export type Evo_LeasingobjectInput = { evo_registration?: InputMaybe; evo_registration_regionid?: InputMaybe; evo_result_business_valuation?: InputMaybe; + evo_sales_price_fact?: InputMaybe; evo_seats?: InputMaybe; evo_storage?: InputMaybe; evo_sts_number?: InputMaybe; @@ -352,11 +356,15 @@ export type LeadInput = { evo_failure?: InputMaybe; evo_fin_department_accountid?: InputMaybe; evo_firstname?: InputMaybe; + evo_getdate?: InputMaybe; evo_inn?: InputMaybe; evo_kpp?: InputMaybe; evo_lastname?: InputMaybe; evo_new_client?: InputMaybe; evo_opportunityid?: InputMaybe; + evo_phonecall_systemuserid?: InputMaybe; + evo_planaction?: InputMaybe; + evo_plandate?: InputMaybe; evo_scheduled_callid?: InputMaybe; evo_statuscodeid?: InputMaybe; evo_supplier_accountid?: InputMaybe; @@ -365,6 +373,7 @@ export type LeadInput = { evo_utm_medium?: InputMaybe; evo_utm_source?: InputMaybe; evo_utm_term?: InputMaybe; + evo_workhistory?: InputMaybe; fullname?: InputMaybe; jobtitle?: InputMaybe; leadid?: InputMaybe; @@ -401,6 +410,7 @@ export type QuoteInput = { evo_agent_reward_total?: InputMaybe; evo_another_payments?: InputMaybe; evo_approved_first_payment?: InputMaybe; + evo_average_monthly_revenue?: InputMaybe; evo_balance_holder?: InputMaybe; evo_base_bonus?: InputMaybe; evo_base_calc_pay?: InputMaybe; @@ -420,6 +430,8 @@ export type QuoteInput = { evo_category_tr?: InputMaybe; evo_check_average_result?: InputMaybe; evo_check_ins_result?: InputMaybe; + evo_claims_legal_entity?: InputMaybe; + evo_claims_legal_entity_plaintiff?: InputMaybe; evo_client_riskid?: InputMaybe; evo_client_typeid?: InputMaybe; evo_coefficien_bonus_reducttion?: InputMaybe; @@ -476,6 +488,7 @@ export type QuoteInput = { evo_fin_department_reward_summ?: InputMaybe; evo_fin_department_reward_tech?: InputMaybe; evo_fin_department_reward_total?: InputMaybe; + evo_financial_loan?: InputMaybe; evo_financing_with_own_funds?: InputMaybe; evo_fingap_accountid?: InputMaybe; evo_fingap_bonus_sum?: InputMaybe; @@ -494,12 +507,14 @@ export type QuoteInput = { evo_first_payment_rub?: InputMaybe; evo_first_payment_rub_without_subsidy?: InputMaybe; evo_franchise?: InputMaybe; + evo_fssp_legal_entity?: InputMaybe; evo_fuel?: InputMaybe; evo_gender?: InputMaybe; evo_gps_brandid?: InputMaybe; evo_gps_modelid?: InputMaybe; evo_graph_irr?: InputMaybe; evo_graph_type?: InputMaybe; + evo_group_companies_accountid?: InputMaybe; evo_guarantee_fl?: InputMaybe; evo_guarantee_ul?: InputMaybe; evo_guarantor1_another_peyments?: InputMaybe; @@ -557,6 +572,7 @@ export type QuoteInput = { evo_legal_regionid?: InputMaybe; evo_legal_townid?: InputMaybe; evo_lessor_bank_detailsid?: InputMaybe; + evo_limit_evopartner_approved?: InputMaybe; evo_loan_appraisalid?: InputMaybe; evo_logid?: InputMaybe; evo_loss_kv?: InputMaybe; @@ -609,14 +625,17 @@ export type QuoteInput = { evo_program_import_subsidy_sum?: InputMaybe; evo_program_import_subsidyid?: InputMaybe; evo_programsolution?: InputMaybe; + evo_promotion?: InputMaybe>; evo_pts_type?: InputMaybe; evo_purchases_participation?: InputMaybe; evo_quotename?: InputMaybe; evo_quotenumber?: InputMaybe; + evo_raleation_arbitration_defendant_revenue?: InputMaybe; evo_rate?: InputMaybe; evo_rateid?: InputMaybe; evo_recalc_limit?: InputMaybe; evo_recalc_quoteid?: InputMaybe; + evo_receipts_amount?: InputMaybe; evo_redemption_graph?: InputMaybe; evo_region_director_bonus?: InputMaybe; evo_region_director_fingap_bonus?: InputMaybe; @@ -625,6 +644,10 @@ export type QuoteInput = { evo_registration?: InputMaybe; evo_registration_quote?: InputMaybe; evo_registration_regionid?: InputMaybe; + evo_relation_arbitration_claimant_revenue?: InputMaybe; + evo_relation_financial_loan?: InputMaybe; + evo_relation_financial_loan_all?: InputMaybe; + evo_relation_fssp_revenue?: InputMaybe; evo_report_year?: InputMaybe; evo_req_telematic?: InputMaybe; evo_req_telematic_accept?: InputMaybe; @@ -638,6 +661,7 @@ export type QuoteInput = { evo_sale_without_nds?: InputMaybe; evo_seasons_type?: InputMaybe; evo_seats?: InputMaybe; + evo_statement_period?: InputMaybe; evo_statuscode_reason?: InputMaybe; evo_statuscodeid?: InputMaybe; evo_subsidy_summ?: InputMaybe; @@ -736,7 +760,7 @@ export type GetQuoteQueryVariables = Exact<{ }>; -export type GetQuoteQuery = { __typename?: 'Query', quote: { __typename?: 'quote', evo_baseproductid: string | null, evo_one_year_insurance: boolean | null, evo_min_change_price: number | null, evo_max_price_change: number | null, evo_discount_supplier_currency: number | null, evo_equip_price: number | null, evo_program_import_subsidy_sum: number | null, evo_nds_in_price_supplier_currency: number | null, evo_supplier_currency_price: number | null, evo_approved_first_payment: number | null, evo_recalc_limit: number | null, evo_max_mass: number | null, evo_seats: number | null, evo_year: number | null, evo_last_payment_perc: number | null, evo_maximum_percentage_av: number | null, evo_untype_insurance: boolean | null, evo_percent_subsidy: number | null } | null }; +export type GetQuoteQuery = { __typename?: 'Query', quote: { __typename?: 'quote', evo_baseproductid: string | null, evo_one_year_insurance: boolean | null, evo_min_change_price: number | null, evo_max_price_change: number | null, evo_discount_supplier_currency: number | null, evo_equip_price: number | null, evo_program_import_subsidy_sum: number | null, evo_nds_in_price_supplier_currency: number | null, evo_supplier_currency_price: number | null, evo_approved_first_payment: number | null, evo_recalc_limit: number | null, evo_max_mass: number | null, evo_seats: number | null, evo_year: number | null, evo_last_payment_perc: number | null, evo_maximum_percentage_av: number | null, evo_untype_insurance: boolean | null, evo_percent_subsidy: number | null, evo_programsolution: number | null, evo_kasko_payer: number | null, evo_promotion: Array | null } | null }; export type GetTarifsQueryVariables = Exact<{ currentDate: InputMaybe; @@ -1179,7 +1203,7 @@ export const GetLeadDocument = {"kind":"Document","definitions":[{"kind":"Operat export const GetOpportunityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetOpportunity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"opportunityid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Uuid"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"opportunity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"opportunityid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"opportunityid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_leadid"}},{"kind":"Field","name":{"kind":"Name","value":"accountidData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_address_legalidData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_region_fias_id"}},{"kind":"Field","name":{"kind":"Name","value":"evo_city_fias_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"evo_okved"}}]}}]}}]}}]} as unknown as DocumentNode; export const GetOpportunitiesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetOpportunities"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"domainname"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"opportunities"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"owner_domainname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"domainname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"label"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","alias":{"kind":"Name","value":"value"},"name":{"kind":"Name","value":"opportunityid"}}]}}]}}]} as unknown as DocumentNode; export const GetQuotesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetQuotes"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"leadid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Uuid"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"quotes"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"evo_leadid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"leadid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"label"},"name":{"kind":"Name","value":"evo_quotename"}},{"kind":"Field","alias":{"kind":"Name","value":"value"},"name":{"kind":"Name","value":"quoteid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_recalc_limit"}},{"kind":"Field","name":{"kind":"Name","value":"evo_statuscodeidData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"evo_purchases_participation"}}]}}]}}]} as unknown as DocumentNode; -export const GetQuoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetQuote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quoteId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Uuid"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"quote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"quoteId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quoteId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_baseproductid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_one_year_insurance"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_change_price"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_price_change"}},{"kind":"Field","name":{"kind":"Name","value":"evo_discount_supplier_currency"}},{"kind":"Field","name":{"kind":"Name","value":"evo_equip_price"}},{"kind":"Field","name":{"kind":"Name","value":"evo_program_import_subsidy_sum"}},{"kind":"Field","name":{"kind":"Name","value":"evo_nds_in_price_supplier_currency"}},{"kind":"Field","name":{"kind":"Name","value":"evo_supplier_currency_price"}},{"kind":"Field","name":{"kind":"Name","value":"evo_approved_first_payment"}},{"kind":"Field","name":{"kind":"Name","value":"evo_recalc_limit"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_mass"}},{"kind":"Field","name":{"kind":"Name","value":"evo_seats"}},{"kind":"Field","name":{"kind":"Name","value":"evo_year"}},{"kind":"Field","name":{"kind":"Name","value":"evo_last_payment_perc"}},{"kind":"Field","name":{"kind":"Name","value":"evo_maximum_percentage_av"}},{"kind":"Field","name":{"kind":"Name","value":"evo_untype_insurance"}},{"kind":"Field","name":{"kind":"Name","value":"evo_percent_subsidy"}}]}}]}}]} as unknown as DocumentNode; +export const GetQuoteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetQuote"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"quoteId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Uuid"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"quote"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"quoteId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"quoteId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_baseproductid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_one_year_insurance"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_change_price"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_price_change"}},{"kind":"Field","name":{"kind":"Name","value":"evo_discount_supplier_currency"}},{"kind":"Field","name":{"kind":"Name","value":"evo_equip_price"}},{"kind":"Field","name":{"kind":"Name","value":"evo_program_import_subsidy_sum"}},{"kind":"Field","name":{"kind":"Name","value":"evo_nds_in_price_supplier_currency"}},{"kind":"Field","name":{"kind":"Name","value":"evo_supplier_currency_price"}},{"kind":"Field","name":{"kind":"Name","value":"evo_approved_first_payment"}},{"kind":"Field","name":{"kind":"Name","value":"evo_recalc_limit"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_mass"}},{"kind":"Field","name":{"kind":"Name","value":"evo_seats"}},{"kind":"Field","name":{"kind":"Name","value":"evo_year"}},{"kind":"Field","name":{"kind":"Name","value":"evo_last_payment_perc"}},{"kind":"Field","name":{"kind":"Name","value":"evo_maximum_percentage_av"}},{"kind":"Field","name":{"kind":"Name","value":"evo_untype_insurance"}},{"kind":"Field","name":{"kind":"Name","value":"evo_percent_subsidy"}},{"kind":"Field","name":{"kind":"Name","value":"evo_programsolution"}},{"kind":"Field","name":{"kind":"Name","value":"evo_kasko_payer"}},{"kind":"Field","name":{"kind":"Name","value":"evo_promotion"}}]}}]}}]} as unknown as DocumentNode; export const GetTarifsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTarifs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentDate"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_tarifs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"statecode"},"value":{"kind":"IntValue","value":"0"}},{"kind":"Argument","name":{"kind":"Name","value":"evo_datefrom_param"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentDate"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"evo_dateto_param"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentDate"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"label"},"name":{"kind":"Name","value":"evo_name"}},{"kind":"Field","alias":{"kind":"Name","value":"value"},"name":{"kind":"Name","value":"evo_tarifid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_tarifid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_baseproductid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_period"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_period"}},{"kind":"Field","name":{"kind":"Name","value":"evo_delivery_time"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_first_payment"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_first_payment"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_last_payment"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_last_payment"}},{"kind":"Field","name":{"kind":"Name","value":"evo_used"}},{"kind":"Field","name":{"kind":"Name","value":"evo_leasingobject_types"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_leasingobject_typeid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"evo_pl_use_type"}}]}}]}}]} as unknown as DocumentNode; export const GetTarifDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTarif"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tarifId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Uuid"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_tarif"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"evo_tarifid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tarifId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_irr"}},{"kind":"Field","name":{"kind":"Name","value":"evo_graphtype_exception"}},{"kind":"Field","name":{"kind":"Name","value":"evo_seasons_type_exception"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_decreasing_perc"}},{"kind":"Field","name":{"kind":"Name","value":"evo_min_irr"}},{"kind":"Field","name":{"kind":"Name","value":"evo_cut_irr_with_bonus_coefficient"}},{"kind":"Field","name":{"kind":"Name","value":"evo_max_irr"}},{"kind":"Field","name":{"kind":"Name","value":"evo_rates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_datefrom"}},{"kind":"Field","name":{"kind":"Name","value":"evo_rateid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"evo_irr_plan"}},{"kind":"Field","name":{"kind":"Name","value":"evo_margin_min"}}]}}]}}]} as unknown as DocumentNode; export const GetRatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetRates"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentDate"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_rates"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"statecode"},"value":{"kind":"IntValue","value":"0"}},{"kind":"Argument","name":{"kind":"Name","value":"evo_datefrom_param"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"lte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentDate"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"evo_dateto_param"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"gte"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentDate"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"label"},"name":{"kind":"Name","value":"evo_name"}},{"kind":"Field","alias":{"kind":"Name","value":"value"},"name":{"kind":"Name","value":"evo_rateid"}},{"kind":"Field","name":{"kind":"Name","value":"evo_id"}},{"kind":"Field","name":{"kind":"Name","value":"evo_tarifs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"evo_tarifid"}}]}},{"kind":"Field","name":{"kind":"Name","value":"evo_rateid"}}]}}]}}]} as unknown as DocumentNode; diff --git a/apps/web/process/insurance/validation.ts b/apps/web/process/insurance/validation.ts index 46a4c3c..9566a62 100644 --- a/apps/web/process/insurance/validation.ts +++ b/apps/web/process/insurance/validation.ts @@ -56,6 +56,23 @@ export function createValidationSchema({ apolloClient }: ValidationContext) { path: ['insurance'], }); } + + const { kasko } = insurance.values; + + if ( + recalcWithRevision && + quote?.evo_promotion && + [100_000_000, 100_000_001].some((x) => quote.evo_promotion?.includes(x)) && + quote.evo_programsolution && + quote.evo_programsolution === 100_000_000 && + quote.evo_kasko_payer !== kasko.insured + ) { + ctx.addIssue({ + code: z.ZodIssueCode.custom, + message: 'По акции после одобрения нельзя менять Плательщика по КАСКО', + path: ['insurance'], + }); + } } (['osago', 'kasko'] as Insurance.Keys[]).forEach((key) => {