Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.