51e8fc2cb6
Required for SIP checkin implementation, but also for internal correctness. AddReturn had too many things going on, with no guarantee of data being available for the later calls. At some point we started tacking on all the branch transfer logic without testing edge cases. In particular, $borrower is not checked to be sure it is defined, considering the item may not have been checked out so no borrower would be associated. That means that CircControl of "PatronLibrary" would be inaccurate, Circ Alerts will be totally confused (untargeted), and the Fix... subs would fail. Note that *many* errors are still present in _FixAccountForLostAndReturned, including those where comments are added, such that it might behave strangely even with $borrower. Renamed the internal subs with leading underscore, per convention. Changed the arguments to be scalars when only scalars are needed, not entire objects. Added depth to WrongBranch message that includes Rightbranch. Signed-off-by: Galen Charlton <galen.charlton@liblime.com> |
||
---|---|---|
.. | ||
data/db_schemas | ||
db_dependent | ||
lib | ||
Amazon.t | ||
Barcodes_PrinterConfig.t | ||
Bookfund.t | ||
Bookseller.t | ||
Boolean.t | ||
Branch.t | ||
Calendar.t | ||
Charset.t | ||
Circulation_barcodedecode.t | ||
database_dependent.pl | ||
Dates.t | ||
Debug.t | ||
dummy.t | ||
Input.t | ||
Koha.t | ||
Labels_split_ddcn.t | ||
Labels_split_lccn.t | ||
Languages.t | ||
Maintainance.t | ||
Makefile | ||
Members_Attributes.t | ||
Output.t | ||
Record.t | ||
Review.t | ||
rewrite-config-test.PL | ||
Scrubber.t | ||
smolder_smoke_signal | ||
Stats.t |