Bugs 6634: manager_id not recorded for payments and rental charges
authorIan Walls <ian.walls@bywatersolutions.com>
Wed, 27 Jul 2011 02:11:42 +0000 (22:11 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 15 Aug 2011 03:28:29 +0000 (15:28 +1200)
commit18c491542bd6e4dfd580ea3913a394fbdb8acd5a
tree167ad6a9223e3bbffcd8dacb00ed8bc276c2a670
parent1d0c85a4a865caf82e69919b2110382be8c4539b
Bugs 6634: manager_id not recorded for payments and rental charges

Manager_id, the borrowernumber of the staff person doing the action, was not recorded
for payments, rental charges, or rental charges on renewals.  This patch implements that.

This patch also adds the recording of itemnumber in a payment, by taking the itemnumber of
the account that it's paying off.  This addresses bug 2696, though it does not make any
change to the display logic of the Payments line in the staff client.

To test:
1.  Check out an item with an issuing charge
2.  Renew the item
3.  Pay one of the rental charges on the item
4.  Verify in koha.accountlines that each of the three above operations recorded your borrowernumber
in accountlines.manager_id

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Accounts.pm
C4/Circulation.pm