Merge pull request 'fix(app): 修复预售订单导出逻辑' (#432) from dev into main

Reviewed-on: https://gitea.lihaink.cn/mkm/multi-store/pulls/432
This commit is contained in:
mkm 2025-01-04 19:15:55 +08:00
commit f60da981f9

View File

@ -737,7 +737,7 @@ class BeforehandOrderLogic extends BaseLogic
$find = WarehouseOrder::where('id', $order['outbound_id'])->find();
$order['order_id'] = $find['code'];
$order['pay_price'] = $find['total_price'];
if ($params['type'] == 3) {
if (!empty($params['type']) &&$params['type'] == 3) {
$file_path = $order_info->exportWithoutPrice($data, $order, $other_data);
} else {
$file_path = $order_info->export($data, $order, $other_data);