fix(erpnext): serialize filters/fields as JSON in REST client; add mandatory appointment fields
This commit is contained in:
@@ -208,7 +208,9 @@ class ERPNextHealthcare:
|
||||
appointment_date: str,
|
||||
appointment_time: str,
|
||||
duration: int = 30,
|
||||
department: str = "Dermatología Estética",
|
||||
department: str = "Dermatology",
|
||||
appointment_type: str = "Consulta General",
|
||||
appointment_for: str = "Practitioner",
|
||||
notes: str = "",
|
||||
service_unit: str | None = None,
|
||||
) -> dict[str, Any]:
|
||||
@@ -265,6 +267,8 @@ class ERPNextHealthcare:
|
||||
"appointment_time": appointment_time,
|
||||
"duration": duration,
|
||||
"department": department,
|
||||
"appointment_type": appointment_type,
|
||||
"appointment_for": appointment_for,
|
||||
"notes": notes,
|
||||
"status": "Scheduled",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user