From e528f632362861ab5710276fa120de8e05043344 Mon Sep 17 00:00:00 2001 From: suryac Date: Mon, 10 Aug 2026 13:08:35 +0530 Subject: [PATCH] dsr table modified --- src/screens/DailySalesReportPage.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/screens/DailySalesReportPage.tsx b/src/screens/DailySalesReportPage.tsx index 084dfd1..c6ff3b0 100644 --- a/src/screens/DailySalesReportPage.tsx +++ b/src/screens/DailySalesReportPage.tsx @@ -83,6 +83,9 @@ export function DailySalesReportPage() { theme: 'grid', styles: { fontSize: 8, textColor: [0, 0, 0], lineColor: [0, 0, 0], lineWidth: 0.2 }, headStyles: { fillColor: [243, 244, 246], fontStyle: 'bold', halign: 'center' }, + columnStyles: { + 0: { cellWidth: 12 } + }, }); doc.save(`Daily_Sales_Report_${date || 'Draft'}.pdf`); @@ -126,6 +129,9 @@ export function DailySalesReportPage() { theme: 'grid', styles: { fontSize: 8, textColor: [0, 0, 0], lineColor: [0, 0, 0], lineWidth: 0.2 }, headStyles: { fillColor: [243, 244, 246], fontStyle: 'bold', halign: 'center' }, + columnStyles: { + 0: { cellWidth: 12 } + }, }); const blob = doc.output('blob'); @@ -245,7 +251,7 @@ export function DailySalesReportPage() { - + {reportData.response.headers?.map((h: any) => ( {reportData.response.rows?.map((row: any) => ( - + {reportData.response.headers?.flatMap((h: any) => h.skus || []).map((sku: string, idx: number) => ( ))} - + ))} {reportData.response.total_row && ( - + {reportData.response.headers?.flatMap((h: any) => h.skus || []).map((sku: string, idx: number) => ( ))} - + )}
Sl NoSl No Store @@ -265,26 +271,26 @@ export function DailySalesReportPage() {
{row.sl_no}{row.sl_no} {row.store} - {row.products?.[sku] ?? 0} + {row.products?.[sku] || ''} {row.total ?? 0}{row.total || ''}
{reportData.response.total_row.sl_no}{reportData.response.total_row.sl_no} {reportData.response.total_row.store} - {reportData.response.total_row.products?.[sku] ?? 0} + {reportData.response.total_row.products?.[sku] || ''} {reportData.response.total_row.total ?? 0}{reportData.response.total_row.total || ''}