module EducodeSales class InvoiceApply < ApplicationRecord belongs_to :business belongs_to :staff belongs_to :take_ticket, class_name: 'Staff', optional: true has_many :invoice_details has_many :invoices enum category: ['纸质专用发票', '纸质普通发票', '电子普通发票'] enum state: ['审核中', '已开票'] end end