Explorar o código

order base detail export edit

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
097e47f38e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/models/order_base_detail.rb

+ 2 - 0
app/models/order_base_detail.rb

@@ -4,6 +4,8 @@ class OrderBaseDetail < ActiveRecord::Base
   self.table_name = "order_base_details"
   validates :order_no,:order_dt_id,:product_id, presence: true
   belongs_to :order, :foreign_key => :order_id
+  attr_accessor :get_order_state
+
   def get_order_state(x)
     case x
     when "unpay"