Acq: Line item batch update API method
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 12 Feb 2013 19:40:27 +0000 (14:40 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 11 Mar 2013 21:24:43 +0000 (17:24 -0400)
commitcef71a60775d0b1138ffa9c6493cacf41675f42b
tree54301561e95d195a24e544037bd7d64b3e279aa7
parent155b3b2faaaf60907a30b7c8b37f82c27867a11d
Acq: Line item batch update API method

This new method gives you a server-side way to make batch updates to
all the copies of a target set of lineitems.  Permissions are checked
for each target object.  The method returns OpenILS::Event instances
for all kinds of permission problems and other errors.  IDs of lineitems
affected are streamed back to the client in the successful case.

This also expands distribution formulae to contain more (optional)
fields so that they can be used to make updates to copies on all the
same fields that you can just specify individually.  IDL and interface
changes to support the new fields are included.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem/BatchUpdate.pm [new file with mode: 0644]
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq.distribution_formula.expansion.sql [new file with mode: 0644]
Open-ILS/src/templates/conify/global/acq/distribution_formula.tt2
Open-ILS/web/js/ui/default/conify/global/acq/distribution_formula.js