From 249d232e0ddad26353647479a294fe9ce4c3463a Mon Sep 17 00:00:00 2001 From: viehlieb Date: Mon, 20 Feb 2023 22:50:55 +0100 Subject: [PATCH] add price per and unit_symbol to article --- lib/foodsoft_article_import/bnn.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/foodsoft_article_import/bnn.rb b/lib/foodsoft_article_import/bnn.rb index cb69e44..6c667fa 100644 --- a/lib/foodsoft_article_import/bnn.rb +++ b/lib/foodsoft_article_import/bnn.rb @@ -75,8 +75,8 @@ module FoodsoftArticleImport # 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? - article.merge!(:scale_unit_price => row[66].to_f * row[37].to_f) - article.merge!(:scale_unit => row[65] ) + article.merge!(:price_per => row[66].to_f * row[37].to_f) + article.merge!(:unit_symbol => row[65] ) end