my $credit_offsets = $lost_charge->debit_offsets(
{
'credit_id' => { '!=' => undef },
'credit.credit_type_code' => { '!=' => 'Writeoff' }
'credit.credit_type_code' => { '!=' => ( 'Writeoff', 'Cancellation' ) }
},
{ join => 'credit' }
);
-