Staff: campo tipo Doctor/Cosmetologa, filtro por tipo en agenda y selector editable en modulo Medicos

This commit is contained in:
2026-08-31 05:19:13 +00:00
parent 339ba235b1
commit fea4918494
6 changed files with 80 additions and 6 deletions

View File

@@ -255,6 +255,7 @@ export interface Doctor {
work_phone: string;
work_email: string;
commission_pct: number;
staff_type?: 'doctor' | 'cosmetologa';
patient_count?: number;
recomendaciones_30d?: number;
ventas_30d?: number;
@@ -1211,7 +1212,7 @@ export const odooApi = {
return data;
},
async updateDoctor(id: number, payload: { commission_pct: number }): Promise<{ status: string; doctor: Doctor }> {
async updateDoctor(id: number, payload: { commission_pct?: number; staff_type?: 'doctor' | 'cosmetologa' }): Promise<{ status: string; doctor: Doctor }> {
const { data } = await axios.put(`${ODOO_BASE}/skeen/frontend/v1/doctors/${id}`, payload);
return data;
},