From 49d4dd1e40dfe4754e44c6e2da1f8e7fd7134220 Mon Sep 17 00:00:00 2001 From: Brice TEXIER Date: Tue, 24 Feb 2015 12:32:37 +0100 Subject: [PATCH] Removes puts --- .../show.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/backend/cells/threshold_commercialization_by_production_cells/show.html.haml b/app/views/backend/cells/threshold_commercialization_by_production_cells/show.html.haml index f40de8cc11..9264b3d591 100644 --- a/app/views/backend/cells/threshold_commercialization_by_production_cells/show.html.haml +++ b/app/views/backend/cells/threshold_commercialization_by_production_cells/show.html.haml @@ -74,16 +74,16 @@ b = 1 # z : rendement de la prodution (budget_item, sens: revenus et varieties: grain) budgets = @production.revenues.where(variant_id: ProductNatureVariant.of_variety(:grain).derivative_of(@production.variant.variety).pluck(:id)) - puts budgets.inspect.yellow + # puts budgets.inspect.yellow if budgets.first z = budgets.first.items.average(:quantity).to_s.to_f - puts z.inspect.green + # puts z.inspect.green # c : charges globales [global_charges_by_working_unit] c = global_charges_by_working_unit.to_s.to_f # y [€/ton] = (ax + c [€/Ha]) / bz[qt/Ha] * 10 y = (((a * x) + c) / (b * z)) * 10 - puts @production.name - puts y.to_s.to_f.inspect.red + # puts @production.name + # puts y.to_s.to_f.inspect.red end .med-info.important