From a24947edb74cb7ae691208609a8cc8a0f104d54a Mon Sep 17 00:00:00 2001 From: viehlieb Date: Mon, 20 Feb 2023 23:16:00 +0100 Subject: [PATCH] add to_s.gsub --- lib/foodsoft_article_import/bnn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foodsoft_article_import/bnn.rb b/lib/foodsoft_article_import/bnn.rb index 5a3ced7..4e6bc05 100644 --- a/lib/foodsoft_article_import/bnn.rb +++ b/lib/foodsoft_article_import/bnn.rb @@ -76,7 +76,7 @@ module FoodsoftArticleImport unless row[37].nil? && row[65].nil? && row[66].nil? price_per = row[66].gsub(',', '.').to_f price = row[37].gsub(',', '.').to_f - article.merge!(:price_per => (price_per * price).to_s) + article.merge!(:price_per => (price_per * price).to_s..gsub('.', ',')) article.merge!(:unit_symbol => row[65] ) end