Browse Source

Clear total charge as well (#1095)

pull/1114/head
kosiakkatrina 2 years ago committed by GitHub
parent
commit
12824d1149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/lettings_log.rb
  2. 1
      spec/models/lettings_log_spec.rb

1
app/models/lettings_log.rb

@ -555,6 +555,7 @@ private
self.scharge = nil
self.pscharge = nil
self.supcharg = nil
self.tcharge = nil
end
errors.clear

1
spec/models/lettings_log_spec.rb

@ -2073,6 +2073,7 @@ RSpec.describe LettingsLog do
expect(lettings_log.scharge).to eq(nil)
expect(lettings_log.pscharge).to eq(nil)
expect(lettings_log.supcharg).to eq(nil)
expect(lettings_log.tcharge).to eq(nil)
end
it "does not impact other validations" do

Loading…
Cancel
Save