Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Allow 0 qty for Plaid imported trades

Zach Gollwitzer955f211fe001
diff --git a/app/models/account/trade.rb b/app/models/account/trade.rb
index 17e0b070..3ab2241e 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