def _facility_shared(): people = list(get_facility_people(get_facility_cutoff())) send_reminders(people, config.Messages.REMINDER_R_AND_R_FACILITY) update_statuses(people, SupplyPointStatusTypes.R_AND_R_FACILITY, SupplyPointStatusValues.REMINDER_SENT)
def _district_shared(): people = list(get_district_people(get_district_cutoff())) send_reminders(people, config.Messages.REMINDER_R_AND_R_DISTRICT) update_statuses(people, SupplyPointStatusTypes.R_AND_R_DISTRICT, SupplyPointStatusValues.REMINDER_SENT)
def _district_shared(): people = list(get_district_people(get_district_cutoff())) send_reminders(people, config.Messages.REMINDER_R_AND_R_DISTRICT) update_statuses(people, SupplyPointStatusTypes.R_AND_R_DISTRICT, SupplyPointStatusValues.REMINDER_SENT)
def _facility_shared(): people = list(get_facility_people(get_facility_cutoff())) send_reminders(people, config.Messages.REMINDER_R_AND_R_FACILITY) update_statuses(people, SupplyPointStatusTypes.R_AND_R_FACILITY, SupplyPointStatusValues.REMINDER_SENT)
def first(): """Last business day before the 20th at 4:00 PM""" people = get_people(get_cutoff(*last_yearmonth())) send_reminders(people, config.Messages.SOH_THANK_YOU)
def _shared(people): people = list(people) send_reminders(people, config.Messages.REMINDER_STOCKONHAND) update_statuses(people, SupplyPointStatusTypes.SOH_FACILITY, SupplyPointStatusValues.REMINDER_SENT)
def first(): """Last business day before the 20th at 4:00 PM""" people = get_people(get_cutoff(*last_yearmonth())) send_reminders(people, config.Messages.SOH_THANK_YOU)