diff --git a/backend/app/crud/sample_reception.py b/backend/app/crud/sample_reception.py index 5854b3c40..f3c7a4059 100644 --- a/backend/app/crud/sample_reception.py +++ b/backend/app/crud/sample_reception.py @@ -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