From 6fe2e1a9aa06870097fd0841580c193d05bec92b Mon Sep 17 00:00:00 2001 From: Sandino Scheidegger Date: Sat, 25 Jan 2025 14:52:21 +0100 Subject: [PATCH 1/2] The community size number is used to calculate how many recipients are covered by Social Income (currently 10%). Previously, we lacked a dedicated place to store this important number, which led to inconsistencies. We now request the community size from partners when establishing a partnership. --- admin/src/collections/PartnerOrganisations.ts | 7 +++++++ shared/src/types/partner-organisation.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/admin/src/collections/PartnerOrganisations.ts b/admin/src/collections/PartnerOrganisations.ts index 8ea2ca81a..e4c2a01c1 100644 --- a/admin/src/collections/PartnerOrganisations.ts +++ b/admin/src/collections/PartnerOrganisations.ts @@ -16,12 +16,19 @@ export const buildPartnerOrganisationsCollection = () => { properties: buildProperties({ name: { dataType: 'string', + name: 'Org Name', }, contactName: { dataType: 'string', + name: 'Contact Person', }, contactNumber: { dataType: 'string', + name: 'Contact Number', + }, + communitySize: { + dataType: 'number', + name: 'Community Size', }, }), }); diff --git a/shared/src/types/partner-organisation.ts b/shared/src/types/partner-organisation.ts index 9db8c1e61..234ed2244 100644 --- a/shared/src/types/partner-organisation.ts +++ b/shared/src/types/partner-organisation.ts @@ -4,4 +4,5 @@ export type PartnerOrganisation = { name: string; contactName: string; contactNumber: string; + communitySize: number; }; From 5360017708c724bf976126bd9898d4690ec7d9de Mon Sep 17 00:00:00 2001 From: Sandino Scheidegger Date: Sat, 25 Jan 2025 15:04:01 +0100 Subject: [PATCH 2/2] Update test --- functions/src/firebase.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/src/firebase.ts b/functions/src/firebase.ts index 55bf6f2fc..9c420e49a 100644 --- a/functions/src/firebase.ts +++ b/functions/src/firebase.ts @@ -17,6 +17,7 @@ export async function initializeGlobalTestData(projectId?: string) { name: 'Aurora', contactName: 'Contact Person', contactNumber: '002020203020', + communitySize: 100, }); // exchange rate entry for April 15, 2023