dimagi/logistics — pull request #52 by mlavin (2012-11-29 15:16:57+00:00)
Title: FB45944 Urgent Stockout Notifications

This builds off of the work in FB45943 (#49, #50, #51) to send urgent stockout notifications to region/country users as defined in http://manage.dimagi.com/default.asp?45944

> Monthly SMS alerts to Django web users on urgent stockouts of specific commodities by program. Urgent stockouts are those which affect >50% of facilities in the geography associated with the web user.

This uses the same functionality in #50 and #51 to allow users to filter these by product type as well as to opt out of the SMS notifications. They are generated when `alerts.utils.trigger_notifications` is called (currently 9AM every Monday) but the UID generation will only send these notifications once per month.