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:
parent
cf6ec7138b
commit
17c567fc5e
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue