Fix matching of uploaded articles by order_number

This commit is contained in:
JuliusR 2019-06-13 09:25:26 +02:00 committed by wvengen
parent 7136d015c4
commit 5bf7f41005

View file

@ -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