From b506d97c0681fabfceb814da54ab38a0f69e228d Mon Sep 17 00:00:00 2001 From: Efril Date: Thu, 26 Feb 2026 14:37:53 +0700 Subject: [PATCH] update report add service charger --- .../(dashboard)/(private)/dashboards/daily-report/page.tsx | 4 ++++ src/utils/excelGenerator.ts | 2 +- src/utils/pdfGenerator.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) 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 2921923..1ce1c53 100644 --- a/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx +++ b/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx @@ -275,6 +275,10 @@ const DailyPOSReport = () => { {formatCurrency(profitLoss?.summary.total_tax ?? 0)} +
+ Biaya Layanan + {formatCurrency(0)} +
Total diff --git a/src/utils/excelGenerator.ts b/src/utils/excelGenerator.ts index 04b0a9b..ed1d5eb 100644 --- a/src/utils/excelGenerator.ts +++ b/src/utils/excelGenerator.ts @@ -183,7 +183,7 @@ export const generateExcel = async (params: ExcelGeneratorParams) => { ['Total Diskon', profitLoss?.summary.total_discount || 0], ['Total Pajak', profitLoss?.summary.total_tax || 0], ['PB1', 0], - ['Service Charge', 0] + ['Biaya Layanan', 0] ] summaryData.forEach((row, idx) => { diff --git a/src/utils/pdfGenerator.ts b/src/utils/pdfGenerator.ts index bb50e68..b6e6f51 100644 --- a/src/utils/pdfGenerator.ts +++ b/src/utils/pdfGenerator.ts @@ -119,6 +119,7 @@ export const generatePDF = async (params: PDFGeneratorParams) => { ['Total Penjualan', formatCurrency(profitLoss?.summary.total_revenue ?? 0)], ['Total Diskon', formatCurrency(profitLoss?.summary.total_discount ?? 0)], ['Total Pajak', formatCurrency(profitLoss?.summary.total_tax ?? 0)], + ['Biaya Layanan', formatCurrency(0)], ['Total', formatCurrency(profitLoss?.summary.total_revenue ?? 0)] ], theme: 'grid',