feat: Add reports feature
Enables a new reports section in the application. This includes: - Adding a `reports` flag to `AppFeatures` and `AppSettings`. - Including a new "Reportistica" link in the main navigation for privileged users. - Adding a `getCondoPayments` endpoint to the mock DB service. - Updating the backend to support filtering payments by `condoId`. - Providing a basic `ReportsPage` component.
This commit is contained in:
@@ -226,6 +226,10 @@ export const CondoService = {
|
||||
return request<Payment[]>(`/payments?familyId=${familyId}`);
|
||||
},
|
||||
|
||||
getCondoPayments: async (condoId: string): Promise<Payment[]> => {
|
||||
return request<Payment[]>(`/payments?condoId=${condoId}`);
|
||||
},
|
||||
|
||||
addPayment: async (payment: Omit<Payment, 'id'>): Promise<Payment> => {
|
||||
return request<Payment>('/payments', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user