]> git.koha-community.org Git - koha.git/commit
Bug 12122: TransferSlip should accept both itemnumber and barcode
authorBenjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Tue, 22 Apr 2014 12:09:16 +0000 (14:09 +0200)
committerMason James <mtj@kohaaloha.com>
Wed, 22 Apr 2015 12:32:50 +0000 (00:32 +1200)
commit9db4d7e204432269ccb5bd658ac6dc6d4f5a614b
tree8dea673e665fedc4a52908feb9cd93be40654e3c
parent11b5c4b10ad02f24c82886a0103948ca9993ea89
Bug 12122: TransferSlip should accept both itemnumber and barcode

Added small patch to allow barcode as input in TransferSlip routine, mostly
to allow generating transfer slips where only barcode is present (aka.
javascript).

Test plan:
1) find book with <barcode> and <itemnumber>
2) generate transferslips with both:
  transfer-slip.pl?transferitem=<itemnumber>3967925&amp;branchcode=MPL&amp;op=slip
  transfer-slip.pl?barcode=<barcode>&amp;branchcode=MPL&amp;op=slip
and verify that the generated slips match.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Edit:
 - Added tests in t/db_dependent/Circulation_transfers.t

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Passes tests and QA script.
Works with both itemnumber or barcode as described.
Tested printing transfer slips with the URL examples given
and in the UI.
C4/Circulation.pm
circ/transfer-slip.pl
t/db_dependent/Circulation_transfers.t