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