feat : order info
This commit is contained in:
@@ -146,7 +146,7 @@ class OrderInfoService extends BaseService
|
|||||||
'price' => bcmul($item['unit_price'], $item['quantity'], 2),
|
'price' => bcmul($item['unit_price'], $item['quantity'], 2),
|
||||||
'chef_name' => $chefList[$spuList[$skuList[$item['sku_id']['spu_id']]['chef_id']]]['chinese_name'] ?? '',
|
'chef_name' => $chefList[$spuList[$skuList[$item['sku_id']['spu_id']]['chef_id']]]['chinese_name'] ?? '',
|
||||||
];
|
];
|
||||||
$oneCopiesInfo['total_price'] = bcadd($oneCopiesInfo['total_price'], bcmul($item['unit_price'],(string)$item['quantity'],2), 2);
|
$oneCopiesInfo['total_price'] = bcadd((string)$oneCopiesInfo['total_price'], bcmul((string)$item['unit_price'],(string)$item['quantity'],2), 2);
|
||||||
$oneCopiesInfo['total_quantity'] += $item['quantity'];
|
$oneCopiesInfo['total_quantity'] += $item['quantity'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user