|
|
@@ -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
|