mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Merge pull request #1107 from internetee/require-invoice-issue-date
Change `invoices.issue_date` database column to `NOT NULL`
This commit is contained in:
commit
1863da189e
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