From f9db55110c15ef7819c42355cee53594ddde640c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 22 Dec 2017 16:39:33 +0100 Subject: [PATCH] Rakefile: fix cost generaltion --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 3b5a3c1..67175f5 100644 --- a/Rakefile +++ b/Rakefile @@ -548,7 +548,7 @@ targets.each do |target| end line << unit_price line << total_price - sum[seller_i][boards_i] += line[-1] + sum[seller_i][boards_i] += (line[-1] || 0.0) stocks[seller_i][boards_i] &= (quantity<=price["in_stock_quantity"]) end else # no price available