shuup.default_reports.reports package

Submodules

shuup.default_reports.reports.customer_sales module

class shuup.default_reports.reports.customer_sales.CustomerSalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'customer_sales_report'
title = 'Customer Sales'
form_class

alias of CustomerSalesReportForm

filename_template = 'customer-sales-report-%(time)s'
schema = [{'key': 'customer', 'title': 'Customer'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'average_sales', 'title': 'Average Sales'}, {'key': 'taxless_total', 'title': 'Taxless Total'}, {'key': 'taxful_total', 'title': 'Taxful Total'}]
get_objects()[source]
get_data()[source]

shuup.default_reports.reports.new_customers module

class shuup.default_reports.reports.new_customers.NewCustomersReport(**kwargs)[source]

Bases: shuup.reports.report.ShuupReportBase

identifier = 'new_customers_report'
title = 'New Customers'
form_class

alias of NewCustomersReportForm

filename_template = 'new-customers-report-%(time)s'
schema = [{'key': 'date', 'title': 'Date'}, {'key': 'personcontact', 'title': 'Persons'}, {'key': 'companycontact', 'title': 'Companies'}, {'key': 'users', 'title': 'Users'}]
get_data()[source]

shuup.default_reports.reports.orders module

class shuup.default_reports.reports.orders.OrdersReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'orders_report'
title = 'Orders Report'
form_class

alias of OrderReportForm

filename_template = 'orders-report-%(time)s'
schema = [{'key': 'order_num', 'title': 'Order ref.'}, {'key': 'order_date', 'title': 'Order date'}, {'key': 'customer', 'title': 'Customer'}, {'key': 'status', 'title': 'Status'}, {'key': 'order_line_quantity', 'title': 'Order line quantity'}, {'key': 'payment_status', 'title': 'Payment status'}, {'key': 'shipment_status', 'title': 'Shipment status'}, {'key': 'order_total_amount', 'title': 'Total'}]
get_data()[source]
class shuup.default_reports.reports.orders.OrderLineReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderLineReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'order_line_report'
title = 'Order Line Report'
form_class

alias of OrderLineReportForm

filename_template = 'orders-report-%(time)s'
schema = [{'key': 'order_line_sku', 'title': 'Order Line SKU'}, {'key': 'order_line_text', 'title': 'Order Line Text'}, {'key': 'order_line_quantity', 'title': 'Quantity'}, {'key': 'taxless_unit_price', 'title': 'Taxless Unit Price'}, {'key': 'taxful_unit_price', 'title': 'Taxful Unit Price'}, {'key': 'taxful_price', 'title': 'Taxful Price'}, {'key': 'created_on', 'title': 'Created on'}, {'key': 'type', 'title': 'Type'}]
get_data()[source]

shuup.default_reports.reports.product_total_sales module

class shuup.default_reports.reports.product_total_sales.ProductSalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'product_total_sales_report'
title = 'Product Total Sales'
form_class

alias of ProductTotalSalesReportForm

filename_template = 'product-total-sales-report-%(time)s'
schema = [{'key': 'product', 'title': 'Product'}, {'key': 'sku', 'title': 'SKU'}, {'key': 'quantity', 'title': 'Quantity'}, {'key': 'taxless_total', 'title': 'Taxless Total'}, {'key': 'taxful_total', 'title': 'Taxful Total'}]
get_objects()[source]
get_data()[source]

shuup.default_reports.reports.refunds module

class shuup.default_reports.reports.refunds.RefundedSalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'refunded-sales'
title = 'Refunded Sales'
filename_template = 'refunded-sales-%(time)s'
form_class

alias of OrderReportForm

schema = [{'key': 'refunded_orders', 'title': 'Refunded Orders'}, {'key': 'total_refunded', 'title': 'Total Refunded'}]
get_data(**kwargs)[source]

shuup.default_reports.reports.sales module

class shuup.default_reports.reports.sales.SalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'sales_report'
title = 'Sales Report'
form_class

alias of OrderReportForm

filename_template = 'sales-report-%(time)s'
schema = [{'key': 'date', 'title': 'Date'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'product_count', 'title': 'Products'}, {'key': 'taxless_total', 'title': 'Taxless Total'}, {'key': 'taxful_total', 'title': 'Taxful Total'}]
extract_date(entity)[source]
get_data()[source]

shuup.default_reports.reports.sales_per_hour module

class shuup.default_reports.reports.sales_per_hour.SalesPerHour(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'sales-per-hour'
title = 'Sales Per Hour'
filename_template = 'sales-per-hour-%(time)s'
form_class

alias of OrderReportForm

schema = [{'key': 'hour', 'title': 'Hour'}, {'key': 'order_amount', 'title': 'Order Amount'}, {'key': 'total_sales', 'title': 'Total Sales'}]
date_hour(timestamp)[source]
get_data(**kwargs)[source]

shuup.default_reports.reports.shipping module

class shuup.default_reports.reports.shipping.ShippingReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'shipping_report'
title = 'Shipping'
form_class

alias of ShippingReportForm

filename_template = 'shipping-report-%(time)s'
schema = [{'key': 'carrier', 'title': 'Carrier'}, {'key': 'shipping_method', 'title': 'Shipping method'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'total_charged', 'title': 'Total Charged'}]
get_objects()[source]
get_data()[source]

shuup.default_reports.reports.taxes module

class shuup.default_reports.reports.taxes.TaxesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'taxes_report'
title = 'Taxes'
form_class

alias of TaxesReportForm

filename_template = 'taxes-report-%(time)s'
schema = [{'key': 'tax', 'title': 'Tax'}, {'key': 'tax_rate', 'title': 'Rate (%)'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'total_pretax_amount', 'title': 'Pre-tax Total'}, {'key': 'total_tax_amount', 'title': 'Total Tax Amount'}, {'key': 'total', 'title': 'Total'}]
get_objects()[source]
get_data()[source]

shuup.default_reports.reports.total_sales module

class shuup.default_reports.reports.total_sales.TotalSales(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

identifier = 'total_sales_report'
title = 'Total Sales'
form_class

alias of OrderReportForm

filename_template = 'total-sales-%(time)s'
schema = [{'key': 'name', 'title': 'Shop Name'}, {'key': 'currency', 'title': 'Currency'}, {'key': 'order_amount', 'title': 'Order Amount'}, {'key': 'customers', 'title': 'Customers'}, {'key': 'customer_avg_sale', 'title': 'Customer Average Sale'}, {'key': 'total_sales', 'title': 'Total Sales'}]
get_data()[source]

Module contents

class shuup.default_reports.reports.CustomerSalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'customer-sales-report-%(time)s'
form_class

alias of CustomerSalesReportForm

get_data()[source]
get_objects()[source]
identifier = 'customer_sales_report'
schema = [{'key': 'customer', 'title': 'Customer'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'average_sales', 'title': 'Average Sales'}, {'key': 'taxless_total', 'title': 'Taxless Total'}, {'key': 'taxful_total', 'title': 'Taxful Total'}]
title = 'Customer Sales'
class shuup.default_reports.reports.NewCustomersReport(**kwargs)[source]

Bases: shuup.reports.report.ShuupReportBase

filename_template = 'new-customers-report-%(time)s'
form_class

alias of NewCustomersReportForm

get_data()[source]
identifier = 'new_customers_report'
schema = [{'key': 'date', 'title': 'Date'}, {'key': 'personcontact', 'title': 'Persons'}, {'key': 'companycontact', 'title': 'Companies'}, {'key': 'users', 'title': 'Users'}]
title = 'New Customers'
class shuup.default_reports.reports.ProductSalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'product-total-sales-report-%(time)s'
form_class

alias of ProductTotalSalesReportForm

get_data()[source]
get_objects()[source]
identifier = 'product_total_sales_report'
schema = [{'key': 'product', 'title': 'Product'}, {'key': 'sku', 'title': 'SKU'}, {'key': 'quantity', 'title': 'Quantity'}, {'key': 'taxless_total', 'title': 'Taxless Total'}, {'key': 'taxful_total', 'title': 'Taxful Total'}]
title = 'Product Total Sales'
class shuup.default_reports.reports.RefundedSalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'refunded-sales-%(time)s'
form_class

alias of OrderReportForm

get_data(**kwargs)[source]
identifier = 'refunded-sales'
schema = [{'key': 'refunded_orders', 'title': 'Refunded Orders'}, {'key': 'total_refunded', 'title': 'Total Refunded'}]
title = 'Refunded Sales'
class shuup.default_reports.reports.SalesPerHour(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

date_hour(timestamp)[source]
filename_template = 'sales-per-hour-%(time)s'
form_class

alias of OrderReportForm

get_data(**kwargs)[source]
identifier = 'sales-per-hour'
schema = [{'key': 'hour', 'title': 'Hour'}, {'key': 'order_amount', 'title': 'Order Amount'}, {'key': 'total_sales', 'title': 'Total Sales'}]
title = 'Sales Per Hour'
class shuup.default_reports.reports.SalesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

extract_date(entity)[source]
filename_template = 'sales-report-%(time)s'
form_class

alias of OrderReportForm

get_data()[source]
identifier = 'sales_report'
schema = [{'key': 'date', 'title': 'Date'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'product_count', 'title': 'Products'}, {'key': 'taxless_total', 'title': 'Taxless Total'}, {'key': 'taxful_total', 'title': 'Taxful Total'}]
title = 'Sales Report'
class shuup.default_reports.reports.ShippingReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'shipping-report-%(time)s'
form_class

alias of ShippingReportForm

get_data()[source]
get_objects()[source]
identifier = 'shipping_report'
schema = [{'key': 'carrier', 'title': 'Carrier'}, {'key': 'shipping_method', 'title': 'Shipping method'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'total_charged', 'title': 'Total Charged'}]
title = 'Shipping'
class shuup.default_reports.reports.TaxesReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'taxes-report-%(time)s'
form_class

alias of TaxesReportForm

get_data()[source]
get_objects()[source]
identifier = 'taxes_report'
schema = [{'key': 'tax', 'title': 'Tax'}, {'key': 'tax_rate', 'title': 'Rate (%)'}, {'key': 'order_count', 'title': 'Orders'}, {'key': 'total_pretax_amount', 'title': 'Pre-tax Total'}, {'key': 'total_tax_amount', 'title': 'Total Tax Amount'}, {'key': 'total', 'title': 'Total'}]
title = 'Taxes'
class shuup.default_reports.reports.TotalSales(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'total-sales-%(time)s'
form_class

alias of OrderReportForm

get_data()[source]
identifier = 'total_sales_report'
schema = [{'key': 'name', 'title': 'Shop Name'}, {'key': 'currency', 'title': 'Currency'}, {'key': 'order_amount', 'title': 'Order Amount'}, {'key': 'customers', 'title': 'Customers'}, {'key': 'customer_avg_sale', 'title': 'Customer Average Sale'}, {'key': 'total_sales', 'title': 'Total Sales'}]
title = 'Total Sales'
class shuup.default_reports.reports.OrdersReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'orders-report-%(time)s'
form_class

alias of OrderReportForm

get_data()[source]
identifier = 'orders_report'
schema = [{'key': 'order_num', 'title': 'Order ref.'}, {'key': 'order_date', 'title': 'Order date'}, {'key': 'customer', 'title': 'Customer'}, {'key': 'status', 'title': 'Status'}, {'key': 'order_line_quantity', 'title': 'Order line quantity'}, {'key': 'payment_status', 'title': 'Payment status'}, {'key': 'shipment_status', 'title': 'Shipment status'}, {'key': 'order_total_amount', 'title': 'Total'}]
title = 'Orders Report'
class shuup.default_reports.reports.OrderLineReport(**kwargs)[source]

Bases: shuup.default_reports.mixins.OrderLineReportMixin, shuup.reports.report.ShuupReportBase

filename_template = 'orders-report-%(time)s'
form_class

alias of OrderLineReportForm

get_data()[source]
identifier = 'order_line_report'
schema = [{'key': 'order_line_sku', 'title': 'Order Line SKU'}, {'key': 'order_line_text', 'title': 'Order Line Text'}, {'key': 'order_line_quantity', 'title': 'Quantity'}, {'key': 'taxless_unit_price', 'title': 'Taxless Unit Price'}, {'key': 'taxful_unit_price', 'title': 'Taxful Unit Price'}, {'key': 'taxful_price', 'title': 'Taxful Price'}, {'key': 'created_on', 'title': 'Created on'}, {'key': 'type', 'title': 'Type'}]
title = 'Order Line Report'