rabin il y a 3 ans
Parent
commit
8edc47d6a9
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      service/mail/database/area_stat.php
  2. 2 2
      service/mail/lib/Manage.php

+ 2 - 2
service/mail/database/area_stat.php

@@ -162,7 +162,7 @@ return array
 
         't_buy'      => array
         (
-            'type'      => 'decimal-11,2',
+            'type'      => 'decimal-11,4',
             'name'      => '体验店采购毛利',
             'default'   => '0',
             'desc'      => '体验店采购毛利',
@@ -173,7 +173,7 @@ return array
 
         'l_buy'      => array
         (
-            'type'      => 'decimal-11,2',
+            'type'      => 'decimal-11,4',
             'name'      => '零售店采购毛利',
             'default'   => '0',
             'desc'      => '零售店采购毛利',

+ 2 - 2
service/mail/lib/Manage.php

@@ -785,7 +785,7 @@ class Manage
             }
         }
         
-        return array(round($total, 2), round($total*$per, 2), $shop);
+        return array(round($total, 4), round($total*$per, 2), $shop);
     }
     # 零售店毛利
     public function l_buy($where, $shop_id, $shop_name, $per, &$no_l)
@@ -824,7 +824,7 @@ class Manage
                 $no_l[$v] = $shop_name[$k];
             }
         }
-        return array(round($total, 2), round($total*$per, 2), $shop);
+        return array(round($total, 4), round($total*$per, 2), $shop);
     }
 
     # 区域分润