1
0
forked from erp-dev/erp

feat: new module for daily settlement

This commit is contained in:
2026-02-08 11:37:52 +08:00
parent 72597ce81f
commit c564b1af32
15 changed files with 991 additions and 0 deletions

12
settlement/signals.py Normal file
View File

@@ -0,0 +1,12 @@
"""日结模块信号定义"""
from django.dispatch import Signal
# 日结完成信号
# 参数:
# merchant: Merchant 实例
# settlement_date: datetime.date
# status: 'success' / 'failed' / 'partial'
# modules: list[str] - 参与统计的模块列表
# errors: dict - 模块错误详情 {'module_name': 'error message'}
# task_id: str - Celery 任务ID
daily_settlement_completed = Signal()