use C4::Log qw( logaction );
use Koha::Database;
use Koha::Patrons;
use Koha::Patron::Restriction::Types;
use Koha::Patron::Restrictions;
my $writeoff_offset = Koha::Account::Offset->new(
{
credit_id => $writeoff->accountlines_id,
type => 'WRITEOFF',
type => 'CREATE',
amount => $line->amountoutstanding
}
)->store();
-