class School::Accounting::Invoices::ConfigsController < ApplicationController
  def show
    render_success :ok, json: config_props
  end

  private
    def config
      @config ||= current_school.find_or_build_accounting_invoice_config
    end

    def config_props
      {
        enabled: config.enabled,
        include_allocations: config.include_allocations
      }
    end
end
