コード例 #1
0
ファイル: reportcalcs.py プロジェクト: andile2012/logistics
 def regional_report(self):
     table = AggregateSOHTable(object_list=location_aggregates(self.location, month=self.mp.month, year=self.mp.year), request=self.request, month=self.mp.month, year=self.mp.year)
     products = Product.objects.all().order_by('sms_code')
     for product in products:
         pc = AggregateStockoutPercentColumn(product, self.mp.month, self.mp.year)
         table.add_column(pc, "pc_"+product.sms_code)
     self.context['soh_table'] = table
コード例 #2
0
 def regional_report(self):
     self.context['supervision_table'] = AggregateSupervisionTable(
         object_list=location_aggregates(self.location,
                                         month=self.mp.month,
                                         year=self.mp.year),
         request=self.request,
         month=self.mp.month,
         year=self.mp.year)
コード例 #3
0
 def regional_report(self):
     self.context['delivery_table'] = AggregateDeliveryTable(
         object_list=location_aggregates(self.location,
                                         month=self.mp.month,
                                         year=self.mp.year),
         request=self.request,
         month=self.mp.month,
         year=self.mp.year)
コード例 #4
0
 def regional_report(self):
     table = AggregateSOHTable(object_list=location_aggregates(
         self.location, month=self.mp.month, year=self.mp.year),
                               request=self.request,
                               month=self.mp.month,
                               year=self.mp.year)
     products = Product.objects.all().order_by('sms_code')
     for product in products:
         pc = AggregateStockoutPercentColumn(product, self.mp.month,
                                             self.mp.year)
         table.add_column(pc, "pc_" + product.sms_code)
     self.context['soh_table'] = table
コード例 #5
0
ファイル: reportcalcs.py プロジェクト: andile2012/logistics
 def regional_report(self):
     self.context['randr_table'] = AggregateRandRTable(object_list=location_aggregates(self.location, month=self.mp.month, year=self.mp.year), request=self.request, month=self.mp.month, year=self.mp.year)