From 8a4dd5b2531a78c1fcef520a89337a600c3d1917 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 12 Nov 2020 22:48:02 +0800 Subject: [PATCH] Fix bug. --- app/models/venue_management_bill.rb | 1 + app/models/venue_management_contract.rb | 1 + app/models/venue_management_inviting.rb | 1 + app/models/venue_management_memorabilia.rb | 1 + 4 files changed, 4 insertions(+) diff --git a/app/models/venue_management_bill.rb b/app/models/venue_management_bill.rb index 68b9741..e185155 100644 --- a/app/models/venue_management_bill.rb +++ b/app/models/venue_management_bill.rb @@ -2,6 +2,7 @@ require 'orbit_form_helper' class VenueManagementBill include Mongoid::Document include Mongoid::Timestamps + require 'mongoid/enum' include Mongoid::Enum BILLTYPE = {'venue_fee'=>["usage_fee", "royalties", "admin_fee", "land_rent"],'utility_bill'=>['electricity','water'],'tax'=>['house_tax','land_tax'],'prejudgment_interest'=>["usage_fee", "royalties", "admin_fee", "land_rent",'electricity','water','house_tax','land_tax','other'],'other'=>['penalty','other']} NOTFIELDKEY = ['float','fields','clear','no_margin','unit','display_title','display_unit','option_select'] diff --git a/app/models/venue_management_contract.rb b/app/models/venue_management_contract.rb index b7e888d..a99ad24 100644 --- a/app/models/venue_management_contract.rb +++ b/app/models/venue_management_contract.rb @@ -5,6 +5,7 @@ require 'orbit_form_helper' class VenueManagementContract include Mongoid::Document include Mongoid::Timestamps + require 'mongoid/enum' include Mongoid::Enum PAYERS = [ :school, :vendor].freeze diff --git a/app/models/venue_management_inviting.rb b/app/models/venue_management_inviting.rb index 4824618..56c71cd 100644 --- a/app/models/venue_management_inviting.rb +++ b/app/models/venue_management_inviting.rb @@ -5,6 +5,7 @@ require 'orbit_form_helper' class VenueManagementInviting include Mongoid::Document include Mongoid::Timestamps + require 'mongoid/enum' include Mongoid::Enum include OrbitTag::Taggable PAYERS = [ :school, :vendor].freeze diff --git a/app/models/venue_management_memorabilia.rb b/app/models/venue_management_memorabilia.rb index befe29a..ae72add 100644 --- a/app/models/venue_management_memorabilia.rb +++ b/app/models/venue_management_memorabilia.rb @@ -1,6 +1,7 @@ class VenueManagementMemorabilia include Mongoid::Document include Mongoid::Timestamps + require 'mongoid/enum' include Mongoid::Enum field :event_date, type: Date, default: Time.now