[Koha-bugs] [Bug 28432] When refunding lost fees we should not include voided payments [20.11 and below]

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 24 13:59:01 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28432

--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Pretty confident in the test.. but no idea how to resolve the actual bug..

I've tried using joins to look at the credit line status.. but for some reason
that breaks all sorts..

>  my $credits_offsets = Koha::Account::Offsets->search(
>      {
>          debit_id  => $lost_charge->id,
>          credit_id => { '!=' => undef },     # it is not the debit itself
>          'credit.credit_type_code' => { '!=' => 'Writeoff' },
>          'credit.status'           => { '!=' => 'VOID' },
>      },
>      { join => 'credit' }
>  );

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list