Exemplo n.º 1
0
 def national_report(self):
     table = AggregateSOHTable(object_list=national_aggregate(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
Exemplo n.º 2
0
 def national_report(self):
     self.context['delivery_table'] = AggregateDeliveryTable(
         object_list=national_aggregate(month=self.mp.month,
                                        year=self.mp.year),
         request=self.request,
         month=self.mp.month,
         year=self.mp.year)
Exemplo n.º 3
0
 def national_report(self):
     self.context['supervision_table'] = AggregateSupervisionTable(
         object_list=national_aggregate(month=self.mp.month,
                                        year=self.mp.year),
         request=self.request,
         month=self.mp.month,
         year=self.mp.year)
Exemplo n.º 4
0
 def national_report(self):
     self.context['randr_table'] = AggregateRandRTable(
         object_list=national_aggregate(month=self.mp.month,
                                        year=self.mp.year),
         request=self.request,
         month=self.mp.month,
         year=self.mp.year)
Exemplo n.º 5
0
 def national_report(self):
     table = AggregateSOHTable(object_list=national_aggregate(
         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
Exemplo n.º 6
0
 def national_report(self):
     self.context['randr_table'] = AggregateRandRTable(object_list=national_aggregate(month=self.mp.month, year=self.mp.year), request=self.request, month=self.mp.month, year=self.mp.year)
Exemplo n.º 7
0
 def national_report(self):
     self.context['delivery_table'] = AggregateDeliveryTable(object_list=national_aggregate(month=self.mp.month, year=self.mp.year), request=self.request, month=self.mp.month, year=self.mp.year)
Exemplo n.º 8
0
 def national_report(self):
     self.context['supervision_table'] = AggregateSupervisionTable(object_list=national_aggregate(month=self.mp.month, year=self.mp.year), request=self.request, month=self.mp.month, year=self.mp.year)