avniproject / apfodishanutrition

GNU Affero General Public License v3.0
0 stars 0 forks source link

{APF Dashboard Report} : Household Entitlement #198

Open kameshbhariya opened 3 months ago

kameshbhariya commented 3 months ago
adamsanadi6 commented 3 months ago

Dashboard link: [APFODISHA Prerelease] Household Entitlements

adamsanadi6 commented 3 months ago

@vedfordev Please do the code review select h.id as "House Id", h.registration_date as "Registration date", h.first_name as "Household name", h."Social security entitlements" as "Entitlements", unnest(string_to_array(h."Social security entitlements", ', ')) AS "Entitlement", h."Number of members in the family" as "Number of family members", awc."Sector", village."Block" from apfodisha.household h left join apfodisha.address awc on awc.uuid = h."AWC Name" and awc.is_voided = false left join apfodisha.address village on village.id = h.address_id and village.is_voided = false where h.is_voided = false

vedfordev commented 1 month ago

Rework:


As discussed with @kameshbhariya Added village type filter,registration date filter and entitlement filter. And no need to create separate linelist

Dinesh2019 commented 1 month ago
vedfordev commented 1 month ago

@Dinesh2019 Exit will not require as this is about subject only no program involve. @kameshbhariya remove exit status

kameshbhariya commented 1 month ago

@vedfordev @Dinesh2019 Removed exit status from this report.