Browse Source

Update setup_completed? to check all the setup sections

pull/990/head
Kat 4 years ago
parent
commit
af7923e90a
  1. 2
      app/models/sales_log.rb

2
app/models/sales_log.rb

@ -49,6 +49,6 @@ class SalesLog < Log
end end
def setup_completed? def setup_completed?
form.setup_sections.first.subsections.first.status(self) == :completed form.setup_sections.all? { |sections| sections.subsections.all? { |subsection| subsection.status(self) == :completed } }
end end
end end

Loading…
Cancel
Save