From 842ada9f33a597da9bbab8221592413acc86a388 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 21 Jun 2026 19:15:43 +0100 Subject: [PATCH] Refactor Invoice model by removing duplicate 'paidAt' field definition and ensuring consistent property structure. --- src/database/models/Invoice.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/database/models/Invoice.js b/src/database/models/Invoice.js index d47100a..223b5e0 100644 --- a/src/database/models/Invoice.js +++ b/src/database/models/Invoice.js @@ -302,6 +302,14 @@ export const Invoice = { required: true }, + { + name: 'paidAt', + label: 'Paid At', + type: 'dateTime', + readOnly: true, + columnWidth: 175 + }, + { name: 'to', label: 'To', @@ -333,13 +341,7 @@ export const Invoice = { readOnly: true, columnWidth: 175 }, - { - name: 'paidAt', - label: 'Paid At', - type: 'dateTime', - readOnly: true, - columnWidth: 175 - }, + { name: 'totalAmountWithTax', label: 'Total Amount w/ Tax',