This commit is contained in:
mzl
2025-12-25 16:07:33 +08:00
parent f2b7d40b17
commit 8072388da2
+1 -4
View File
@@ -228,10 +228,7 @@ class StockOrdersService
flg('备货单【'.$order->order_no.'】创建终版成功,但更新原单失败');
}
$orderFinal = StockOrders::where('object_id', $res->object_id)->where('is_final', 1)->where('approval_status', 3)->first();
if ($orderFinal) {
$orderFinal->delete();
}
StockOrders::where('object_id', $res->object_id)->where('is_final', 1)->where('approval_status', 3)->destroy();
}
// 启动审批
if ($res->approval_status == 1) {