aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2017-12-22 16:39:33 +0100
committerKing Kévin <kingkevin@cuvoodoo.info>2017-12-22 16:39:33 +0100
commitf9db55110c15ef7819c42355cee53594ddde640c (patch)
tree43e9f69e7eff219ac18f4853edc449f57157582e
parent353f1eae009c013eed3eeefa23dd226a12261a56 (diff)
Rakefile: fix cost generaltion
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
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