diff --git a/src/components/pages/report/marketing/tab/DailyMarketingTab.tsx b/src/components/pages/report/marketing/tab/DailyMarketingTab.tsx index f1b63684..817fe921 100644 --- a/src/components/pages/report/marketing/tab/DailyMarketingTab.tsx +++ b/src/components/pages/report/marketing/tab/DailyMarketingTab.tsx @@ -554,7 +554,7 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => { accessorKey: 'qty', cell: (props) => formatNumber(props.row.original.qty), footer: () => ( -
+
{summaryTotal?.total_qty ? formatNumber(summaryTotal.total_qty) : '-'} @@ -567,7 +567,7 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => { accessorKey: 'average_weight_kg', cell: (props) => formatNumber(props.row.original.average_weight_kg), footer: () => ( -
+
{summaryTotal?.average_weight_kg ? formatNumber(summaryTotal.average_weight_kg) : '-'} @@ -580,7 +580,7 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => { accessorKey: 'total_weight_kg', cell: (props) => formatNumber(props.row.original.total_weight_kg), footer: () => ( -
+
{summaryTotal?.total_weight_kg ? formatNumber(summaryTotal.total_weight_kg) : '-'} @@ -593,9 +593,9 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => { accessorKey: 'sales_price_per_kg', cell: (props) => formatCurrency(props.row.original.sales_price_per_kg), footer: () => ( -
+
{summaryTotal?.average_sales_price - ? formatNumber(summaryTotal.average_sales_price) + ? formatCurrency(summaryTotal.average_sales_price) : '-'}
), @@ -606,7 +606,7 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => { accessorKey: 'hpp_price_per_kg', cell: (props) => formatCurrency(props.row.original.hpp_price_per_kg), footer: () => ( -
+
{summaryTotal?.total_hpp_price_per_kg ? formatCurrency(summaryTotal.total_hpp_price_per_kg) : '-'} @@ -619,7 +619,7 @@ const DailyMarketingTab = ({ tabId }: DailyMarketingTabProps) => { accessorKey: 'sales_amount', cell: (props) => formatCurrency(props.row.original.sales_amount), footer: () => ( -
+
{summaryTotal?.total_sales_amount ? formatCurrency(summaryTotal.total_sales_amount) : '-'}