fix(xlsx): 修复订单列表合计预收计算错误

- 在 OrderList 类中,修改了合计预收的计算逻辑
- 使用 bcadd 函数时,为 $order['deposit'] 添加了空值
This commit is contained in:
mkm 2024-11-07 16:02:57 +08:00
parent 40ded53246
commit 110086e74b

View File

@ -126,7 +126,7 @@ class OrderList
$sheet->setCellValue('G' . ($count + 7),'押金');
$sheet->setCellValue('H' . ($count + 7),$order['deposit'].'元');
$sheet->setCellValue('I' . ($count + 7),'合计预收');
$sheet->setCellValue('J' . ($count + 7),bcadd($order['deposit'],$order['total_price']).'元');
$sheet->setCellValue('J' . ($count + 7),bcadd($order['deposit']??0,$order['total_price']).'元');
$sheet->setCellValue('L' . ($count + 7),'接单员');
$sheet->setCellValue('M' . ($count + 7),$order['admin_name']);
$sheet->setCellValue('O' . ($count + 7),'分单员');