ts
This commit is contained in:
@@ -227,6 +227,11 @@ class StockOrdersService
|
||||
if (!$order->save()) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
// 启动审批
|
||||
if ($res->approval_status == 1) {
|
||||
|
||||
Reference in New Issue
Block a user