Rakefile: fix cost generaltion

This commit is contained in:
King Kévin 2017-12-22 16:39:33 +01:00
parent 353f1eae00
commit f9db55110c
1 changed files with 1 additions and 1 deletions

View File

@ -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