Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
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)
Beispiel #4
0
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)
Beispiel #5
0
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)
Beispiel #6
0
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)