Bug 41761: Do not update accountlines.date when editing a note

To test:
0. APPLY PATCH, restart_all
1. Create an accountline and make note of the accountline.date
2. On that accoutnline edit the note.
3. Confirm that the accountline.date does NOT update.

Signed-off-by: Juliet Heltibridle <jheltibridle@rcplib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1c50f6b774)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Lucas Gass 2026-02-03 20:10:18 +00:00 committed by Jacob O'Mara
parent cf6ec7138b
commit 17c567fc5e
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -238,12 +238,7 @@ if ( $op eq 'cud-edit_note' ) {
$schema->txn_do(
sub {
# Update the note and date in the account line
$payment->set(
{
date => \'NOW()',
note => $note
}
)->store();
$payment->set( { note => $note } )->store();
}
);
}