Selaa lähdekoodia

店长申请佣金

abiao 5 vuotta sitten
vanhempi
commit
549ebf91b8
3 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 1 0
      app/models/balance.rb
  2. 1 0
      app/models/cash_balance.rb
  3. 1 1
      app/models/invite_benefit_order.rb

+ 1 - 0
app/models/balance.rb

@@ -10,6 +10,7 @@ class Balance < ActiveRecord::Base
   SOURCE_ENUM = [["企业大使兑换", "platform_exchange"],
                  ["兑换商品", "exchange_product"],
                  ["充值", "recharge"],
+                 ["店长申请", "shop_applycation"],
                  ["群员购物扣除", "frend_buy"],
                  ["全额退款", "all_refunded"],
                  ["部分退款", "part_refunded"],

+ 1 - 0
app/models/cash_balance.rb

@@ -8,6 +8,7 @@ class CashBalance < ActiveRecord::Base
 
   SOURCE_ENUM = [["代金券充值佣金", "balance_benefit"],
                  ["商品佣金", "product_benefit"],
+                 ["店长申请", "shop_applycation"],
                  ["好友购物佣金", "fx_product_benefit"],
                  ["提现", "take_cash"],
                  ["拒绝提现", "extract_reject"],

+ 1 - 1
app/models/invite_benefit_order.rb

@@ -5,7 +5,7 @@ class InviteBenefitOrder < ActiveRecord::Base
   self.table_name = "invite_benefit_orders"  
   attr_accessor :wx_user_name, :ind_wx_user_name
 
-  SOURCE_ENUM = [["代金券充值佣金","balance_benefit"],["邀请绑定","binding"],["直推商品佣金","product_benefit"],["分享商品佣金","fx_product_benefit"],["项目佣金","project_benefit"]]
+  SOURCE_ENUM = [["店长申请佣金","shop_benefit"],["代金券充值佣金","balance_benefit"],["邀请绑定","binding"],["直推商品佣金","product_benefit"],["分享商品佣金","fx_product_benefit"],["项目佣金","project_benefit"]]
 
   def wx_user_name
     u = WxUser.where(" id = ?", self.wx_uid).first