diff --git a/src/client/Elements/Download.jsx b/src/client/Elements/Download.jsx index b603919..34d6b96 100644 --- a/src/client/Elements/Download.jsx +++ b/src/client/Elements/Download.jsx @@ -6,6 +6,7 @@ const Download = ({ status, url, text, icon: Icon, ...props }) => { return ( { query($quoteid: Uuid!) { quote(quoteId: $quoteid) { offerprintform + offerprintformapi evo_quotename } } @@ -78,10 +79,10 @@ export default async () => { content: `КП ${quote?.evo_quotename || ''} создано!`, }); - if (quote?.offerprintform) { + if (quote?.offerprintformapi) { calculationUrls.setUrl({ name: 'kpUrl', - url: quote.offerprintform, + url: '/proxy/crmgraphql' + quote.offerprintformapi, }); } } diff --git a/src/core/types/Entities/crmEntities.ts b/src/core/types/Entities/crmEntities.ts index 98299a8..95e06c0 100644 --- a/src/core/types/Entities/crmEntities.ts +++ b/src/core/types/Entities/crmEntities.ts @@ -55,6 +55,7 @@ export interface IQuote { evo_statuscode?: IEvoStatusCode; evo_quotename?: string; offerprintform?: string; + offerprintformapi?: string; evo_object_count?: number; evo_osago_accountid?: string; evo_kasko_accountid?: string;