diff --git a/apps/storefront/src/pages/quote/QuoteDetail.tsx b/apps/storefront/src/pages/quote/QuoteDetail.tsx index 3b9db8e7..7b542ac3 100644 --- a/apps/storefront/src/pages/quote/QuoteDetail.tsx +++ b/apps/storefront/src/pages/quote/QuoteDetail.tsx @@ -235,22 +235,13 @@ function QuoteDetail() { const fetchPdfUrl = async (bool: boolean) => { setIsRequestLoading(true) - const { - id, - createdAt, - currency: { currencyExchangeRate, token, decimalPlaces }, - } = quoteDetail + const { id, createdAt } = quoteDetail try { const data = { quoteId: +id, createdAt, isPreview: bool, lang: 'en', - currency: { - currencyExchangeRate, - token, - decimalPlaces, - }, } const fn = +role === 99 ? exportBcQuotePdf : exportB2BQuotePdf diff --git a/apps/storefront/src/shared/service/b2b/graphql/quote.ts b/apps/storefront/src/shared/service/b2b/graphql/quote.ts index 0353bc84..69f3e0c8 100644 --- a/apps/storefront/src/shared/service/b2b/graphql/quote.ts +++ b/apps/storefront/src/shared/service/b2b/graphql/quote.ts @@ -292,15 +292,13 @@ const exportQuotePdf = (data: { createdAt: number isPreview: boolean lang: string - currency: object }) => `mutation{ quoteFrontendPdf( quoteId: ${data.quoteId}, storeHash: "${storeHash}", createdAt: ${data.createdAt}, lang: "${data.lang}", - isPreview: ${data.isPreview}, - currency: ${convertObjectToGraphql(data.currency || {})}, + isPreview: ${data.isPreview} ) { url, content, @@ -418,7 +416,6 @@ export const exportB2BQuotePdf = (data: { createdAt: number isPreview: boolean lang: string - currency: object }): CustomFieldItems => B3Request.graphqlB2B({ query: exportQuotePdf(data), @@ -429,7 +426,6 @@ export const exportBcQuotePdf = (data: { createdAt: number isPreview: boolean lang: string - currency: object }): CustomFieldItems => B3Request.graphqlB2B({ query: exportQuotePdf(data),