This commit is contained in:
2026-05-25 14:29:24 -05:00
parent f535f35eee
commit 7e490dbc93
5 changed files with 452 additions and 2 deletions

View File

@@ -169,6 +169,12 @@ const API = {
body: JSON.stringify(data)
}).then(r => r.json()),
createRefund: (data) => fetch('/api/accounting/refunds', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data)
}).then(r => r.json()),
updateExpense: (id, data) => fetch(`/api/accounting/expenses/${id}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },