mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
WIP / Feature & Fix Expense /Customer
This commit is contained in:
@@ -107,3 +107,19 @@ export const deleteCustomer = ({ id }) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteBulkCustomers = ({ ids }) => {
|
||||
return (dispatch) =>
|
||||
new Promise((resolve, reject) => {
|
||||
ApiService.delete('customers', { params: { ids } })
|
||||
.then((response) => {
|
||||
dispatch({
|
||||
type: t.CUSTOMERS_BULK_DELETE,
|
||||
payload: { ids },
|
||||
});
|
||||
resolve(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
reject(error.response.data.errors || []);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user