mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Merge branch 'registry-772' into registry-623
# Conflicts: # app/models/invoice.rb # db/structure.sql
This commit is contained in:
commit
7acd41595c
10 changed files with 29 additions and 12 deletions
|
@ -27,7 +27,7 @@ class Invoice < ActiveRecord::Base
|
|||
attr_accessor :billing_email
|
||||
validates :billing_email, email_format: { message: :invalid }, allow_blank: true
|
||||
|
||||
validates :invoice_type, :due_date, :currency, :seller_name,
|
||||
validates :due_date, :currency, :seller_name,
|
||||
:seller_iban, :buyer_name, :invoice_items, :vat_rate, presence: true
|
||||
validates :vat_rate, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 99 }, allow_nil: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue