Merge branch 'development' into 'schema/bulk-approve-marketings-expenses'

# Conflicts:
#   src/services/api/expense.ts
This commit is contained in:
Adnan Zahir
2026-04-22 10:14:17 +07:00
38 changed files with 1805 additions and 280 deletions
+23
View File
@@ -126,6 +126,29 @@ class MarketingExportService extends BaseApiService<
super(basePath);
}
async bulkApprovals(
ids: number[],
status: 'SALES_ORDER' | 'DELIVERY_ORDER',
date: string, // YYYY-MM-DD
notes: string
): Promise<BaseApiResponse<Marketing[] | Marketing> | undefined> {
try {
const path = `${this.basePath}/approvals/bulk`;
return await httpClient<BaseApiResponse<Marketing[] | Marketing>>(path, {
method: 'POST',
body: {
approvable_ids: ids,
status: status,
date: date,
notes: notes,
},
});
} catch (error) {
throw error;
}
}
/**
* Export to Excel
*/