This commit is contained in:
Nicolas Bally 2019-06-27 14:56:52 +02:00
parent f5aa994832
commit 0e20b72bef

View File

@ -286,7 +286,7 @@ class PDocument < ActiveRecord::Base
end
def paid_completed?
if self.total_paid == self.totals[:total_ttc].to_f
if self.total_paid.to_f == self.totals[:total_ttc].to_f
self.paid = true
else
self.paid = false