feat: 整合門市領料日誌、API 文件存取、修改庫存與併發編號問題、供應商商品內聯編輯及日誌 UI 優化
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 1m0s
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 1m0s
This commit is contained in:
@@ -99,6 +99,24 @@ class TransferOrderController extends Controller
|
||||
auth()->id(),
|
||||
$transitWarehouseId
|
||||
);
|
||||
|
||||
// 手動發送「已建立」日誌,因為服務層使用了 saveQuietly 抑制自動日誌
|
||||
activity()
|
||||
->performedOn($order)
|
||||
->causedBy(auth()->id())
|
||||
->event('created')
|
||||
->withProperties([
|
||||
'attributes' => [
|
||||
'doc_no' => $order->doc_no,
|
||||
'from_warehouse_id' => $order->from_warehouse_id,
|
||||
'to_warehouse_id' => $order->to_warehouse_id,
|
||||
'transit_warehouse_id' => $order->transit_warehouse_id,
|
||||
'remarks' => $order->remarks,
|
||||
'status' => $order->status,
|
||||
'created_by' => $order->created_by,
|
||||
]
|
||||
])
|
||||
->log('created');
|
||||
|
||||
if ($request->input('instant_post') === true) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user