rabin před 2 roky
rodič
revize
5ca0f8f2d4
1 změnil soubory, kde provedl 23 přidání a 23 odebrání
  1. 23 23
      app/shop/src/Excel.php

+ 23 - 23
app/shop/src/Excel.php

@@ -718,21 +718,21 @@ class Excel
                     $order_type[$v['type']],
 
                     $v['order_num'],
-                    $v['num'],
-                    $v['p_price'],
+                    round($v['num'], 2),
+                    round($v['p_price'], 2),
 
                     $goods_info['code'],
                     $goods_info['name'],
                     $sku,
-                    $v1['p_price'],
-                    $v1['num'],
-                    $v1['p_price']*$v1['num'],
+                    round($v1['p_price'], 2),
+                    round($v1['num'], 2),
+                    round($v1['p_price']*$v1['num'], 2),
 
                     $cdate,
                     $fdate,
                     $status[$v['status']],
                     $num,
-                    $v['refund_p_cash'],
+                    round($v['refund_p_cash'], 2),
                 );
 
                 $body[] = $d;
@@ -785,15 +785,15 @@ class Excel
                     $info_type[$info['type']],
 
                     $v['order_num'],
-                    $v['num'],
-                    $v['price'],
+                    round($v['num'], 2),
+                    round($v['price'], 2),
 
                     $goods_info['code'],
                     $goods_info['name'],
                     $sku,
-                    $v1['price'],
-                    $v1['num'],
-                    $v1['price']*$v1['num'],
+                    round($v1['price'], 2),
+                    round($v1['num'], 2),
+                    round($v1['price']*$v1['num'], 2),
 
                     $cdate,
                     $config_type[$v['out_type']]['name'],
@@ -846,15 +846,15 @@ class Excel
                 (
                     $info['name'],
                     $v['order_num'],
-                    $v['num'],
-                    $v['price'],
+                    round($v['num'], 2),
+                    round($v['price'], 2),
 
                     $goods_info['code'],
                     $goods_info['name'],
                     $sku,
-                    $v1['price'],
-                    $v1['num'],
-                    $v1['price']*$v1['num'],
+                    round($v1['price'], 2),
+                    round($v1['num'], 2),
+                    round($v1['price']*$v1['num'], 2),
 
                     $cdate,
                     $config_type[$v['out_type']]['name'],
@@ -928,14 +928,14 @@ class Excel
                     $goods_info['name'],
                     $sku,
 
-                    $v['cur_num'],
-                    $v['sell_num'],
-                    $v['online_num'],
-                    $v['total_num'],
+                    round($v['cur_num'], 2),
+                    round($v['sell_num'], 2),
+                    round($v['online_num'], 2),
+                    round($v['total_num'], 2),
 
-                    $v['num'],
-                    $v['after_cur_num'],
-                    $v['after_total_num'],
+                    round($v['num'], 2),
+                    round($v['after_cur_num'], 2),
+                    round($v['after_total_num'], 2),
                     $cdate,
                 );