LP#1379815 Add missing behavior to update_copy_stat_entries
authorDan Wells <dbw2@calvin.edu>
Wed, 8 Oct 2014 17:35:43 +0000 (13:35 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 13 Oct 2014 19:47:47 +0000 (15:47 -0400)
commit67e5e3cf8f6e1c34b0c625172624c2bb041f3a6b
treeaeedfe5d3119ff39a8bf35d5c39989bb3a1f87c9
parentcb9bc278ee2b0731413b29a2ae0818063bcc4044
LP#1379815 Add missing behavior to update_copy_stat_entries

The current function doesn't provide the level of control we need, even
with the 'delete_stats' flag set to zero. This commit adds a new
'add_or_update_only' option which preserves existing stat cat entry maps
for any stat cat not represented on the incoming copy object, and
updates values when appropriate.

This commit also updates the function comment for better clarity.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm