Skip to content

Commit

Permalink
Revert "feat: quote shipping bun1306 (#861)"
Browse files Browse the repository at this point in the history
This reverts commit 52803a7e55b509e37a417eabca6e055926a3f358.
  • Loading branch information
BrianJiang2021 authored and libruce committed Dec 27, 2023
1 parent c465ee2 commit d95dfb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
38 changes: 2 additions & 36 deletions apps/storefront/src/pages/quote/components/QuoteDetailSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function QuoteDetailSummary(props: QuoteDetailSummaryProps) {
{priceFormat(getCurrentPrice(quotedSubtotal, quoteDetailTax))}
</Typography>
</Grid>
{quoteDetail?.shippingMethod?.id ? (
{+status !== 1 || quoteDetail?.shippingMethod?.id ? (
<>
<Grid
container
Expand All @@ -121,9 +121,7 @@ export default function QuoteDetailSummary(props: QuoteDetailSummaryProps) {
}}
>
<Typography>
{`${b3Lang('quoteDetail.summary.shipping')}(${
quoteDetail?.shippingMethod?.description || ''
})`}
{b3Lang('quoteDetail.summary.shipping')}
</Typography>
<Typography>{priceFormat(+shipping)}</Typography>
</Grid>
Expand All @@ -139,38 +137,6 @@ export default function QuoteDetailSummary(props: QuoteDetailSummaryProps) {
</Grid>
</>
) : null}

{quoteDetail?.salesRepEmail &&
!quoteDetail?.shippingMethod?.id &&
(+status === 1 || +status === 5) ? (
<>
<Grid
container
justifyContent="space-between"
sx={{
margin: '4px 0',
flexWrap: 'nowrap',
}}
>
<Typography>
{`${b3Lang('quoteDetail.summary.shipping')}(${b3Lang(
'quoteDetail.summary.quoteCheckout'
)})`}
</Typography>
<Typography>TBD</Typography>
</Grid>
<Grid
container
justifyContent="space-between"
sx={{
margin: '4px 0',
}}
>
<Typography>{b3Lang('quoteDetail.summary.tax')}</Typography>
<Typography>TBD</Typography>
</Grid>
</>
) : null}
<Grid
container
justifyContent="space-between"
Expand Down
1 change: 0 additions & 1 deletion packages/lang/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@
"quoteDetail.header.print": "Print",
"quoteDetail.header.downloadPDF": "DownLoad pdf",
"quoteDetail.summary.quoteSummary": "Quote summary",
"quoteDetail.summary.quoteCheckout": "Customer choice at checkout",
"quoteDetail.summary.originalSubtotal": "Original subtotal",
"quoteDetail.summary.discountAmount": "Discount amount",
"quoteDetail.summary.quotedSubtotal": "Quoted subtotal",
Expand Down

0 comments on commit d95dfb4

Please sign in to comment.