feat(production): trigger production work order on sample reception

This commit is contained in:
zlwu committed 2026-05-20 00:56:34 +08:00
1 parent b303afb272
commit 2d3f55918f
1 file changed
+9
+9
View File
@@ -764,6 +764,15 @@ def create_sample_reception(
user_id=user_id,
create_dept_id=create_dept_id or "",
)
from app.crud import production_work_order as prod_wo_svc
prod_wo_svc.create_production_work_order_from_reception(
db,
reception=obj,
tenant_no=tenant_no,
user_id=user_id,
create_dept_id=create_dept_id or "",
)
db.commit()
db.refresh(obj)
return obj