Browse Source

Make purchid optional (#908)

pull/913/head
baarkerlounger 2 years ago committed by GitHub
parent
commit
d72168ab08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/sales_log.rb

2
app/models/sales_log.rb

@ -11,7 +11,7 @@ class SalesLog < Log
scope :filter_by_year, ->(year) { where(saledate: Time.zone.local(year.to_i, 4, 1)...Time.zone.local(year.to_i + 1, 4, 1)) }
scope :search_by, ->(param) { filter_by_id(param) }
OPTIONAL_FIELDS = [].freeze
OPTIONAL_FIELDS = %w[purchid].freeze
def startdate
saledate

Loading…
Cancel
Save