소스 검색

promotion add cash and cent

abiao 5 년 전
부모
커밋
849862b310
1개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  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