Acq: If deleting line items with copies, remove fund debits and maybe copies user/senator/acq-li-delete-debits-and-copies
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 11 Jun 2013 21:28:17 +0000 (17:28 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 12 Jun 2013 21:33:29 +0000 (17:33 -0400)
commit4e79ea3deabf4976565c822165ab2dc734c389e9
tree192966dd773420a7c5b78ac6ef71bed1549f71a4
parentbadc7282c92497a9a0f511378d81c2ed7f175263
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