Bug 12314

Summary: "Pay an amount toward all fines" does not save the note
Product: Koha Reporter: paxed <pasi.kallinen>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kyle.m.hall, olli-antti.kivilahti
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description paxed 2014-05-27 05:36:18 UTC
Pay Fines -> Pay amount, the note is not saved anywhere.
Comment 1 paxed 2014-05-27 06:49:41 UTC
Looks like in paycollect.pl, $select is "", so recordpayment_selectaccts() is never called, instead recordpayment() is used. And that doesn't save any user-supplied note.

I added a quick hack to populate $select:

if (!$select) {
    my @tmp = ();
    for (my $i = 0; $i < $numaccts; $i++) {
        push(@tmp, $accts->[$i]->{'accountlines_id'}) if ($accts->[$i]->{'amountoutstanding'} > 0);
    }
    $select = join(",", @tmp);
}
Comment 2 Olli-Antti Kivilahti 2014-10-08 14:18:34 UTC

*** This bug has been marked as a duplicate of bug 12865 ***