]> 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:51:08 +0000 (16:51 -0400)
commit697417bfdc5cf83a680de9afa4f6954d5559b8e6
treec29fe809c7c8cd5533d17b6afae4740f5e450bbc
parentcd0634888fa7769017a830e798ccab6d8e6c270d
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