From cdb2f234c39577c2de3d735295aab5d5bbba1be3 Mon Sep 17 00:00:00 2001 From: Nathnael Date: Mon, 24 Aug 2026 07:12:17 +0000 Subject: [PATCH] feat(reports): drop the raw booking ID from revenue transactions The bare UUID column sat next to the booking reference it duplicates, and a reference is what anyone reading or exporting this report actually quotes. The report is the audit trail for an export, so a column nobody can act on is weight in every downloaded file. --- .../modules/reports/definitions/revenue-transactions.report.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/edr-freight-api/src/modules/reports/definitions/revenue-transactions.report.ts b/apps/edr-freight-api/src/modules/reports/definitions/revenue-transactions.report.ts index 044f0141e..4f70216e8 100644 --- a/apps/edr-freight-api/src/modules/reports/definitions/revenue-transactions.report.ts +++ b/apps/edr-freight-api/src/modules/reports/definitions/revenue-transactions.report.ts @@ -73,7 +73,6 @@ export const revenueTransactionsReport: ReportDefinition = { { key: 'issuedAt', label: 'Issued', type: 'date', sortable: true, sortExpr: REVENUE_DATE }, { key: 'invoiceNumber', label: 'Invoice No.', type: 'string', sortable: true, sortExpr: 'i.invoice_number' }, { key: 'bookingRef', label: 'Booking', type: 'string', sortable: true, sortExpr: 'b.reference' }, - { key: 'bookingId', label: 'Booking ID', type: 'string' }, { key: 'payer', label: 'Customer', type: 'string', sortable: true, sortExpr: PAYER_EXPR }, { key: 'category', label: 'Revenue category', type: 'string', sortable: true, sortExpr: REVENUE_CATEGORY_EXPR }, { key: 'paymentClass', label: 'Payment class', type: 'string' }, @@ -96,7 +95,6 @@ export const revenueTransactionsReport: ReportDefinition = { .select(`to_char(${REVENUE_DATE}, 'YYYY-MM-DD HH24:MI')`, 'issuedAt') .addSelect('i.invoice_number', 'invoiceNumber') .addSelect("COALESCE(b.reference, '—')", 'bookingRef') - .addSelect("COALESCE(b.id::text, '')", 'bookingId') .addSelect(PAYER_EXPR, 'payer') .addSelect(REVENUE_CATEGORY_EXPR, 'category') .addSelect(PAYMENT_CLASS_EXPR, 'paymentClass')