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:32:11 +0000 (16:32 -0400)
commitacc105d7fb2f28bb24faad0314329923c0695124
tree34e85249637f6399338675ecbe3a2db4df4ed317
parentee186a748837e175c23e834a0ce4ef6acc5ef895
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