]> git.evergreen-ils.org Git - Evergreen.git/commit
Fix logic in get_compressed_holdings()
authorDan Wells <dbw2@calvin.edu>
Wed, 8 May 2013 19:09:41 +0000 (15:09 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 9 Aug 2013 15:22:12 +0000 (11:22 -0400)
commit68c1bf0152750e3d085d24bea7c9a47b80e5189a
tree21ae2087d1bfe1796f4282e20f780cbf4399ced9
parent12d88a006c06015e9bba5de483af6b987722ee7f
Fix logic in get_compressed_holdings()

[This commit has been squashed for merging. LFW]

  * This commit rearranges some of the logic branches to protect
    against an unusual case of having two holding statements with
    the same start value, but one being open-ended and one not.

  * The logic in get_combined_holdings() was a little sloppy and
    repeated some steps unnecessarily.  This cleans things up.

    See the test case in the previous commit for more clarity.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD.pm