update report add service charger

This commit is contained in:
Efril 2026-02-26 14:37:53 +07:00
parent a3dd214a99
commit b506d97c06
3 changed files with 6 additions and 1 deletions

View File

@ -275,6 +275,10 @@ const DailyPOSReport = () => {
{formatCurrency(profitLoss?.summary.total_tax ?? 0)} {formatCurrency(profitLoss?.summary.total_tax ?? 0)}
</span> </span>
</div> </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 font-semibold text-gray-800'>{formatCurrency(0)}</span>
</div>
<div className='flex justify-between items-center py-3 border-b-2 border-gray-300'> <div className='flex justify-between items-center py-3 border-b-2 border-gray-300'>
<span className='text-xl text-gray-700 font-bold'>Total</span> <span className='text-xl text-gray-700 font-bold'>Total</span>
<span className='text-xl font-bold text-gray-800'> <span className='text-xl font-bold text-gray-800'>

View File

@ -183,7 +183,7 @@ export const generateExcel = async (params: ExcelGeneratorParams) => {
['Total Diskon', profitLoss?.summary.total_discount || 0], ['Total Diskon', profitLoss?.summary.total_discount || 0],
['Total Pajak', profitLoss?.summary.total_tax || 0], ['Total Pajak', profitLoss?.summary.total_tax || 0],
['PB1', 0], ['PB1', 0],
['Service Charge', 0] ['Biaya Layanan', 0]
] ]
summaryData.forEach((row, idx) => { summaryData.forEach((row, idx) => {

View File

@ -119,6 +119,7 @@ export const generatePDF = async (params: PDFGeneratorParams) => {
['Total Penjualan', formatCurrency(profitLoss?.summary.total_revenue ?? 0)], ['Total Penjualan', formatCurrency(profitLoss?.summary.total_revenue ?? 0)],
['Total Diskon', formatCurrency(profitLoss?.summary.total_discount ?? 0)], ['Total Diskon', formatCurrency(profitLoss?.summary.total_discount ?? 0)],
['Total Pajak', formatCurrency(profitLoss?.summary.total_tax ?? 0)], ['Total Pajak', formatCurrency(profitLoss?.summary.total_tax ?? 0)],
['Biaya Layanan', formatCurrency(0)],
['Total', formatCurrency(profitLoss?.summary.total_revenue ?? 0)] ['Total', formatCurrency(profitLoss?.summary.total_revenue ?? 0)]
], ],
theme: 'grid', theme: 'grid',