-
+
Ringkasan Kategori
@@ -439,17 +443,17 @@ const DailyPOSReport = () => {
- | Nama |
- Qty |
- Pendapatan |
+ Nama |
+ Qty |
+ Pendapatan |
{category?.data?.map((c, index) => (
- | {c.category_name} |
- {c.total_quantity} |
-
+ | {c.category_name} |
+ {c.total_quantity} |
+
{formatCurrency(c.total_revenue)}
|
@@ -457,9 +461,11 @@ const DailyPOSReport = () => {
- | TOTAL |
- {categorySummary?.totalQuantity ?? 0} |
- {formatCurrency(categorySummary?.totalRevenue ?? 0)} |
+ TOTAL |
+ {categorySummary?.totalQuantity ?? 0} |
+
+ {formatCurrency(categorySummary?.totalRevenue ?? 0)}
+ |
@@ -468,7 +474,7 @@ const DailyPOSReport = () => {
{/* Transaction Summary */}
-
+
Ringkasan Item
@@ -482,9 +488,9 @@ const DailyPOSReport = () => {
- | Produk |
- Qty |
- Pendapatan |
+ Produk |
+ Qty |
+ Pendapatan |
@@ -520,7 +526,7 @@ const DailyPOSReport = () => {
style={{ pageBreakInside: 'avoid' }}
>
{categoryName.toUpperCase()}
@@ -540,15 +546,15 @@ const DailyPOSReport = () => {
style={{ pageBreakInside: 'avoid' }}
>
|
{item.product_name}
|
-
+ |
{item.quantity_sold}
|
-
+ |
{formatCurrency(item.revenue)}
|
@@ -571,13 +577,13 @@ const DailyPOSReport = () => {
className='bg-gray-200 border-b-2 border-gray-400'
style={{ pageBreakInside: 'avoid' }}
>
-
+ |
Subtotal {categoryName}
|
-
+ |
{categoryTotalQty}
|
-
+ |
{formatCurrency(categoryTotalRevenue)}
|
@@ -589,11 +595,11 @@ const DailyPOSReport = () => {
- | TOTAL KESELURUHAN |
-
+ | TOTAL KESELURUHAN |
+
{productSummary.totalQuantitySold ?? 0}
|
-
+ |
{formatCurrency(productSummary.totalRevenue ?? 0)}
|
diff --git a/src/views/dashboards/daily-report/report-header.tsx b/src/views/dashboards/daily-report/report-header.tsx
index bbed8d0..955fa4d 100644
--- a/src/views/dashboards/daily-report/report-header.tsx
+++ b/src/views/dashboards/daily-report/report-header.tsx
@@ -38,8 +38,8 @@ const ReportHeader: FC = ({
= ({
{periode && (