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
|
all_order_numbers << article.order_number if article
|
||||||
end
|
end
|
||||||
if options[:outlist_absent]
|
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
|
end
|
||||||
return [updated_article_pairs, outlisted_articles, new_articles]
|
return [updated_article_pairs, outlisted_articles, new_articles]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue