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>
This commit is contained in:
Lucas Gass 2026-02-03 20:10:18 +00:00
parent 7ee861e256
commit 1c50f6b774
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
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();
}
);
}