HimoolERP/apps/statistic/permissions.py

33 lines
701 B
Python
Raw Normal View History

2021-12-16 17:54:31 +08:00
from extensions.permissions import ModelPermission
2021-11-04 23:49:56 +08:00
2021-12-26 23:00:08 +08:00
class PurchaseReportPermission(ModelPermission):
code = 'purchase_report'
class SalesReportPermission(ModelPermission):
code = 'sales_report'
2021-11-04 23:49:56 +08:00
2021-12-26 23:00:08 +08:00
2021-12-28 00:26:32 +08:00
class SalesHotGoodsPermission(ModelPermission):
code = 'sales_hot_goods'
class SalesTrendPermission(ModelPermission):
code = 'sales_trend'
2021-12-28 01:25:57 +08:00
class ProfitTrendPermission(ModelPermission):
code = 'profit_trend'
2021-12-29 02:07:37 +08:00
class FinanceStatisticPermission(ModelPermission):
code = 'finance_statistic'
2021-12-26 23:00:08 +08:00
__all__ = [
'PurchaseReportPermission', 'SalesReportPermission',
2021-12-28 00:26:32 +08:00
'SalesHotGoodsPermission', 'SalesTrendPermission',
2021-12-29 02:07:37 +08:00
'ProfitTrendPermission', 'FinanceStatisticPermission',
2021-11-04 23:49:56 +08:00
]