fix: article category remove option from list

This commit is contained in:
Philipp Rothmann 2023-02-24 13:06:32 +01:00
parent 75bb400d0d
commit dfe8beae2c

View file

@ -81,7 +81,7 @@ class Supplier < ApplicationRecord
all_order_numbers = []
updated_article_pairs, outlisted_articles, new_articles = [], [], []
custom_codes_path = File.join(Rails.root, "config", "custom_codes.yml")
opts = options.except(:convert_units, :outlist_absent)
opts = options.except(:convert_units, :outlist_absent, :update_category)
custom_codes_file_path = custom_codes_path if File.exist?(custom_codes_path)
FoodsoftArticleImport.parse(file, custom_file_path: custom_codes_file_path, type: type, **opts) do |new_attrs, status, line|
article = articles.undeleted.where(order_number: new_attrs[:order_number]).first