コード例 #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)
コード例 #2
0
ファイル: reportcalcs.py プロジェクト: andile2012/logistics
 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)
コード例 #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)
コード例 #4
0
ファイル: reports.py プロジェクト: andile2012/logistics
 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)