LP#1175740 Acq: If deleting line items with copies, remove fund debits and maybe... user/csharp/lp1175740-acq-li-delete-debits-and-copies
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 11 Jun 2013 21:28:17 +0000 (17:28 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 25 Sep 2016 00:27:06 +0000 (20:27 -0400)
commitd13a3450f0f406a66eb55920f3fbee5dbb127884
tree9cb6589f66f03cd61108690ed1f373b5e9922758
parent9dd9dcaf74f72a84a46d9ac60a1d5c13ba932eff
LP#1175740 Acq: If deleting line items with copies, remove fund debits and maybe copies

Depending on workflow, there are times when users might delete Acq line
items that have fund debits and/or real catalog copies attached to them.

We should always delete such fund debits when deleting line items (since
those debits otherwise become invisible and just throw off fund
balances), and we should also delete copies *iff* the staff user
confirms that's what they mean to do, and they have the DELETE_COPY
permission, of course.

This should resolve https://bugs.launchpad.net/evergreen/+bug/1175740

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm
Open-ILS/src/templates/acq/common/li_table.tt2
Open-ILS/web/css/theme/default/acq.css
Open-ILS/web/js/dojo/openils/Util.js
Open-ILS/web/js/ui/default/acq/common/li_table.js