rabin 1 年間 前
コミット
bb31a8768a
1 ファイル変更7 行追加0 行削除
  1. 7 0
      lib/Log.php

+ 7 - 0
lib/Log.php

@@ -81,6 +81,13 @@ class Log
         $info['type_name'] = Dever::load("account/config_type-one#name", $info['type_id']);
         $info['cdate_string'] = date('Y-m-d H:i', $info['cdate']);
         $info['fee'] = Dever::number($info['ycash'] - $info['cash']);
+
+        $type = Dever::db('account/config_type')->one($info['type_id']);
+        if ($type['type'] == 2) {
+            $info['ycash'] = -1*$info['ycash'];
+            $info['cash'] = -1*$info['cash'];
+            $info['fee'] = -1*$info['fee'];
+        }
         return $info;
     }