Koha-clms/C4/SIP/ILS/Transaction
Ian Walls c8e99f313f Bug 6273: add support for recording type of payment made via SIP2
Adds support for recording in Koha accountlines a different accounttype
depending on how the fee was paid at the SIP2 station (cash, credit,
etc.)

Adds a new param to recordpayment(), $sip_paytype, which is appended to
the 'Pay' type if present.  The payment description is also appended
with " (via SIP2)" if this is present.

In order for other scripts to keep working as expected, "eq 'Pay'"
needed to be replaced with a regex comparison "=~ /^Pay/", so that 'Pay'
and 'Pay-##' would continue to group together.

To test:
1.  Make a payment over a SIP2 connection
2.  Check the patron record in the staff client; you should see the
    modified description
3.  Attempt to print a invoice or a reciept for the borrower; the
    payment should show up where expected

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-04-30 16:38:09 +00:00
..
Checkin.pm Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
Checkout.pm Bug 8429: Remove unnecessary use of Exporter from SIP/ILS 2012-11-30 17:50:10 -05:00
FeePayment.pm Bug 6273: add support for recording type of payment made via SIP2 2014-04-30 16:38:09 +00:00
Hold.pm Bug 9394: (follow-up) stylistic tidying 2013-07-24 05:04:57 +00:00
Renew.pm Bug 8429: Remove unnecessary use of Exporter from SIP/ILS 2012-11-30 17:50:10 -05:00
RenewAll.pm Bug 8429: Remove unnecessary use of Exporter from SIP/ILS 2012-11-30 17:50:10 -05:00