Files
syops/backend/tests/fixtures/shipping_xfa/annotation/expected.json
T

66 lines
2.3 KiB
JSON

{
"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 条明细;允许发布和试点,生产扩大前须补多明细样本。"
}
}