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:
parent
7ee861e256
commit
1c50f6b774
|
|
@ -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