Parcourir la source

order base detail export edit

abiao il y a 4 ans
Parent
commit
a4ac7b722a
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      app/models/order_base_detail.rb

+ 5 - 2
app/models/order_base_detail.rb

@@ -32,9 +32,12 @@ class OrderBaseDetail < ActiveRecord::Base
       field :order_state do
         filterable true
         formatted_value do
-          #bindings[:object].order.paied_time
           if !bindings[:object].order.blank?
-            STATUS_ENUM[bindings[:object].order.status]
+            bindings[:object].order.status do
+              enum do
+                STATUS_ENUM
+              end
+            end
           end
         end
       end