diff --git a/app/jobs/amend_backorder_job.rb b/app/jobs/amend_backorder_job.rb index 4b85beec15..883bed5328 100644 --- a/app/jobs/amend_backorder_job.rb +++ b/app/jobs/amend_backorder_job.rb @@ -27,9 +27,9 @@ class AmendBackorderJob < ApplicationJob user = order.distributor.owner urls = nil # Not needed to send order. The backorder id is the URL. FdcBackorderer.new(user, urls).send_order(backorder) - elsif order.order_cycle.open? + elsif !order.order_cycle.closed? - # We don't have an order to amend but the order cycle is open. + # We don't have an order to amend but the order cycle is or will open. # We can assume that this job was triggered by an admin creating a new # order or adding backorderable items to an order. BackorderJob.new.place_backorder(order)