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 6e3eab3..9c73a3a 100644
--- a/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx
+++ b/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx
@@ -423,6 +423,7 @@ const DailyPOSReport = () => {
currentY = (pdf as any).lastAutoTable.finalY + 20
+ // Category Summary - DENGAN BORDER HITAM
// Category Summary - DENGAN BORDER HITAM
pdf.setFontSize(PDF_FONT_SIZES.heading)
pdf.text('Ringkasan Kategori', 14, currentY)
@@ -439,6 +440,9 @@ const DailyPOSReport = () => {
['TOTAL', String(categorySummary?.totalQuantity ?? 0), formatCurrency(categorySummary?.totalRevenue ?? 0)]
],
theme: 'grid',
+ // TAMBAHKAN INI: paksa semua row di satu page, jangan split
+ showFoot: 'lastPage', // footer cuma muncul di halaman terakhir
+ tableWidth: 'auto',
styles: {
fontSize: PDF_FONT_SIZES.tableContent,
cellPadding: PDF_SPACING.cellPadding,
@@ -480,6 +484,8 @@ const DailyPOSReport = () => {
margin: { left: 14, right: 14 }
})
+ currentY = (pdf as any).lastAutoTable.finalY + 20
+
// Group products by category
const groupedProducts =
products?.data?.reduce(
@@ -544,6 +550,7 @@ const DailyPOSReport = () => {
head: [['Produk', 'Qty', 'Pendapatan']],
body: productBody,
foot: [[`Subtotal ${categoryName}`, String(categoryTotalQty), formatCurrency(categoryTotalRevenue)]],
+ showFoot: 'lastPage', // ← TAMBAHKAN INI: subtotal cuma muncul di akhir kategori
theme: 'grid',
styles: {
fontSize: PDF_FONT_SIZES.tableContent,
diff --git a/src/components/layout/vertical/VerticalMenu.tsx b/src/components/layout/vertical/VerticalMenu.tsx
index 464aef9..7257695 100644
--- a/src/components/layout/vertical/VerticalMenu.tsx
+++ b/src/components/layout/vertical/VerticalMenu.tsx
@@ -173,7 +173,7 @@ const VerticalMenu = ({ dictionary, scrollMenu }: Props) => {
*/}
{/* */}
-
+ {/* */}
}>
diff --git a/src/services/api.ts b/src/services/api.ts
index 5890323..2f7d1d8 100644
--- a/src/services/api.ts
+++ b/src/services/api.ts
@@ -6,8 +6,8 @@ const getToken = () => {
}
export const api = axios.create({
- // baseURL: 'https://api-pos.apskel.id/api/v1',
- baseURL: 'http://127.0.0.1:4000/api/v1',
+ baseURL: 'https://api-pos.apskel.id/api/v1',
+ // baseURL: 'http://127.0.0.1:4000/api/v1',
headers: {
'Content-Type': 'application/json'
},