Configuracion: seccion Comisiones con % global default y % editable por doctor
This commit is contained in:
@@ -1216,6 +1216,21 @@ export const odooApi = {
|
||||
return data;
|
||||
},
|
||||
|
||||
async setDoctorCommission(id: number, commission_pct: number): Promise<{ status: string; doctor: { id: number; name: string; commission_pct: number } }> {
|
||||
const { data } = await axios.post(`${ODOO_BASE}/skeen/frontend/v1/doctors/${id}/commission`, { commission_pct });
|
||||
return data;
|
||||
},
|
||||
|
||||
async getCommissionDefault(): Promise<{ status: string; commission_pct: number }> {
|
||||
const { data } = await axios.get(`${ODOO_BASE}/skeen/frontend/v1/config/commission_default`);
|
||||
return data;
|
||||
},
|
||||
|
||||
async setCommissionDefault(commission_pct: number): Promise<{ status: string; commission_pct: number }> {
|
||||
const { data } = await axios.post(`${ODOO_BASE}/skeen/frontend/v1/config/commission_default`, { commission_pct });
|
||||
return data;
|
||||
},
|
||||
|
||||
async getDoctorHistory(id: number): Promise<DoctorHistory> {
|
||||
const { data } = await axios.get(`${ODOO_BASE}/skeen/frontend/v1/doctors/${id}/history`);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user