diff --git a/app/models/v_contact.rb b/app/models/v_contact.rb index 5e8b8ba..5c99b91 100644 --- a/app/models/v_contact.rb +++ b/app/models/v_contact.rb @@ -37,7 +37,7 @@ class VContact < ApplicationRecord vc.last_volume_at = vc.volumes.select("datereception").first.datereception if vc.volumes.first - vc.prime = (vc.ac_rate / 100.0) * vc.cagnotte + vc.prime = (vc.ac_rate.to_f / 100.0) * vc.cagnotte vc.save end