cca / koha_snippets

code to be pasted into Koha's admin side
https://library.cca.edu
Other
4 stars 0 forks source link

cash register report: auto-record payment type in notes field #20

Closed phette23 closed 4 years ago

phette23 commented 4 years ago

As a workaround for Koha Bug 21791 Add payment type on Cash register report make the form where we add payments automatically append the payment type to the "notes" field:

Screen Shot 2020-01-29 at 10 59 05

The URL for this form is /cgi-bin/koha/members/paycollect.pl?borrowernumber={id} but already I see a problem; if you go to a patron's Accounting tab and use the Pay button for an individual fine, as opposed to the Pay amount or Pay selected buttons at the bottom, there's no notes field on the form!

no notes

Note that the URL is more complex for this Pay button because it passes not only the patron's ID but data about the fine as well: /cgi-bin/koha/members/paycollect.pl?borrowernumber={borrowernumber}&type=payment&amt={amount}&selected={fine_id}&notes= there's a "notes" parameter in the URL! Perhaps this is meant to copy the note from the fine itself (important to understand both fines and payments have a note field).