Fix matching of uploaded articles by order_number
This commit is contained in:
parent
7136d015c4
commit
5bf7f41005
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Supplier < ApplicationRecord
|
|||
all_order_numbers << article.order_number if article
|
||||
end
|
||||
if options[:outlist_absent]
|
||||
outlisted_articles += articles.undeleted.where.not(id: all_order_numbers+[nil])
|
||||
outlisted_articles += articles.undeleted.where.not(order_number: all_order_numbers+[nil])
|
||||
end
|
||||
return [updated_article_pairs, outlisted_articles, new_articles]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue