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