This commit is contained in:
Nicolas Bally 2020-10-14 00:19:47 +02:00
parent d38445c454
commit 35dc99e026

View File

@ -37,7 +37,7 @@ class VContact < ApplicationRecord
vc.last_volume_at = vc.volumes.select("datereception").first.datereception if vc.volumes.first 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 vc.save
end end