}
if ( $accountline ) {
if ( $accountline->amount != $amount ) {
if ( $accountline->amount != Koha::Number::Price->new($amount)->round ) {
$accountline->adjust(
{
amount => $amount,
-