mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-05 01:10:43 -04:00
Initial line item idea
This commit is contained in:
1 parent
b95a3b6623
commit
eb6beea5fa
12 files changed
+2716
-28
No files matched your search
@@ -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