feat(invoice-check): 从erp查询PO订单数据来源

This commit is contained in:
sophie committed 2026-09-14 19:09:42 +08:00
1 parent b15dd6808f
commit 1c34ab962f
40 files changed
+2682 -395

No files matched your search

@@ -80,7 +80,7 @@ class DirectoryScanAdapter(Protocol):
class AcquireAdapter(Protocol):
"""把外部单据打印后写入类型目录;PO / 销货放行单一期仅占位。"""
"""把外部单据打印后写入类型目录;PO 制式 PDF 见 po_order,ERP 取数见 erp_po_repository。"""
source_type: str
wired: bool
@@ -88,7 +88,7 @@ class AcquireAdapter(Protocol):
def fetch(self, *, period_month: date, subjects: list[SubjectRow]) -> list[ScannedFile]:
"""
获取并落入类型目录。
【AI 触发时机】仅当独立抓取任务启用且 Adapter.wired=True 时调用;周任务不调用。
【AI 触发时机】仅当 Adapter.wired=True 且独立抓取走本方法时调用;周任务不调用。PO 独立抓取请用 ErpPoPrintAdapter.fetch_documents,不要走 fetch。
"""
...