]> git.evergreen-ils.org Git - Evergreen.git/commit
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:33:21 +0000 (13:33 -0400)
commita9d88279ea90355b9c683218f8d0b0192970f40f
tree7b314edffb319c847b7af1f8bc345f143a911568
parentdc7ec6cfb60d66150ad43d4157a63ea739667217
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