Skip to content

Instantly share code, notes, and snippets.

@chrissharp123
Created January 10, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrissharp123/6bdb800ed329dda418502e7cd0d2914b to your computer and use it in GitHub Desktop.
Save chrissharp123/6bdb800ed329dda418502e7cd0d2914b to your computer and use it in GitHub Desktop.
change to EDI pusher
diff --git a/Open-ILS/src/support-scripts/edi_order_pusher.pl b/Open-ILS/src/support-scripts/edi_order_pusher.pl
index c6c8c11..af56700 100755
--- a/Open-ILS/src/support-scripts/edi_order_pusher.pl
+++ b/Open-ILS/src/support-scripts/edi_order_pusher.pl
@@ -129,7 +129,10 @@ if ($po_id) {
},
where => {
'+acqpo' => {
- order_date => {'!=' => undef} # activated
+ '-and' => [
+ {order_date => {'!=' => undef}}, # activated
+ {state => 'on-order'} # only send POs that are in 'on-order' status
+ ]
},
'+acqpro' => {
active => 't',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment