Always require invoice VAT rate

Closes #1031
This commit is contained in:
Artur Beljajev 2019-03-07 17:42:21 +02:00
parent d85e57d800
commit 7723a30d1b
17 changed files with 240 additions and 200 deletions

View file

@ -2,6 +2,7 @@ module Admin
class RegistrarsController < BaseController
load_and_authorize_resource
before_action :set_registrar, only: [:show, :edit, :update, :destroy]
helper_method :registry_vat_rate
def index
@q = Registrar.joins(:accounts).ordered.search(params[:q])
@ -74,5 +75,9 @@ module Admin
:billing_email,
:language)
end
def registry_vat_rate
Registry.current.vat_rate
end
end
end