mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 16:21:58 -04:00
Initial line item idea
This commit is contained in:
7
app/models/line_item.rb
Normal file
7
app/models/line_item.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class LineItem < ApplicationRecord
|
||||
belongs_to :issue
|
||||
|
||||
validates :description, presence: true
|
||||
validates :quantity, numericality: { greater_than: 0 }
|
||||
validates :unit_price, numericality: { greater_than_or_equal_to: 0 }
|
||||
end
|
||||
Reference in New Issue
Block a user