This commit is contained in:
@ -704,8 +704,12 @@ export async function bookReservation(propertyInfoId, startDate, endDate) {
|
||||
|
||||
// ─── Terms ───
|
||||
|
||||
export async function getTerms() {
|
||||
return apiFetch('/Terms/GetTerms');
|
||||
export async function getARTerms() {
|
||||
return apiFetch('/Configuration/GetARTerms');
|
||||
}
|
||||
|
||||
export async function getENTerms() {
|
||||
return apiFetch('/Configuration/GetENTerms');
|
||||
}
|
||||
|
||||
// ─── Profile ───
|
||||
@ -1151,11 +1155,11 @@ export async function updateSaleReport(id, data) {
|
||||
});
|
||||
}
|
||||
|
||||
// ─── Terms (Add) ───
|
||||
// ─── Terms (Add or Update) ───
|
||||
|
||||
export async function addTerm(name, description) {
|
||||
return apiFetch('/Terms', {
|
||||
export async function addOrUpdateTerms(terms) {
|
||||
return apiFetch('/Terms/AddOrUpdateTerms', {
|
||||
method: 'POST',
|
||||
body: { name, description },
|
||||
body: terms,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user