LP#1257915 Repair receive-when-cancel query collab/berick/lp1257915-mark-po-recvd-with-canceled-lis
authorBill Erickson <berickxx@gmail.com>
Wed, 12 Apr 2017 20:54:25 +0000 (16:54 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 12 Apr 2017 20:58:25 +0000 (16:58 -0400)
commit3846c506a7c712124d46bdf5a649a31a609d3049
tree2b4144d8eb93967c0d93c1c88e231a1820689900
parent3870e19d6c7ee06d954da83fe8c2ae2a7bae2b59
LP#1257915 Repair receive-when-cancel query

Repaire the json_query used to determine if a PO is ready to be marked
received.

A PO is non-receiveable if it has any lineitems that are not in the
received/cancelled [sic] state OR any that are canceled with a
keep_debits=true cancel reason.

Prior to this change, simply having a state of "cancelled" was enough to
prevent receiving.

* Replace tabs w/ spaces
* Remove unnecessary "or return 0" clause which was causing Perl
  precedence warnings.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm