|
|
@@ -87,14 +87,13 @@ class TestController extends BaseController
|
|
|
$num = $orderItem->xhNum ?? 0;
|
|
|
$xhUnitPrice = $orderItem->xhUnitPrice ?? 0;
|
|
|
|
|
|
- $now = bcmul($num, $xhUnitPrice, 2);
|
|
|
- $currentAmount = bcadd($currentAmount, $now, 2);
|
|
|
|
|
|
$remainNum = bcsub($num, $refundNum);
|
|
|
$classId = $orderItem->classId ?? 0;
|
|
|
$className = $classList[$classId]['name'] ?? '已删除';
|
|
|
$amount = bcmul($remainNum, $xhUnitPrice, 2);
|
|
|
|
|
|
+ $currentAmount = bcadd($currentAmount, $amount, 2);
|
|
|
|
|
|
$arr[$classId]['className'] = $className;
|
|
|
$arr[$classId]['classId'] = $classId;
|