修复:补齐测试批次恢复锁定
This commit is contained in:
@@ -738,6 +738,7 @@ class ShipmentService:
|
||||
test_scope: TestBatchScope,
|
||||
) -> CrudResponseModel:
|
||||
try:
|
||||
await TestBatchAccessService.lock_active_batch(query_db, test_scope)
|
||||
warehouse_ids, site_ids = await cls._scopes(query_db, current_user)
|
||||
current = await OperationDao.get_shipment_by_id(
|
||||
query_db,
|
||||
@@ -932,7 +933,7 @@ class ShipmentService:
|
||||
request_hash=request_hash,
|
||||
test_batch_id=test_scope.batch_id,
|
||||
)
|
||||
await InventoryDao.add_event(query_db, inventory, event)
|
||||
await InventoryDao.add_event(query_db, inventory, event, test_scope)
|
||||
|
||||
await query_db.commit()
|
||||
return cls._success('确认成功')
|
||||
|
||||
Reference in New Issue
Block a user