Ver código fonte

promotion add cash and cent

abiao 5 anos atrás
pai
commit
849862b310
1 arquivos alterados com 12 adições e 2 exclusões
  1. 12 2
      app/models/promotion.rb

+ 12 - 2
app/models/promotion.rb

@@ -100,8 +100,18 @@ class Promotion < ActiveRecord::Base
           field :send_prodcut1
           field :send_prodcut2
           field :send_prodcut3
-          field :cash
-          field :cent
+          field :cash do
+            label "代办金(元)"
+            formatted_value do # used in form views
+              value.to_f / 100
+            end
+          end
+          field :cent do
+            label "积分(元)"
+            formatted_value do # used in form views
+              value.to_f / 100
+            end
+          end
           field :is_enable
           field :created_at
         end