]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1257915 Repair receive-when-cancel query
authorBill Erickson <berickxx@gmail.com>
Wed, 12 Apr 2017 20:54:25 +0000 (16:54 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 1 May 2017 20:50:43 +0000 (16:50 -0400)
commit076328c9e501f5b33274212428d0fad01aaa81db
tree884050cbcd73914165294903b49cf167ce67b4df
parent69834618324cac093849d83ab06475d8ea1d58cf
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>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm