|
|
@@ -600,6 +600,14 @@ class StatSaleClass extends BaseClass
|
|
|
$arr[$key]['expend'] = floatval($expend);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //总成本算上物流打包等费用
|
|
|
+ $totalExpend = bcadd($totalExpend, $packFreight, 2);
|
|
|
+ //总收入算上采购仅退款
|
|
|
+ $totalIncome = bcadd($totalIncome, $onlyRefundCg, 2);
|
|
|
+ //总成本算上销售仅退款
|
|
|
+ $totalExpend = bcadd($totalExpend, $onlyRefund, 2);
|
|
|
+
|
|
|
$totalIncome = floatval($totalIncome);
|
|
|
$totalExpend = floatval($totalExpend);
|
|
|
$totalProfit = floatval($totalProfit);
|
|
|
@@ -607,6 +615,7 @@ class StatSaleClass extends BaseClass
|
|
|
$arr = array_values($arr);
|
|
|
$arr = arrayUtil::arraySort($arr, 'profit');
|
|
|
|
|
|
+
|
|
|
util::success(['list' => $arr, 'packFreight' => $packFreight, 'onlyRefundCg' => $onlyRefundCg, 'onlyRefund' => $onlyRefund,
|
|
|
'totalIncome' => $totalIncome,
|
|
|
'totalExpend' => $totalExpend,
|