Acq: Prevent interface from attempting repeat receives, unreceives user/senator/acq-prevent-rereceive-reunreceive
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 30 May 2013 16:09:10 +0000 (12:09 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 30 May 2013 16:18:08 +0000 (12:18 -0400)
commit6711fad995004016849c838b3e5939365632ed72
treef3251ad64198341c70ef13ba9b1333c20c3581d7
parent7c6ecb3a940bcb7a3b50650be7f44a202d93e438
Acq: Prevent interface from attempting repeat receives, unreceives

If staff should select received lineitems and try to receive them
again, or if staff selects unreceived lineitems and tries to unreceive
them again, Evergreen doesn't do anything wrong to the data, but the
interface can get stuck on the page where you see counts next to labels
like "Lineitems Processed" and so on.

This should fix that by filtering out any received lineitems from
the list that the interface will pass to the receive operation, and
any already unreceived lineitems that the interface will pass to the
unreceive operation.

If you have nothing selected but inappropriate lineitems, the alert
message you get will just say "You have not selected any lineitems."

This is admittedly a bit confusing, but I have heard that for bugfixes
we can't change strings or introduce new ones because to do so makes
trouble for translators. So we have to rely on the strings we already
have.  If I am mistaken about this, we can happily change the alert
message to be more clear.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/web/js/ui/default/acq/common/li_table.js