rabin 1 năm trước cách đây
mục cha
commit
bb31a8768a
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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;
     }