|
|
@@ -136,9 +136,12 @@ class LiveOrderClass extends BaseClass
|
|
|
$staffName = $params['staffName'] ?? '';
|
|
|
$customNum = count($customList);
|
|
|
$itemNum = 0;
|
|
|
+ $itemAmount = 0;
|
|
|
foreach ($customList as $custom) {
|
|
|
$num = $custom['num'] ?? 0;
|
|
|
+ $unitPrice = $it['price'] ?? 0;
|
|
|
$itemNum = bcadd($num, $itemNum);
|
|
|
+ $itemAmount = bcadd($itemAmount, $unitPrice, 2);
|
|
|
}
|
|
|
$orderSn = orderSn::getLiveOrderSn();
|
|
|
$liveData = [
|
|
|
@@ -150,6 +153,7 @@ class LiveOrderClass extends BaseClass
|
|
|
'itemCover' => $itemCover,
|
|
|
'customNum' => $customNum,
|
|
|
'itemNum' => $itemNum,
|
|
|
+ 'itemAmount' => $itemAmount,
|
|
|
'orderSn' => $orderSn,
|
|
|
'staffId' => $staffId,
|
|
|
'staffName' => $staffName,
|