| Summary: | "Pay an amount toward all fines" does not save the note | ||
|---|---|---|---|
| Product: | Koha | Reporter: | paxed <pasi.kallinen> |
| Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | gmcharlt, kyle, olli-antti.kivilahti |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Crowdfunding goal: | 0 |
| 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
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);
}
|