add datefield default values max value cannot be blank

This commit is contained in:
viehlieb 2022-03-30 15:49:53 +02:00
parent 368375818e
commit 5a817a9acb
5 changed files with 7 additions and 14 deletions

View file

@ -37,9 +37,9 @@ class GroupOrderInvoicesController < ApplicationController
goi.invoice_number = goi.generate_invoice_number(1)
goi.save!
end
redirect_back fallback_location: root_path
rescue => error
redirect_back fallback_location: root_path, notice: 'Something went wrong', :alert => I18n.t('errors.general_msg', :msg => error)
respond_to do |format|
format.js
end
end
def create