Example #1
0
 def common_report(self):
     self.context['max_products'] = 6
     self.context[
         'summary'] = DynamicProductAvailabilitySummaryByFacilitySP(
             facilities_below(
                 self.location).filter(contact__is_active=True).distinct(),
             year=self.mp.year,
             month=self.mp.month)
Example #2
0
 def common_report(self):
     self.context['max_products'] = 6
     self.context['summary'] = DynamicProductAvailabilitySummaryByFacilitySP(facilities_below(self.location).filter(contact__is_active=True).distinct(), year=self.mp.year, month=self.mp.month)
Example #3
0
 def __init__(self, location=None, month=None, year=None, view=None):
     self.location = location
     self.breakdown = SupplyPointStatusBreakdown(
         facilities=facilities_below(location), month=month, year=year)
Example #4
0
 def __init__(self, location=None, month=None, year=None, view=None):
     self.location = location
     self.breakdown = SupplyPointStatusBreakdown(facilities=facilities_below(location), month=month, year=year)