rabin 2 years ago
parent
commit
4a2f249b72
1 changed files with 12 additions and 12 deletions
  1. 12 12
      app/shop/src/Excel.php

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

@@ -261,24 +261,24 @@ class Excel
                     $goods_info['code'],
                     $goods_info['name'],
                     $sku,
-                    $v1['price'],
-                    $v1['num'],
-                    $v1['price']*$v1['num'],
-                    $goods_price,
+                    round($v1['price'], 2),
+                    round($v1['num'], 2),
+                    round($v1['price']*$v1['num'], 2),
+                    round($goods_price, 2),
 
                     $cdate,
                     $paydate,
                     $operdate,
                     $fdate,
 
-                    $v['num'],
+                    round($v['num'], 2),
                     round($total_cash, 2),
-                    $v['price'],
-                    $v['card_code_cash'],
-                    $v['coupon_cash'],
+                    round($v['price'], 2),
+                    round($v['card_code_cash'], 2),
+                    round($v['coupon_cash'], 2),
                     $status[$v['status']],
                     $refund_status,
-                    $v['refund_cash'],
+                    round($v['refund_cash'], 2),
                 );
 
                 $body[] = $d;
@@ -305,10 +305,10 @@ class Excel
                             $v2['code'],
                             $v2['name'] . '('.$goods_info['name'].')',
                             $sku,
-                            $v2['price'],
-                            $v2['num'],
+                            round($v2['price'], 2),
+                            round($v2['num'], 2),
                             $p,
-                            $goods_price1,
+                            round($goods_price1, 2),
 
                             $cdate,
                             $paydate,