dever 3 lat temu
rodzic
commit
5f8ac9fb89
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      service/option/lib/Cash.php

+ 6 - 1
service/option/lib/Cash.php

@@ -150,7 +150,12 @@ class Cash
             $where['audit'] = $audit;
         }
         $table = 'option/bill_' . $table;
-        $data = Dever::db($table)->getData($where);
+        if ($status == 2) {
+            $data = Dever::db($table)->select($where);
+        } else {
+            $data = Dever::db($table)->getData($where);
+        }
+        
         if ($data) {
             $audit = Dever::db($table)->config['config_audit'];
             foreach ($data as $k => $v) {