update expense
This commit is contained in:
@@ -169,6 +169,12 @@ const API = {
|
||||
body: JSON.stringify(data)
|
||||
}).then(r => r.json()),
|
||||
|
||||
updateExpense: (id, data) => fetch(`/api/accounting/expenses/${id}`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(data)
|
||||
}).then(r => r.json()),
|
||||
|
||||
attachToExpense: (expenseId, file, note) => {
|
||||
const fd = new FormData();
|
||||
fd.append('file', file);
|
||||
|
||||
Reference in New Issue
Block a user