LP1193095 lineitem batch actions sanity filters
authorBill Erickson <berick@esilibrary.com>
Thu, 20 Jun 2013 19:46:33 +0000 (15:46 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 12 Sep 2013 17:34:10 +0000 (13:34 -0400)
commite330dd4c20b1b8ccb7375b4a326069521a0879b4
tree5e686ebad83686bf713e26b12f6efe3f0f7ae543
parent22761d85fcc0edbf60eeb26be33f337aa72011f3
LP1193095 lineitem batch actions sanity filters

Avoid applying the following actions to lineitems which are in a state
where each action makes no sense.

The following actions are affected.  For each, the set of states for
which a lineitem must be in for the action to proceed is listed.

create PO
    - new selector-ready order-ready approved
add to PO
    - new selector-ready order-ready approved
create invoice
    - !cancelled
add to invoice
    - !cancelled
cancel lineitem
    - !cancelled
mark selector ready
    - new
mark order ready
    - new selector-ready
mark received
    - pending-order on-order

Depending on the interface, some top-level lineitem actions may be
globally disabled.  The list of states listed above represent the bare
minimum requirements.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/dojo/openils/acq/nls/acq.js
Open-ILS/web/js/ui/default/acq/common/li_table.js