diff --git a/frontend/src/api/sales.js b/frontend/src/api/sales.js index 838f563..094d70d 100644 --- a/frontend/src/api/sales.js +++ b/frontend/src/api/sales.js @@ -184,6 +184,15 @@ export function clientCategoriesDestroy(form) { }) } +export function clientCategoriesOptions(params) { + return axios({ + url: '/api/client_categories/options', + headers: { 'X-CSRFToken': Cookies.get('csrftoken') }, + method: 'get', + params, + }) +} + // SalesPaymentRecord export function salesPaymentRecord(params) { return axios({ diff --git a/frontend/src/components/Fields/ClientCategoriesSelect.vue b/frontend/src/components/Fields/ClientCategoriesSelect.vue index 2f05a17..5fd6216 100644 --- a/frontend/src/components/Fields/ClientCategoriesSelect.vue +++ b/frontend/src/components/Fields/ClientCategoriesSelect.vue @@ -1,7 +1,7 @@