Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Fix: organizer report currency display
Dave Earley714a654498c7
diff --git a/frontend/src/components/common/OrganizerReportTable/index.tsx b/frontend/src/components/common/OrganizerReportTable/index.tsxindex 0e832fb6f..0fcab41f9 100644--- a/frontend/src/components/common/OrganizerReportTable/index.tsx+++ b/frontend/src/components/common/OrganizerReportTable/index.tsx@@ -18,10 +18,14 @@ import classes from './OrganizerReportTable.module.scss';dayjs.extend(utc);dayjs.extend(timezone);+export interface RenderContext {+ currency: string;+}+interface Column<T> {key: keyof T;label: string;- render?: (value: any, row: T) => React.ReactNode;+ render?: (value: any, row: T, context: RenderContext) => React.ReactNode;sortable?: boolean;}@@ -321,7 +325,7 @@ const OrganizerReportTable = <T extends Record<string, any>>({{columns.map((column) => (<MantineTable.Td key={String(column.key)}>{column.render- ? column.render(row[column.key], row)+ ? column.render(row[column.key], row, { currency: selectedCurrency || organizer.currency || 'USD' }): row[column.key]}</MantineTable.Td>diff --git a/frontend/src/components/routes/organizer/Reports/RevenueSummaryReport/index.tsx b/frontend/src/components/routes/organizer/Reports/RevenueSummaryReport/index.tsxindex e15ae70fc..59f1f9183 100644--- a/frontend/src/components/routes/organizer/Reports/RevenueSummaryReport/index.tsx+++ b/frontend/src/components/routes/organizer/Reports/RevenueSummaryReport/index.tsx@@ -29,31 +29,31 @@ const RevenueSummaryReport = () => {key: 'gross_sales' as const,label: t`Gross Sales`,sortable: true,- render: (value: string) => formatCurrency(value)+ render: (value: string, _row: any, context: { currency: string }) => formatCurrency(value, context.currency)},{key: 'net_revenue' as const,label: t`Net Revenue`,sortable: true,- render: (value: string) => formatCurrency(value)+ render: (value: string, _row: any, context: { currency: string }) => formatCurrency(value, context.currency)},{key: 'total_refunded' as const,label: t`Refunds`,sortable: true,- render: (value: string) => formatCurrency(value)+ render: (value: string, _row: any, context: { currency: string }) => formatCurrency(value, context.currency)},{key: 'total_tax' as const,label: t`Taxes`,sortable: true,- render: (value: string) => formatCurrency(value)+ render: (value: string, _row: any, context: { currency: string }) => formatCurrency(value, context.currency)},{key: 'total_fee' as const,label: t`Fees`,sortable: true,- render: (value: string) => formatCurrency(value)+ render: (value: string, _row: any, context: { currency: string }) => formatCurrency(value, context.currency)},{key: 'order_count' as const,