add price per and unit_symbol to article

This commit is contained in:
viehlieb 2023-02-20 22:50:55 +01:00
parent f1cd4de3e6
commit 249d232e0d

View file

@ -75,8 +75,8 @@ module FoodsoftArticleImport
# article.merge!(:scale_quantity => row[40], :scale_price => row[41]) unless row[40].nil? or row[41].nil? # article.merge!(:scale_quantity => row[40], :scale_price => row[41]) unless row[40].nil? or row[41].nil?
unless row[37].nil? && row[65].nil? && row[66].nil? unless row[37].nil? && row[65].nil? && row[66].nil?
article.merge!(:scale_unit_price => row[66].to_f * row[37].to_f) article.merge!(:price_per => row[66].to_f * row[37].to_f)
article.merge!(:scale_unit => row[65] ) article.merge!(:unit_symbol => row[65] )
end end