Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Allow 0 qty for Plaid imported trades

Zach Gollwitzer955f211fe001
diff --git a/app/models/account/trade.rb b/app/models/account/trade.rb
index 17e0b07082..3ab2241e57 100644
--- a/app/models/account/trade.rb
+++ b/app/models/account/trade.rb
@@ -5,7 +5,7 @@ class Account::Trade < ApplicationRecord
belongs_to :security
- validates :qty, presence: true, numericality: { other_than: 0 }
+ validates :qty, presence: true
validates :price, :currency, presence: true
class << self