Sfoglia il codice sorgente

order base detail export edit

abiao 4 anni fa
parent
commit
a4ac7b722a
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  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