]> git.koha-community.org Git - koha.git/commit
Returns reworking to handle empty GetItemIssue
authorJoe Atzberger <joe.atzberger@liblime.com>
Thu, 18 Jun 2009 16:31:33 +0000 (11:31 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 24 Jun 2009 14:44:39 +0000 (09:44 -0500)
commite8908c2f97222dddd43474826e61d97a49e7ae9a
tree8c6528dd323d8808cb5ca739d697acfadb050a5a
parent5169a4cb4a9988f25bee99e7af56293c27f0ec3c
Returns reworking to handle empty GetItemIssue

Code cannot rely on issueinformation being populated.

Note there is room for better efficiency to have AddReturn also provide the
itemnumber (where existing) so that GetItemnumberFromBarcode is not called
at both levels.  Unfortunately there is discrepancy between this idea (for
efficiency) and the stated purpose of the $iteminformation object returned,
since $iteminformation is specifically the info from the issues table and
MUST be empty when the item was not in fact issued.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Circulation.pm
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl