feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a9fbac2fc
commit
d2b3d74def
571 files changed
+78064
-24681
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Desensitized synthetic XFA datasets fixture for Phase 0 path/fingerprint tests.
|
||||
Not a real customer packet; values mirror annotation expected.json structure only.
|
||||
-->
|
||||
<data>
|
||||
<HEADER>
|
||||
<EBELN>4510039227</EBELN>
|
||||
<BEDAT>2026-07-07</BEDAT>
|
||||
<WAERS>USD</WAERS>
|
||||
<TOTAL_AMOUNT>26961.60</TOTAL_AMOUNT>
|
||||
</HEADER>
|
||||
<ITEMS>
|
||||
<DATA>
|
||||
<EBELP>00010</EBELP>
|
||||
<MATNR>TEMP-S000218922</MATNR>
|
||||
<MENGE>30.000</MENGE>
|
||||
<NETPR>898.72 / 1</NETPR>
|
||||
<PEINH>1</PEINH>
|
||||
<AMOUNT>26961.60</AMOUNT>
|
||||
<EINDT>2026-07-14</EINDT>
|
||||
</DATA>
|
||||
</ITEMS>
|
||||
<ITEMS1>
|
||||
<DATA>
|
||||
<EBELP>00010</EBELP>
|
||||
<MATNR>TEMP-S000218922</MATNR>
|
||||
<MENGE>30.000</MENGE>
|
||||
<NETPR>898.72 / 1</NETPR>
|
||||
<PEINH>1</PEINH>
|
||||
<AMOUNT>26961.60</AMOUNT>
|
||||
<EINDT>2026-07-14</EINDT>
|
||||
</DATA>
|
||||
</ITEMS1>
|
||||
</data>
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"fixture_role": "annotation",
|
||||
"fixture_id": "xfa-annotation-po-4510039227",
|
||||
"content_identity": {
|
||||
"logical_document_id": "annotation-4510039227",
|
||||
"content_hash": "sha256:annotation-fixture-content-v1-not-real-pdf",
|
||||
"note": "与 blind_test 的 content_hash / logical_document_id 必须完全独立;禁止兼作盲测。"
|
||||
},
|
||||
"document_kind": "xfa_hybrid",
|
||||
"business_confirmed": true,
|
||||
"business_confirmed_note": "字段预期来自实施方案与验收文档对真实样本 4510039227 的只读验证结论;正式 PDF 不入库,仅保留脱敏期望。",
|
||||
"header": {
|
||||
"customer_po_no": "4510039227",
|
||||
"supplier_name": "DESENSITIZED_SUPPLIER",
|
||||
"order_date": "2026-07-07",
|
||||
"currency": "USD",
|
||||
"total_amount": "26961.60"
|
||||
},
|
||||
"lines": [
|
||||
{
|
||||
"customer_po_line_no": "00010",
|
||||
"material_no": "TEMP-S000218922",
|
||||
"quantity_raw": "30.000",
|
||||
"quantity": "30",
|
||||
"uom": "PC",
|
||||
"unit_price": "898.72",
|
||||
"price_unit": "1",
|
||||
"amount": "26961.60",
|
||||
"delivery_date": "2026-07-14"
|
||||
}
|
||||
],
|
||||
"collections": {
|
||||
"authoritative_line_collection_path": "/data/ITEMS/DATA",
|
||||
"mirror_collection_paths": ["/data/ITEMS1/DATA"],
|
||||
"mirror_equals_authoritative_when_normalized": true
|
||||
},
|
||||
"paths": {
|
||||
"customer_po_no": "/data/HEADER/EBELN",
|
||||
"order_date": "/data/HEADER/BEDAT",
|
||||
"currency": "/data/HEADER/WAERS",
|
||||
"total_amount": "/data/HEADER/TOTAL_AMOUNT",
|
||||
"customer_po_line_no": "/data/ITEMS/DATA/EBELP",
|
||||
"material_no": "/data/ITEMS/DATA/MATNR",
|
||||
"quantity": "/data/ITEMS/DATA/MENGE",
|
||||
"unit_price": "/data/ITEMS/DATA/NETPR",
|
||||
"amount": "/data/ITEMS/DATA/AMOUNT",
|
||||
"delivery_date": "/data/ITEMS/DATA/EINDT"
|
||||
},
|
||||
"acroform_display_samples": {
|
||||
"quantity": "30",
|
||||
"amount": "26,961.6",
|
||||
"delivery_date": "14/07/2026"
|
||||
},
|
||||
"normalization_expectations": {
|
||||
"quantity": {"from": "30.000", "to": "30"},
|
||||
"unit_price": {"from": "898.72 / 1", "to": "898.72"},
|
||||
"price_unit": {"from": "1", "to": "1", "also_from_netpr_composite": true},
|
||||
"amount": {"from": "26961.60", "to": "26961.60"},
|
||||
"delivery_date": {"from": "2026-07-14", "to": "2026-07-14"}
|
||||
},
|
||||
"coverage_notes": {
|
||||
"multi_line_coverage": "missing",
|
||||
"multi_line_coverage_note": "试点仅 1 条明细;允许发布和试点,生产扩大前须补多明细样本。"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"fixture_role": "blind_test",
|
||||
"fixture_id": "xfa-blind-test-po-independent-001",
|
||||
"content_identity": {
|
||||
"logical_document_id": "blind-test-independent-001",
|
||||
"content_hash": "sha256:blind-test-fixture-content-v1-independent",
|
||||
"note": "与 annotation 文件身份和内容哈希完全独立;真值不得从普通 DTO/审计/网络响应泄露。"
|
||||
},
|
||||
"document_kind": "xfa_hybrid",
|
||||
"business_confirmed": true,
|
||||
"header": {
|
||||
"customer_po_no": "4510099999",
|
||||
"supplier_name": "DESENSITIZED_SUPPLIER_BT",
|
||||
"order_date": "2026-07-08",
|
||||
"currency": "USD",
|
||||
"total_amount": "1797.44"
|
||||
},
|
||||
"lines": [
|
||||
{
|
||||
"customer_po_line_no": "00010",
|
||||
"material_no": "TEMP-S000299999",
|
||||
"quantity_raw": "2.000",
|
||||
"quantity": "2",
|
||||
"uom": "PC",
|
||||
"unit_price": "898.72",
|
||||
"price_unit": "1",
|
||||
"amount": "1797.44",
|
||||
"delivery_date": "2026-07-20"
|
||||
}
|
||||
],
|
||||
"collections": {
|
||||
"authoritative_line_collection_path": "/data/ITEMS/DATA",
|
||||
"mirror_collection_paths": ["/data/ITEMS1/DATA"],
|
||||
"mirror_equals_authoritative_when_normalized": true
|
||||
},
|
||||
"required_accuracy": {
|
||||
"required_fields": 1.0,
|
||||
"line_count": 1.0,
|
||||
"quantity_amount_date_normalization": 1.0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"fixture_manifest_version": "shipping-xfa-golden.v1",
|
||||
"roles": {
|
||||
"annotation": {
|
||||
"expected": "annotation/expected.json",
|
||||
"datasets_sample": "annotation/datasets_sample.xml",
|
||||
"pdf": null,
|
||||
"pdf_note": "真实/脱敏 PDF 不入库;阶段 1+ 本地挂载后按 content_hash 校验。"
|
||||
},
|
||||
"blind_test": {
|
||||
"expected": "blind_test/expected.json",
|
||||
"pdf": null
|
||||
}
|
||||
},
|
||||
"acceptance_fields": {
|
||||
"customer_po_no": "4510039227",
|
||||
"material_no": "TEMP-S000218922",
|
||||
"quantity": "30",
|
||||
"unit_price": "898.72",
|
||||
"price_unit": "1",
|
||||
"amount": "26961.60",
|
||||
"delivery_date": "2026-07-14"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user