update report

This commit is contained in:
efrilm 2025-11-25 21:39:40 +07:00
parent fe4176621c
commit 2897436c5f

View File

@ -600,7 +600,11 @@ const DailyPOSReport = () => {
startY: currentY,
head: [],
body: [
['TOTAL KESELURUHAN', String(productSummary.totalQuantitySold), formatCurrency(productSummary.totalRevenue)]
[
'TOTAL KESELURUHAN',
String(productSummary.totalQuantitySold),
formatCurrency(profitLoss?.summary.total_revenue ?? 0)
]
],
theme: 'grid',
styles: {
@ -962,7 +966,7 @@ const DailyPOSReport = () => {
{productSummary.totalQuantitySold ?? 0}
</td>
<td className='p-5 text-2xl text-right font-bold' style={{ width: '30%', color: '#36175e' }}>
{formatCurrency(productSummary.totalRevenue ?? 0)}
{formatCurrency(profitLoss?.summary.total_revenue ?? 0)}
</td>
</tr>
</tfoot>