add datefield default values max value cannot be blank
This commit is contained in:
parent
368375818e
commit
5a817a9acb
5 changed files with 7 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue