diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/model/vo/CompanyOverviewVO.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/model/vo/CompanyOverviewVO.java index 89e22081..82e28a5c 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/model/vo/CompanyOverviewVO.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/model/vo/CompanyOverviewVO.java @@ -68,16 +68,16 @@ public class CompanyOverviewVO { private List shopEfficiencyQuadrants; /** - * 多店铺数据横向对比(16维度) + * 多店铺数据横向对比(包含合计行和店铺列表) */ @Schema(description = "多店铺数据横向对比") - private List shopComparisons; + private ShopOverview shopComparisons; /** - * 多品类数据横向对比 + * 多品类数据横向对比(包含合计行和品类列表) */ @Schema(description = "多品类数据横向对比") - private List categoryComparisons; + private CategoryOverview categoryComparisons; /** * 平台维度概览(包含合计行和平台列表) @@ -92,6 +92,32 @@ public class CompanyOverviewVO { private List platforms; } + /** + * 多店铺概览(包含合计行和店铺列表) + */ + @Data + @Schema(description = "多店铺概览") + public static class ShopOverview { + @Schema(description = "合计行") + private ShopComparison total; + + @Schema(description = "各店铺对比列表") + private List shops; + } + + /** + * 多品类概览(包含合计行和品类列表) + */ + @Data + @Schema(description = "多品类概览") + public static class CategoryOverview { + @Schema(description = "合计行") + private CategoryComparison total; + + @Schema(description = "各品类对比列表") + private List categories; + } + /** * 平台维度汇总 */ diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/service/impl/CompanyOverviewServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/service/impl/CompanyOverviewServiceImpl.java index 41daa4e0..8476657a 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/service/impl/CompanyOverviewServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/overview/service/impl/CompanyOverviewServiceImpl.java @@ -215,14 +215,14 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService { overviewVO.setShopEfficiencyQuadrants(shopEfficiencyQuadrants); // 9. 多店铺数据横向对比 - List shopComparisons = calculateShopComparisons( + CompanyOverviewVO.ShopOverview shopOverview = calculateShopComparisons( shops, orders, promotionFees, brushOrders, refundStatusId, companyId, startDate, endDate); - overviewVO.setShopComparisons(shopComparisons); + overviewVO.setShopComparisons(shopOverview); // 10. 多品类数据横向对比 - List categoryComparisons = calculateCategoryComparisons( + CompanyOverviewVO.CategoryOverview categoryOverview = calculateCategoryComparisons( orders, promotionFees, brushOrders, refundStatusId, companyId, startDate, endDate); - overviewVO.setCategoryComparisons(categoryComparisons); + overviewVO.setCategoryComparisons(categoryOverview); // 11. 平台维度汇总 CompanyOverviewVO.PlatformOverview platformOverview = calculatePlatformSummary( @@ -457,7 +457,7 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService { /** * 计算多店铺数据横向对比 */ - private List calculateShopComparisons( + private CompanyOverviewVO.ShopOverview calculateShopComparisons( List shops, List orders, List promotionFees, List brushOrders, Long refundStatusId, Long companyId, LocalDate startDate, LocalDate endDate) { List comparisons = new ArrayList<>(); @@ -616,7 +616,88 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService { // 按销售额降序排序 comparisons.sort(Comparator.comparing(CompanyOverviewVO.ShopComparison::getSalesAmount).reversed()); - return comparisons; + + // 计算合计行 + CompanyOverviewVO.ShopComparison total = computeShopTotal(comparisons); + + // 封装为 ShopOverview + CompanyOverviewVO.ShopOverview overview = new CompanyOverviewVO.ShopOverview(); + overview.setTotal(total); + overview.setShops(comparisons); + return overview; + } + + /** + * 计算店铺对比的合计行 + */ + private CompanyOverviewVO.ShopComparison computeShopTotal(List shops) { + BigDecimal totalSales = BigDecimal.ZERO; + int totalOrders = 0; + BigDecimal totalTargetAmount = BigDecimal.ZERO; + int totalTargetOrders = 0; + BigDecimal totalProductCost = BigDecimal.ZERO; + BigDecimal totalShippingCost = BigDecimal.ZERO; + BigDecimal totalOtherCost = BigDecimal.ZERO; + BigDecimal totalRefund = BigDecimal.ZERO; + BigDecimal totalPromoFee = BigDecimal.ZERO; + BigDecimal totalBrushFee = BigDecimal.ZERO; + + for (CompanyOverviewVO.ShopComparison s : shops) { + totalSales = totalSales.add(s.getSalesAmount() != null ? s.getSalesAmount() : BigDecimal.ZERO); + totalOrders += s.getOrderCount() != null ? s.getOrderCount() : 0; + totalTargetAmount = totalTargetAmount.add(s.getTargetAmount() != null ? s.getTargetAmount() : BigDecimal.ZERO); + totalTargetOrders += s.getTargetOrderCount() != null ? s.getTargetOrderCount() : 0; + totalProductCost = totalProductCost.add(s.getProductCost() != null ? s.getProductCost() : BigDecimal.ZERO); + totalShippingCost = totalShippingCost.add(s.getShippingCost() != null ? s.getShippingCost() : BigDecimal.ZERO); + totalOtherCost = totalOtherCost.add(s.getOtherCost() != null ? s.getOtherCost() : BigDecimal.ZERO); + totalRefund = totalRefund.add(s.getRefundAmount() != null ? s.getRefundAmount() : BigDecimal.ZERO); + totalPromoFee = totalPromoFee.add(s.getTotalPromotionFee() != null ? s.getTotalPromotionFee() : BigDecimal.ZERO); + totalBrushFee = totalBrushFee.add(s.getBrushFee() != null ? s.getBrushFee() : BigDecimal.ZERO); + } + + BigDecimal avgOrderValue = totalOrders > 0 + ? totalSales.divide(new BigDecimal(totalOrders), 2, RoundingMode.HALF_UP) + : BigDecimal.ZERO; + BigDecimal totalCost = totalProductCost.add(totalShippingCost).add(totalOtherCost); + BigDecimal profitBeforeTax = totalSales.subtract(totalCost).subtract(totalRefund); + BigDecimal salesTax = totalSales.multiply(new BigDecimal("0.04")); + BigDecimal profitAfterTax = profitBeforeTax.subtract(salesTax); + BigDecimal roi = totalPromoFee.compareTo(BigDecimal.ZERO) > 0 + ? totalSales.subtract(totalRefund).divide(totalPromoFee, 4, RoundingMode.HALF_UP) + : BigDecimal.ZERO; + BigDecimal feeRatio = totalSales.compareTo(BigDecimal.ZERO) > 0 + ? totalPromoFee.add(totalBrushFee).divide(totalSales, 4, RoundingMode.HALF_UP) + : BigDecimal.ZERO; + BigDecimal salesAchievementRate = totalTargetAmount.compareTo(BigDecimal.ZERO) > 0 + ? totalSales.divide(totalTargetAmount, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")) + : totalSales.compareTo(BigDecimal.ZERO) > 0 ? new BigDecimal("100") : BigDecimal.ZERO; + BigDecimal orderAchievementRate = totalTargetOrders > 0 + ? new BigDecimal(totalOrders).divide(new BigDecimal(totalTargetOrders), 4, RoundingMode.HALF_UP) + .multiply(new BigDecimal("100")) + : totalOrders > 0 ? new BigDecimal("100") : BigDecimal.ZERO; + + CompanyOverviewVO.ShopComparison total = new CompanyOverviewVO.ShopComparison(); + total.setShopId(0L); + total.setShopName("合计"); + total.setSalesAmount(totalSales); + total.setOrderCount(totalOrders); + total.setAverageOrderValue(avgOrderValue); + total.setTargetAmount(totalTargetAmount); + total.setTargetOrderCount(totalTargetOrders); + total.setSalesAmountAchievementRate(salesAchievementRate); + total.setOrderCountAchievementRate(orderAchievementRate); + total.setProductCost(totalProductCost); + total.setShippingCost(totalShippingCost); + total.setOtherCost(totalOtherCost); + total.setRefundAmount(totalRefund); + total.setTotalPromotionFee(totalPromoFee); + total.setBrushFee(totalBrushFee); + total.setFeeRatio(feeRatio); + total.setTotalProfitBeforeTax(profitBeforeTax); + total.setSalesTaxAmount(salesTax); + total.setRoi(roi); + total.setProfitAfterTax(profitAfterTax); + return total; } /** @@ -730,7 +811,7 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService { /** * Calculate category comparison data */ - private List calculateCategoryComparisons( + private CompanyOverviewVO.CategoryOverview calculateCategoryComparisons( List orders, List promotionFees, List brushOrders, Long refundStatusId, Long companyId, LocalDate startDate, LocalDate endDate) { @@ -890,8 +971,75 @@ public class CompanyOverviewServiceImpl implements CompanyOverviewService { } comparisons.sort(Comparator.comparing(CompanyOverviewVO.CategoryComparison::getSalesAmount).reversed()); - return comparisons; + + // 计算合计行 + CompanyOverviewVO.CategoryComparison total = computeCategoryTotal(comparisons); + + // 封装为 CategoryOverview + CompanyOverviewVO.CategoryOverview overview = new CompanyOverviewVO.CategoryOverview(); + overview.setTotal(total); + overview.setCategories(comparisons); + return overview; } + + /** + * 计算品类对比的合计行 + */ + private CompanyOverviewVO.CategoryComparison computeCategoryTotal(List categories) { + BigDecimal totalSales = BigDecimal.ZERO; + int totalOrders = 0; + BigDecimal totalProductCost = BigDecimal.ZERO; + BigDecimal totalShippingCost = BigDecimal.ZERO; + BigDecimal totalOtherCost = BigDecimal.ZERO; + BigDecimal totalRefund = BigDecimal.ZERO; + BigDecimal totalPromoFee = BigDecimal.ZERO; + BigDecimal totalBrushFee = BigDecimal.ZERO; + + for (CompanyOverviewVO.CategoryComparison c : categories) { + totalSales = totalSales.add(c.getSalesAmount() != null ? c.getSalesAmount() : BigDecimal.ZERO); + totalOrders += c.getOrderCount() != null ? c.getOrderCount() : 0; + totalProductCost = totalProductCost.add(c.getProductCost() != null ? c.getProductCost() : BigDecimal.ZERO); + totalShippingCost = totalShippingCost.add(c.getShippingCost() != null ? c.getShippingCost() : BigDecimal.ZERO); + totalOtherCost = totalOtherCost.add(c.getOtherCost() != null ? c.getOtherCost() : BigDecimal.ZERO); + totalRefund = totalRefund.add(c.getRefundAmount() != null ? c.getRefundAmount() : BigDecimal.ZERO); + totalPromoFee = totalPromoFee.add(c.getTotalPromotionFee() != null ? c.getTotalPromotionFee() : BigDecimal.ZERO); + totalBrushFee = totalBrushFee.add(c.getBrushFee() != null ? c.getBrushFee() : BigDecimal.ZERO); + } + + BigDecimal avgOrderValue = totalOrders > 0 + ? totalSales.divide(new BigDecimal(totalOrders), 2, RoundingMode.HALF_UP) + : BigDecimal.ZERO; + BigDecimal totalCost = totalProductCost.add(totalShippingCost).add(totalOtherCost); + BigDecimal profitBeforeTax = totalSales.subtract(totalCost).subtract(totalRefund); + BigDecimal salesTax = totalSales.multiply(new BigDecimal("0.04")); + BigDecimal profitAfterTax = profitBeforeTax.subtract(salesTax); + BigDecimal roi = totalPromoFee.compareTo(BigDecimal.ZERO) > 0 + ? totalSales.subtract(totalRefund).divide(totalPromoFee, 4, RoundingMode.HALF_UP) + : BigDecimal.ZERO; + BigDecimal feeRatio = totalSales.compareTo(BigDecimal.ZERO) > 0 + ? totalPromoFee.add(totalBrushFee).divide(totalSales, 4, RoundingMode.HALF_UP) + : BigDecimal.ZERO; + + CompanyOverviewVO.CategoryComparison total = new CompanyOverviewVO.CategoryComparison(); + total.setCategoryId(0L); + total.setCategoryName("合计"); + total.setSalesAmount(totalSales); + total.setOrderCount(totalOrders); + total.setAverageOrderValue(avgOrderValue); + total.setProductCost(totalProductCost); + total.setShippingCost(totalShippingCost); + total.setOtherCost(totalOtherCost); + total.setRefundAmount(totalRefund); + total.setTotalPromotionFee(totalPromoFee); + total.setBrushFee(totalBrushFee); + total.setFeeRatio(feeRatio); + total.setTotalProfitBeforeTax(profitBeforeTax); + total.setSalesTaxAmount(salesTax); + total.setRoi(roi); + total.setProfitAfterTax(profitAfterTax); + return total; + } + private List getAutoStatisticsStatusIds(Long companyId) { LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(OrderStatusPO::getCompanyId, companyId) diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/company-overview/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/company-overview/types/types.vo.ts index 6417b26b..787fe2d6 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/company-overview/types/types.vo.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/company-overview/types/types.vo.ts @@ -23,10 +23,10 @@ export namespace CompanyOverviewVO { shopSalesRatios?: ShopSalesRatio[]; /** 店铺效率象限(ROI vs 净利) */ shopEfficiencyQuadrants?: ShopEfficiencyQuadrant[]; - /** 多店铺数据横向对比(16维度) */ - shopComparisons?: ShopComparison[]; + /** 多店铺数据横向对比 */ + shopComparisons?: ShopOverview; /** 多品类数据横向对比 */ - categoryComparisons?: CategoryComparison[]; + categoryComparisons?: CategoryOverview; /** 平台维度概览(包含合计行和平台列表) */ platformSummary?: PlatformOverview; /** 汇总ROI */ @@ -202,4 +202,20 @@ export namespace CompanyOverviewVO { /** 各平台汇总列表 */ platforms: PlatformSummary[]; } + + /** 多店铺概览 */ + export interface ShopOverview { + /** 合计行 */ + total: ShopComparison; + /** 各店铺对比列表 */ + shops: ShopComparison[]; + } + + /** 多品类概览 */ + export interface CategoryOverview { + /** 合计行 */ + total: CategoryComparison; + /** 各品类对比列表 */ + categories: CategoryComparison[]; + } } diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/CategoryComparisonTable.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/CategoryComparisonTable.vue index 42f494fe..2df276ee 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/CategoryComparisonTable.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/CategoryComparisonTable.vue @@ -6,7 +6,7 @@ import { computed } from 'vue'; defineOptions({ name: 'CategoryComparisonTable' }); interface Props { - categoryComparisons?: CompanyOverviewVO.CategoryComparison[]; + categoryComparisons?: CompanyOverviewVO.CategoryOverview; taxRate: number; categoryExportMode?: boolean; selectedExportCategoryIds?: number[]; @@ -26,7 +26,7 @@ const props = withDefaults(defineProps(), { const emit = defineEmits(); const allCategoriesSelected = computed(() => { - const total = props.categoryComparisons?.length || 0; + const total = props.categoryComparisons?.categories?.length || 0; return total > 0 && props.selectedExportCategoryIds.length === total; }); @@ -113,7 +113,7 @@ const formatPercentPlain = (value: number | undefined) => { 'update:selectedExportCategoryIds', allCategoriesSelected ? [] - : (categoryComparisons ?? []).map((c) => c.categoryId!) + : (categoryComparisons?.categories ?? []).map((c) => c.categoryId!) ) " /> @@ -174,7 +174,7 @@ const formatPercentPlain = (value: number | undefined) => { @@ -237,12 +237,35 @@ const formatPercentPlain = (value: number | undefined) => { {{ cat.profitAfterTax ? formatAmount(cat.profitAfterTax) : '-' }} - + 暂无数据 + + + + 合计 + + {{ categoryComparisons?.total?.salesAmount ? formatAmount(categoryComparisons?.total?.salesAmount) : '-' }} + {{ categoryComparisons?.total?.orderCount ? categoryComparisons?.total?.orderCount.toLocaleString() : '-' }} + - + + {{ categoryComparisons?.total?.productCost ? formatAmount(categoryComparisons?.total?.productCost) : '-' }} + {{ categoryComparisons?.total?.shippingCost ? formatAmount(categoryComparisons?.total?.shippingCost) : '-' }} + {{ categoryComparisons?.total?.otherCost ? formatAmount(categoryComparisons?.total?.otherCost) : '-' }} + {{ categoryComparisons?.total?.refundAmount ? formatAmount(categoryComparisons?.total?.refundAmount) : '-' }} + {{ categoryComparisons?.total?.totalPromotionFee ? formatAmount(categoryComparisons?.total?.totalPromotionFee) : '-' }} + {{ categoryComparisons?.total?.brushFee ? formatAmount(categoryComparisons?.total?.brushFee) : '-' }} + {{ categoryComparisons?.total?.feeRatio !== undefined ? formatPercentPlain(categoryComparisons?.total?.feeRatio) : '-' }} + + {{ categoryComparisons?.total?.totalProfitBeforeTax ? formatAmount(categoryComparisons?.total?.totalProfitBeforeTax) : '-' }} + {{ categoryComparisons?.total?.salesTaxAmount ? formatAmount(categoryComparisons?.total?.salesTaxAmount) : '-' }} + {{ categoryComparisons?.total?.roi?.toFixed(2) || '-' }} + {{ categoryComparisons?.total?.profitAfterTax ? formatAmount(categoryComparisons?.total?.profitAfterTax) : '-' }} + + diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/PlatformSummaryCard.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/PlatformSummaryCard.vue index dfcf8a45..0784195e 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/PlatformSummaryCard.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/PlatformSummaryCard.vue @@ -293,36 +293,36 @@ const sortIcon = (field: string) => { {{ totalData.targetOrderCount?.toLocaleString() }} - - {{ formatAmount(totalData.targetAmount) }} + {{ totalData.targetAmount ? formatAmount(totalData.targetAmount) : '-' }} - - {{ formatAmount(totalData.salesAmount) }} - {{ totalData.orderCount?.toLocaleString() }} + {{ totalData.salesAmount ? formatAmount(totalData.salesAmount) : '-' }} + {{ totalData.orderCount ? totalData.orderCount.toLocaleString() : '-' }} - - {{ formatAmount(totalData.productCost) }} - {{ formatAmount(totalData.shippingCost) }} - {{ formatAmount(totalData.otherCost) }} - {{ formatAmount(totalData.refundAmount) }} - {{ formatAmount(totalData.totalPromotionFee) }} - {{ formatAmount(totalData.brushFee) }} + {{ totalData.productCost ? formatAmount(totalData.productCost) : '-' }} + {{ totalData.shippingCost ? formatAmount(totalData.shippingCost) : '-' }} + {{ totalData.otherCost ? formatAmount(totalData.otherCost) : '-' }} + {{ totalData.refundAmount ? formatAmount(totalData.refundAmount) : '-' }} + {{ totalData.totalPromotionFee ? formatAmount(totalData.totalPromotionFee) : '-' }} + {{ totalData.brushFee ? formatAmount(totalData.brushFee) : '-' }} - {{ formatPercentPlain(totalData.feeRatio) }} + {{ totalData.feeRatio !== undefined ? formatPercentPlain(totalData.feeRatio) : '-' }} - {{ formatAmount(totalData.totalProfitBeforeTax) }} + {{ totalData.totalProfitBeforeTax ? formatAmount(totalData.totalProfitBeforeTax) : '-' }} - {{ formatAmount(totalData.salesTaxAmount) }} + {{ totalData.salesTaxAmount ? formatAmount(totalData.salesTaxAmount) : '-' }} - {{ totalData.roi?.toFixed(2) }} + {{ totalData.roi !== undefined ? totalData.roi.toFixed(2) : '-' }} - {{ formatAmount(totalData.profitAfterTax) }} + {{ totalData.profitAfterTax ? formatAmount(totalData.profitAfterTax) : '-' }} diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/ShopComparisonTable.vue b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/ShopComparisonTable.vue index 1498caf1..6eda8004 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/ShopComparisonTable.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/dashboard/company-overview/components/ShopComparisonTable.vue @@ -109,7 +109,7 @@ const formatPercentPlain = (value: number | undefined) => { if ((e.target as HTMLInputElement).checked) { emit( 'update:selectedExportShopIds', - shopComparisons?.map((s) => s.shopId) || [], + shopComparisons?.shops?.map((s) => s.shopId) || [], ); } else { emit('update:selectedExportShopIds', []); @@ -193,7 +193,7 @@ const formatPercentPlain = (value: number | undefined) => { @@ -328,12 +328,40 @@ const formatPercentPlain = (value: number | undefined) => { }} - + 暂无数据 + + + + 合计 + + {{ shopComparisons?.total?.targetOrderCount?.toLocaleString() }} + - + {{ shopComparisons?.total?.targetAmount ? formatAmount(shopComparisons?.total?.targetAmount) : '-' }} + - + + {{ shopComparisons?.total?.salesAmount ? formatAmount(shopComparisons?.total?.salesAmount) : '-' }} + {{ shopComparisons?.total?.orderCount ? shopComparisons?.total?.orderCount.toLocaleString() : '-' }} + - + + {{ shopComparisons?.total?.productCost ? formatAmount(shopComparisons?.total?.productCost) : '-' }} + {{ shopComparisons?.total?.shippingCost ? formatAmount(shopComparisons?.total?.shippingCost) : '-' }} + {{ shopComparisons?.total?.otherCost ? formatAmount(shopComparisons?.total?.otherCost) : '-' }} + {{ shopComparisons?.total?.refundAmount ? formatAmount(shopComparisons?.total?.refundAmount) : '-' }} + {{ shopComparisons?.total?.totalPromotionFee ? formatAmount(shopComparisons?.total?.totalPromotionFee) : '-' }} + {{ shopComparisons?.total?.brushFee ? formatAmount(shopComparisons?.total?.brushFee) : '-' }} + {{ shopComparisons?.total?.feeRatio !== undefined ? formatPercentPlain(shopComparisons?.total?.feeRatio) : '-' }} + + {{ shopComparisons?.total?.totalProfitBeforeTax ? formatAmount(shopComparisons?.total?.totalProfitBeforeTax) : '-' }} + {{ shopComparisons?.total?.salesTaxAmount ? formatAmount(shopComparisons?.total?.salesTaxAmount) : '-' }} + {{ shopComparisons?.total?.roi !== undefined ? shopComparisons?.total?.roi.toFixed(2) : '-' }} + {{ shopComparisons?.total?.profitAfterTax ? formatAmount(shopComparisons?.total?.profitAfterTax) : '-' }} + +