2
This commit is contained in:
commit
21d41acf50
732 files changed
+55672
-15251
No files matched your search
@@ -85,6 +85,7 @@ def run_voucher_check_batch(task: ScheduleTask, run: ScheduleRun) -> ScheduleExe
|
||||
"""
|
||||
执行立账凭证周批次。
|
||||
核心逻辑:上月 invoice × 必检规则扫描文档库类型目录,命中后复制到所有归档(同名跳过)。
|
||||
启动日志带 path=accounting-voucher-check,便于在全是 schedule 的 worker 输出中识别本任务。
|
||||
|
||||
Returns:
|
||||
ScheduleExecuteResult:(total, success, failed, skipped, details, errors, step_logs)
|
||||
@@ -95,6 +96,12 @@ def run_voucher_check_batch(task: ScheduleTask, run: ScheduleRun) -> ScheduleExe
|
||||
mode = options["mode"]
|
||||
single_invoice = options["invoice_no"]
|
||||
now = datetime.utcnow()
|
||||
current_app.logger.info(
|
||||
"[voucher-check] start name=%s path=accounting-voucher-check run_no=%s mode=%s",
|
||||
getattr(task, "name", None) or "立账凭证检核",
|
||||
run.run_no,
|
||||
mode,
|
||||
)
|
||||
|
||||
try:
|
||||
config = load_engine_config(task.job_params if isinstance(task.job_params, dict) else {})
|
||||
|
||||
Reference in new issue
Block a user