修复统计bug
This commit is contained in:
@@ -690,6 +690,7 @@ class FinanceController extends BaseAdminController
|
||||
|
||||
foreach ($model as $v) {
|
||||
$thisMonth = date($dateStr, $v['created_at']);
|
||||
if (!isset($saleMoney[$thisMonth])) $saleMoney[$thisMonth] = '0.00';
|
||||
$saleMoney[$thisMonth] = bcadd($saleMoney[$thisMonth] ?? '0', $v['total_price'], 2);
|
||||
$totalMoney = bcadd($totalMoney, $v['total_price'], 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user