From a5b3616d21d5c6cbda118e24cec5b92edbbe7311 Mon Sep 17 00:00:00 2001 From: b3aton Date: Mon, 20 Mar 2023 09:48:55 +0800 Subject: [PATCH] fix: quick order to quote issues --- .../src/pages/quickorder/components/QuickOrderFooter.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/storefront/src/pages/quickorder/components/QuickOrderFooter.tsx b/apps/storefront/src/pages/quickorder/components/QuickOrderFooter.tsx index 3c01695b..6e5e33cb 100644 --- a/apps/storefront/src/pages/quickorder/components/QuickOrderFooter.tsx +++ b/apps/storefront/src/pages/quickorder/components/QuickOrderFooter.tsx @@ -333,12 +333,14 @@ const QuickOrderFooter = (props: QuickOrderFooterProps) => { productsWithSku.forEach((product: ListItemProps) => { const { node: { + basePrice, optionList, variantSku, productId, productName, quantity, variantId, + tax, }, } = product @@ -359,8 +361,8 @@ const QuickOrderFooter = (props: QuickOrderFooterProps) => { quantity: +quantity || 1, optionList: JSON.stringify(optionsList), productId, - basePrice: variantItem.bc_calculated_price.as_entered, - tax: variantItem.bc_calculated_price.tax_inclusive - variantItem.bc_calculated_price.tax_exclusive, + basePrice, + tax, }, }