Improved compliance monitoring
This commit is contained in:
@@ -1758,6 +1758,7 @@ export const createOutcome = async (payload: CreateOutcomeRequest): Promise<void
|
||||
beneficiaryId: toIntegerId(payload.beneficiaryId),
|
||||
name: payload.name,
|
||||
description: payload.description,
|
||||
status: payload.status !== undefined ? Number(payload.status) : 1,
|
||||
};
|
||||
try {
|
||||
await apiClient.post('/v1/api/projects/beneficiaris/outcomes', body);
|
||||
@@ -1775,6 +1776,7 @@ export const updateOutcome = async (payload: UpdateOutcomeRequest): Promise<void
|
||||
outcomeId: toIntegerId(payload.outcomeId),
|
||||
name: payload.name,
|
||||
description: payload.description,
|
||||
status: Number(payload.status),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1884,6 +1886,8 @@ export const createComplianceItem = async (payload: CreateComplianceItemRequest)
|
||||
projectId: toIntegerId(payload.projectId),
|
||||
title: payload.title,
|
||||
requirements: payload.requirements,
|
||||
status: payload.status !== undefined ? Number(payload.status) : 1,
|
||||
beneficiaryId: payload.beneficiaryId ? toIntegerId(payload.beneficiaryId) : null,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1893,6 +1897,7 @@ export const updateComplianceItem = async (payload: UpdateComplianceItemRequest)
|
||||
title: payload.title,
|
||||
requirements: payload.requirements,
|
||||
status: Number(payload.status),
|
||||
beneficiaryId: payload.beneficiaryId ? toIntegerId(payload.beneficiaryId) : null,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user