Esempio n. 1
0
 def get_dashboard_blocks(self, request):
     import shoop.admin.modules.orders.dashboard as dashboard
     yield dashboard.get_sales_of_the_day_block(request)
     yield dashboard.get_lifetime_sales_block(request)
     yield dashboard.get_avg_purchase_size_block(request)
     yield dashboard.get_open_orders_block(request)
     yield dashboard.get_order_value_chart_dashboard_block(request)
Esempio n. 2
0
 def get_dashboard_blocks(self, request):
     import shoop.admin.modules.orders.dashboard as dashboard
     currency = self.currency
     if not currency:
         return
     yield dashboard.get_sales_of_the_day_block(request, currency)
     yield dashboard.get_lifetime_sales_block(request, currency)
     yield dashboard.get_avg_purchase_size_block(request, currency)
     yield dashboard.get_open_orders_block(request, currency)
     yield dashboard.get_order_value_chart_dashboard_block(request, currency)