# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod. id: O2C-AR-004 title: AutoInvoice rejects invalid lines and imports valid ones module: O2C process: Billing priority: P2 priority_rationale: "Interface errors leave revenue unbilled. I4 x C4 x U3 = 48 -> P2 (map row BIL-01 is P1, score 100). Usage placeholder drove\ \ tier: usage 2 would give P3." priority_source: case-level risk x usage (analysis/o2c-coverage-map.md ยง4 method) scored on what this case tests; not the row tier priority_score: impact: 4 change_likelihood: 4 usage: 3 usage_basis: ASSUMED (placeholder until Scout usage counts) risk: 16 score: 48 tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20 usage_sensitive: true map_ids: - BIL-01 - "O2C:INT-02" verification: UNVERIFIED approval_status: draft - pending consultant approval (architecture approval gate) client_questions: - O2C-Q08 - X-Q08 - X-Q09 type: negative tags: - ar - autoinvoice - fbdi - negative - o2c - p2 roles: - billing_specialist preconditions: - None beyond referenced data recipes. data_recipes: - DR-O2C-USR-001 - DR-O2C-AR-002 - DR-O2C-INT-002 test_values: valid: 540.0 invalid: 432.0 imported: 1 rejected: 1 steps: - n: 1 action: seed_file target: template: DR-O2C-INT-002.autoinvoice_fbdi expected: "Interface rows: L1 bill-to {{data.customer_name}} 540.00 valid; L2 bill-to ZZ-NOCUST 432.00 invalid." - n: 2 action: navigate value: "{{nav.scheduled_processes}}" expected: Work area 'scheduled_processes' opens (path resolved from ui-glossary nav map). - n: 3 action: click target: role: button name: Schedule New Process expected: Schedule New Process dialog opens. - n: 4 action: fill target: role: combobox name: Name value: Import AutoInvoice expected: Process 'Import AutoInvoice' is selectable. - n: 5 action: click target: role: button name: OK expected: Process Details dialog opens. - n: 6 action: fill target: role: textbox name: Business Unit value: "{{org.o2c_bu}}" expected: Value accepted; no field-level error. - n: 7 action: fill target: role: textbox name: Transaction Source value: "{{data.ar_source_import}}" expected: Value accepted; no field-level error. - n: 8 action: click target: role: button name: Submit expected: "Confirmation dialog shows a process ID; capture as {{run.process_id}}." - n: 9 action: wait_for target: role: cell name: Status value: "{{run.process_id}}" expected: "Execution report: 1 imported (540.00), 1 rejected (432.00) with error 'invalid bill-to customer'." - n: 10 action: verify_api target: method: GET path: "{{env.rest_base}}/receivablesInvoices?q=PurchaseOrder='ZZ-AI-{{run.suffix}}'" expected: Exactly 1 invoice, 540.00 + tax. expected_result: Exactly 1 invoice, 540.00 + tax. notes: - Runs against a mock prove only the mock, never Oracle Fusion.