|
@@ -84,6 +84,27 @@ class Excel
|
|
|
$refund_status = '未退款';
|
|
|
}
|
|
|
|
|
|
+ if ($k1 == 0) {
|
|
|
+ $goods_price = $v['price'];
|
|
|
+ $d_total_cash = round($total_cash, 2);
|
|
|
+ $d_price = round($v['price'], 2);
|
|
|
+ $d_refund_cash = round($v['refund_cash'], 2);
|
|
|
+ $d_card_code_cash = round($v['card_code_cash'], 2);
|
|
|
+ $d_wallet_cash = round($v['wallet_cash'], 2);
|
|
|
+ $d_coupon_cash = round($v['coupon_cash'], 2);
|
|
|
+ $d_discount_cash = round($v['discount_cash'], 2);
|
|
|
+ } else {
|
|
|
+ $goods_price = 0;
|
|
|
+
|
|
|
+ $d_total_cash = 0;
|
|
|
+ $d_price = 0;
|
|
|
+ $d_refund_cash = 0;
|
|
|
+ $d_card_code_cash = 0;
|
|
|
+ $d_wallet_cash = 0;
|
|
|
+ $d_coupon_cash = 0;
|
|
|
+ $d_discount_cash = 0;
|
|
|
+ }
|
|
|
+
|
|
|
$d = array
|
|
|
(
|
|
|
$info['sid'],
|
|
@@ -107,13 +128,14 @@ class Excel
|
|
|
$paydate,
|
|
|
$operdate,
|
|
|
|
|
|
- round($total_cash, 2),
|
|
|
- round($v['price'], 2),
|
|
|
- round($v['refund_cash'], 2),
|
|
|
- round($v['card_code_cash'], 2),
|
|
|
- round($v['wallet_cash'], 2),
|
|
|
- round($v['coupon_cash'], 2),
|
|
|
- round($v['discount_cash'], 2),
|
|
|
+ $d_total_cash,
|
|
|
+ $d_price,
|
|
|
+ $d_refund_cash,
|
|
|
+ $d_card_code_cash,
|
|
|
+ $d_wallet_cash,
|
|
|
+ $d_coupon_cash,
|
|
|
+ $d_discount_cash,
|
|
|
+
|
|
|
$pay_type[$v['pay_type']],
|
|
|
$status[$v['status']],
|
|
|
$card_name,
|
|
@@ -261,8 +283,23 @@ class Excel
|
|
|
|
|
|
if ($k1 == 0) {
|
|
|
$goods_price = $v['price'];
|
|
|
+ $d_num = round($v['num'], 2);
|
|
|
+ $d_total_cash = round($total_cash, 2);
|
|
|
+ $d_price = round($v['price'], 2);
|
|
|
+ $d_card_code_cash = round($v['card_code_cash'], 2);
|
|
|
+ $d_wallet_cash = round($v['wallet_cash'], 2);
|
|
|
+ $d_coupon_cash = round($v['coupon_cash'], 2);
|
|
|
+ $d_discount_cash = round($v['discount_cash'], 2);
|
|
|
} else {
|
|
|
$goods_price = 0;
|
|
|
+
|
|
|
+ $d_num = 0;
|
|
|
+ $d_total_cash = 0;
|
|
|
+ $d_price = 0;
|
|
|
+ $d_card_code_cash = 0;
|
|
|
+ $d_wallet_cash = 0;
|
|
|
+ $d_coupon_cash = 0;
|
|
|
+ $d_discount_cash = 0;
|
|
|
}
|
|
|
|
|
|
$d = array
|
|
@@ -286,13 +323,14 @@ class Excel
|
|
|
$operdate,
|
|
|
$fdate,
|
|
|
|
|
|
- round($v['num'], 2),
|
|
|
- round($total_cash, 2),
|
|
|
- round($v['price'], 2),
|
|
|
- round($v['card_code_cash'], 2),
|
|
|
- round($v['wallet_cash'], 2),
|
|
|
- round($v['coupon_cash'], 2),
|
|
|
- round($v['discount_cash'], 2),
|
|
|
+ $d_num,
|
|
|
+ $d_total_cash,
|
|
|
+ $d_price,
|
|
|
+ $d_card_code_cash,
|
|
|
+ $d_wallet_cash,
|
|
|
+ $d_coupon_cash,
|
|
|
+ $d_discount_cash,
|
|
|
+
|
|
|
$status[$v['status']],
|
|
|
$refund_status,
|
|
|
round($v['refund_cash'], 2),
|