sales tax
This commit is contained in:
@@ -144,6 +144,15 @@ const API = {
|
||||
return fetch('/api/accounting/reports/tax-summary?' + params.toString()).then(r => r.json());
|
||||
},
|
||||
|
||||
// Sales Tax Periods
|
||||
getTaxPeriods: () => fetch('/api/accounting/sales-tax/periods').then(r => r.json()),
|
||||
upsertTaxPeriod: (data) => fetch('/api/accounting/sales-tax/periods', {
|
||||
method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data)
|
||||
}).then(r => r.json()),
|
||||
recordTaxPayment: (periodId, data) => fetch(`/api/accounting/sales-tax/periods/${periodId}/record`, {
|
||||
method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data)
|
||||
}).then(r => r.json()),
|
||||
|
||||
// Phase 2 Lieferung 1 — Sync + Cache-Reads
|
||||
syncAccounts: () => fetch('/api/accounting/sync-accounts', { method: 'POST' }).then(r => r.json()),
|
||||
syncVendors: () => fetch('/api/accounting/sync-vendors', { method: 'POST' }).then(r => r.json()),
|
||||
|
||||
Reference in New Issue
Block a user