my $payment = Koha::Account::Lines->find($payment_id);
$schema->txn_do(
sub {
# Update the note and date in the account line
# Update the note in the account line
$payment->set(
{
date => \'NOW()',
note => $note
}
)->store();
-