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)
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)
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)
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)