abiao 4 년 전
부모
커밋
778e03d8f7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/models/cash_balance.rb

+ 3 - 3
app/models/cash_balance.rb

@@ -41,10 +41,10 @@ class CashBalance < ActiveRecord::Base
       return self.count
     end
   end
-  const total=0
+  $total=0
   def get_happen_total
-    total= total+self.count
-    return total
+    $total= $total+self.count
+    return $total
   end
 
   def profit_state