rabin 2 tahun lalu
induk
melakukan
4c1394bd5d
1 mengubah file dengan 16 tambahan dan 16 penghapusan
  1. 16 16
      app/shop/src/Excel.php

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

@@ -389,15 +389,15 @@ class Excel
 
                     $source,
                     $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,
                     $status[$v['status']],
@@ -470,13 +470,13 @@ class Excel
                     $info['name'],
                     $source,
                     $v['order_num'],
-                    $v['num'],
-                    $v1['p_price'],
+                    round($v['num'], 2),
+                    round($v1['p_price'], 2),
 
                     $goods_info['code'],
                     $goods_info['name'],
                     $sku,
-                    $v1['num'],
+                    round($v1['num'], 2),
 
                     $cdate,
                     $fdate,
@@ -552,22 +552,22 @@ 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,
                     $fdate,
                     $status[$v['status']],
                     $refund_status,
                     $num,
-                    $v['refund_cash'],
+                    round($v['refund_cash'], 2),
                 );
 
                 $body[] = $d;
@@ -634,12 +634,12 @@ class Excel
                     $info['name'],
 
                     $v['order_num'],
-                    $v['num'],
+                    round($v['num'], 2),
 
                     $goods_info['code'],
                     $goods_info['name'],
                     $sku,
-                    $v1['num'],
+                    round($v1['num'], 2),
 
                     $cdate,
                     $fdate,