diff --git a/apps/web/process/insurance/validation.ts b/apps/web/process/insurance/validation.ts index cbfa5ec..8feff9f 100644 --- a/apps/web/process/insurance/validation.ts +++ b/apps/web/process/insurance/validation.ts @@ -36,7 +36,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) { brand: brandId, fingap: fingapRisks, partialVAT, - product: productId, }, ctx ) => { @@ -215,19 +214,7 @@ export function createValidationSchema({ apolloClient }: ValidationContext) { } } - let evo_baseproduct: CRMTypes.GetProductQuery['evo_baseproduct'] = null; - if (productId) { - const { data } = await apolloClient.query({ - query: CRMTypes.GetProductDocument, - variables: { productId }, - }); - ({ evo_baseproduct } = data); - } - - if ( - (partialVAT || evo_baseproduct?.evo_sale_without_nds) && - insurance.values.kasko.insured === 100_000_001 - ) { + if (partialVAT && insurance.values.kasko.insured === 100_000_001) { ctx.addIssue({ code: z.ZodIssueCode.custom, message: 'При частичном НДС нельзя включать КАСКО в график',