mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
parent
6fa1ce9128
commit
30ea880211
6 changed files with 8 additions and 60 deletions
|
@ -26,7 +26,6 @@ class Invoice < ActiveRecord::Base
|
|||
|
||||
scope :overdue, -> { unpaid.non_cancelled.where('due_date < ?', Time.zone.today) }
|
||||
|
||||
validates :issue_date, presence: true
|
||||
validates :due_date, :currency, :seller_name,
|
||||
:seller_iban, :buyer_name, :items, presence: true
|
||||
validates :vat_rate, numericality: { greater_than_or_equal_to: 0, less_than: 100 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue