feat(invoice-check): 通过invoice号反查tghx的采购单,生成PO订单
This commit is contained in:
1 parent
1c34ab962f
commit
40cead7430
27 files changed
+792
-74
No files matched your search
@@ -1,9 +1,9 @@
|
||||
"""
|
||||
backend/app/services/voucher_check/config.py
|
||||
|
||||
用途:解析立账凭证检核环境变量与 ScheduleTask.job_params。
|
||||
用途:解析立账凭证检核 / PO 生成环境变量与 ScheduleTask.job_params。
|
||||
依赖:Flask current_app.config、core.errors.ValidationError。
|
||||
逻辑:runner / erp_repository / 引擎启动前调用;非法配置抛 VOUCHER_CHECK.CONFIG_INVALID;
|
||||
逻辑:runner / po_print_runner / erp_repository 启动前调用;非法配置抛 VOUCHER_CHECK.CONFIG_INVALID;
|
||||
ERP 账号优先 VOUCHER_CHECK_ERP_*,否则 ERP_*,再回退 CONTRACT_PAYMENT_ERP_*。
|
||||
"""
|
||||
|
||||
@@ -24,6 +24,12 @@ DEFAULT_JOB_PARAMS: dict[str, Any] = {
|
||||
"notify_failure_enabled": True,
|
||||
}
|
||||
|
||||
DEFAULT_PO_PRINT_JOB_PARAMS: dict[str, Any] = {
|
||||
"profile_code": "sales",
|
||||
"scope_code": "HXJM",
|
||||
"notify_failure_enabled": True,
|
||||
}
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class VoucherCheckEngineConfig:
|
||||
|
||||
Reference in new issue
Block a user