fix report

This commit is contained in:
Efril
2026-02-26 20:36:02 +07:00
parent b506d97c06
commit b22f400534
3 changed files with 38 additions and 23 deletions
@@ -16,8 +16,8 @@ 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 = 30 // 30%
const DUMMY_REAL_HPP = 28 // 28%
const DUMMY_STD_HPP = 0 // % — ganti dengan data real nantinya
const DUMMY_REAL_HPP = 0 // % — ganti dengan kalkulasi real nantinya
const getHppStatus = (stdHpp: number, realHpp: number): 'Sehat' | 'Tidak Sehat' =>
realHpp <= stdHpp ? 'Sehat' : 'Tidak Sehat'
@@ -276,7 +276,7 @@ const DailyPOSReport = () => {
</span>
</div>
<div className='flex justify-between items-center py-3 border-b border-gray-200'>
<span className='text-xl text-gray-700'>Biaya Layanan</span>
<span className='text-xl text-gray-700'>Service Charge</span>
<span className='text-xl font-semibold text-gray-800'>{formatCurrency(0)}</span>
</div>
<div className='flex justify-between items-center py-3 border-b-2 border-gray-300'>