Update Payment model to add 'postedAt', 'authorisedAt', and 'cancelledAt' fields while removing redundant definitions for improved data structure and clarity.

This commit is contained in:
Tom Butcher 2026-07-18 14:00:26 +01:00
parent 0a347c1396
commit e3a9b8b6f9

View File

@ -186,6 +186,13 @@ export const Payment = {
readOnly: true, readOnly: true,
columnWidth: 250 columnWidth: 250
}, },
{
name: 'postedAt',
label: 'Posted At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{ {
name: 'invoice', name: 'invoice',
label: 'Invoice', label: 'Invoice',
@ -195,6 +202,13 @@ export const Payment = {
showHyperlink: true, showHyperlink: true,
columnWidth: 200 columnWidth: 200
}, },
{
name: 'authorisedAt',
label: 'Authorised At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{ {
name: 'payTo', name: 'payTo',
label: 'Pay To', label: 'Pay To',
@ -211,27 +225,6 @@ export const Payment = {
return objectData?.invoice?.from return objectData?.invoice?.from
} }
}, },
{
name: 'paymentDate',
label: 'Payment Date',
type: 'dateTime',
required: true,
columnWidth: 175
},
{
name: 'postedAt',
label: 'Posted At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{
name: 'authorisedAt',
label: 'Authorised At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{ {
name: 'declinedAt', name: 'declinedAt',
label: 'Declined At', label: 'Declined At',
@ -239,13 +232,6 @@ export const Payment = {
readOnly: true, readOnly: true,
columnWidth: 175 columnWidth: 175
}, },
{
name: 'cancelledAt',
label: 'Cancelled At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{ {
name: 'amount', name: 'amount',
label: 'Amount', label: 'Amount',
@ -255,19 +241,19 @@ export const Payment = {
required: true, required: true,
columnWidth: 150 columnWidth: 150
}, },
{
name: 'cancelledAt',
label: 'Cancelled At',
type: 'dateTime',
readOnly: true,
columnWidth: 175
},
{ {
name: 'paymentMethod', name: 'paymentMethod',
label: 'Payment Method', label: 'Payment Method',
type: 'string', type: 'string',
required: false, required: false,
columnWidth: 150 columnWidth: 150
},
{
name: 'notes',
label: 'Notes',
type: 'text',
required: false,
columnWidth: 200
} }
], ],
stats: [ stats: [