Suite
This commit is contained in:
parent
f5aa994832
commit
0e20b72bef
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user