diff --git a/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx b/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx index d5ba06b..7fbb7bf 100644 --- a/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx +++ b/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx @@ -369,12 +369,6 @@ const DailyPOSReport = () => { Total Invoice {profitLoss?.summary.total_orders ?? 0} -
| Produk | Qty | -Order | -Pendapatan | -Rata Rata | +Pendapatan | - | - | ) @@ -563,15 +548,9 @@ const DailyPOSReport = () => { | {item.quantity_sold} | -- {item.order_count ?? 0} - | -+ | {formatCurrency(item.revenue)} | -- {formatCurrency(item.average_price)} - | ) }) @@ -581,10 +560,6 @@ const DailyPOSReport = () => { (sum, item) => sum + (item.quantity_sold || 0), 0 ) - const categoryTotalOrders = categoryProducts.reduce( - (sum, item) => sum + (item.order_count || 0), - 0 - ) const categoryTotalRevenue = categoryProducts.reduce( (sum, item) => sum + (item.revenue || 0), 0 @@ -602,13 +577,9 @@ const DailyPOSReport = () => {{categoryTotalQty} | -- {categoryTotalOrders} - | -+ | {formatCurrency(categoryTotalRevenue)} | -) }) @@ -622,13 +593,9 @@ const DailyPOSReport = () => { | {productSummary.totalQuantitySold ?? 0} | -- {productSummary.totalOrders ?? 0} - | -+ | {formatCurrency(productSummary.totalRevenue ?? 0)} | -
|---|