dever 3 yıl önce
ebeveyn
işleme
b438511c2e

+ 1 - 1
app/cash/database/factory.php

@@ -106,7 +106,7 @@ return array
             'desc'      => '对账金额',
             'match'     => 'option',
             'update'    => 'text',
-            'list'      => true,
+            'list'      => 'Dever::load("cash/lib/set.getCash", "{cash}")',
         ),
 
         'num'      => array

+ 1 - 1
app/cash/database/shop.php

@@ -111,7 +111,7 @@ return array
             'desc'      => '对账金额',
             'match'     => 'option',
             'update'    => 'text',
-            'list'		=> true,
+            'list'      => 'Dever::load("cash/lib/set.getCash", "{cash}")',
         ),
 
         'num'      => array

+ 4 - 0
app/cash/lib/Set.php

@@ -6,6 +6,10 @@ use Dever;
 
 class Set
 {
+    public function getCash($cash)
+    {
+        return floor($cash, 2);
+    }
     public function info($audit_type, $audit)
     {
         $config = Dever::db('cash/order')->config;