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 9a5fd24..836210c 100644 --- a/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx +++ b/src/app/[lang]/(dashboard)/(private)/dashboards/daily-report/page.tsx @@ -16,7 +16,7 @@ import ReportHeader from '@/views/dashboards/daily-report/report-header' import React, { useEffect, useRef, useState } from 'react' // Dummy HPP values — ganti dengan data real nantinya -const DUMMY_STD_HPP = 0 // % — ganti dengan data real nantinya +const DUMMY_STD_HPP = 30 // % — ganti dengan data real nantinya const DUMMY_REAL_HPP = 0 // % — ganti dengan kalkulasi real nantinya const getHppStatus = (stdHpp: number, realHpp: number): 'Sehat' | 'Tidak Sehat' => diff --git a/src/utils/excelGenerator.ts b/src/utils/excelGenerator.ts index c33bc22..2ab4587 100644 --- a/src/utils/excelGenerator.ts +++ b/src/utils/excelGenerator.ts @@ -115,7 +115,7 @@ const getStatusStyle = (status: 'Sehat' | 'Tidak Sehat', isAlt: boolean): Partia } // Dummy HPP values — ganti dengan data real nantinya -const DUMMY_STD_HPP = 0 // 0% — ganti dengan data real nantinya +const DUMMY_STD_HPP = 30 // 30% — ganti dengan data real nantinya const DUMMY_REAL_HPP = 0 // 0% — ganti dengan kalkulasi real nantinya const getDummyStatus = (stdHpp: number, realHpp: number): 'Sehat' | 'Tidak Sehat' => realHpp <= stdHpp ? 'Sehat' : 'Tidak Sehat' diff --git a/src/utils/pdfGenerator.ts b/src/utils/pdfGenerator.ts index 8a4fc8b..8eecf11 100644 --- a/src/utils/pdfGenerator.ts +++ b/src/utils/pdfGenerator.ts @@ -238,7 +238,7 @@ export const generatePDF = async (params: PDFGeneratorParams) => { pdf.text('Ringkasan Kategori', 14, currentY) currentY += 15 - const DUMMY_STD_HPP = 0 // % (nilai dummy — ganti dengan data real nantinya) + const DUMMY_STD_HPP = 30 // % (nilai dummy — ganti dengan data real nantinya) const categoryBody = category?.data?.map((c: any) => { @@ -437,9 +437,9 @@ export const generatePDF = async (params: PDFGeneratorParams) => { lineWidth: 0.1 }, columnStyles: { - 0: { cellWidth: 50 }, + 0: { cellWidth: 44 }, 1: { halign: 'center', cellWidth: 20 }, - 2: { halign: 'right', cellWidth: 42 }, + 2: { halign: 'right', cellWidth: 50 }, 3: { halign: 'center', cellWidth: 22 }, 4: { halign: 'center', cellWidth: 22 }, 5: { halign: 'center', cellWidth: 22 } @@ -505,9 +505,9 @@ export const generatePDF = async (params: PDFGeneratorParams) => { lineWidth: 0.2 }, columnStyles: { - 0: { cellWidth: 50 }, + 0: { cellWidth: 44 }, 1: { halign: 'center', cellWidth: 20 }, - 2: { halign: 'right', cellWidth: 42 }, + 2: { halign: 'right', cellWidth: 50 }, 3: { cellWidth: 22 }, 4: { cellWidth: 22 }, 5: { cellWidth: 22 }