{
  "test_id": "ORCL.P2P.AP.INV.ACCOUNTING",
  "scenario_name": "Invoice Accounting",
  "application": "Oracle Fusion Cloud",
  "product": "Financials",
  "module": "Accounts Payable",
  "process": "Invoice Processing",
  "business_flow": "Procure-to-Pay",
  "scenario_type": "Positive / Functional",
  "priority": "High",
  "automation_status": "SyntraFlow Ready",
  "library": "Syntra Standard",
  "canonical_url": "https://www.syntraflow.cloud/oracle-erp-testing-tool/test-library/financials/accounts-payable/invoice-processing/invoice-accounting/",
  "objective": {
    "intro": "Validate that Oracle Fusion Payables correctly creates accounting for eligible invoices and confirm the resulting accounting outcome matches the expected debit and credit treatment.",
    "confirms": [
      "Only invoices with a Validated status (and required approvals complete) are eligible for Create Accounting",
      "The Create Accounting process derives correct debit and credit lines based on Subledger Accounting rules",
      "Invoice accounting status updates from Unaccounted to Accounted, or Partially Accounted where applicable",
      "The accounting date assigned to generated entries falls within an Open or Future-Enterable period",
      "Distribution combinations used for accounting are valid, active, and reflect the correct expense, liability, or prepayment accounts",
      "Multi-line and multi-distribution invoices generate one balanced accounting entry set per invoice",
      "Draft mode accounting can be previewed and reviewed before Final mode accounting is submitted",
      "Accounting exceptions (invalid combination, closed period, incomplete distribution) are correctly captured and reported",
      "Credit memo and prepayment invoices generate the correct reversing or asset-based accounting treatment"
    ],
    "scope_note": "This scenario validates accounting creation only; it does not assert that journal entries have been transferred to or posted in the General Ledger unless that action is explicitly included in the scenario steps."
  },
  "preconditions": [
    "Invoice exists in Payables with Validation Status = Validated and, where required, Approval Status = Approved",
    "Invoice has no active holds that would block the accounting process",
    "The ledger and business unit configuration has an active Subledger Accounting method assigned",
    "The accounting period corresponding to the invoice's accounting date is Open or Future-Enterable in both Payables and General Ledger calendars",
    "Distribution lines reference valid, enabled natural account and distribution combinations (charge, liability, prepayment, or tax accounts as applicable)",
    "Application Accounting Definitions, Journal Line Rules, and Account Rules are configured for the Payables subledger",
    "User has role access to run Create Accounting (Submit Accounting) from the invoice or via Scheduled Processes",
    "Supplier and business unit are associated with a liability account per Payables Financial Options setup",
    "For PO-matched invoices, purchase order distribution and accrual accounts are valid and available for derivation"
  ],
  "test_data": [
    {
      "field": "Invoice Number",
      "example": "INV-AP-100245"
    },
    {
      "field": "Business Unit",
      "example": "US1 Business Unit"
    },
    {
      "field": "Supplier",
      "example": "Global Parts Supply Inc."
    },
    {
      "field": "Invoice Type",
      "example": "Standard"
    },
    {
      "field": "Invoice Amount",
      "example": "12,450.00 USD"
    },
    {
      "field": "Accounting Date",
      "example": "15-Aug-2026"
    },
    {
      "field": "Ledger",
      "example": "US Primary Ledger"
    },
    {
      "field": "Expense Distribution",
      "example": "01-000-7420-0000-000 (Office Supplies Expense)"
    },
    {
      "field": "Liability Account",
      "example": "01-000-2210-0000-000 (AP Trade Liability)"
    },
    {
      "field": "Accounting Period",
      "example": "Aug-2026"
    },
    {
      "field": "Accounting Mode",
      "example": "Draft, then Final"
    },
    {
      "field": "Currency",
      "example": "USD (Ledger Currency)"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Confirm invoice eligibility",
      "action": "Open the invoice in Manage Invoices and confirm Validation Status = Validated with no blocking holds",
      "test_data": "Invoice Number: INV-AP-100245",
      "expected_result": "Invoice status confirmed as Validated and eligible for accounting",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Confirm accounting period status",
      "action": "Verify the accounting period corresponding to the invoice's accounting date is Open in Payables and General Ledger",
      "test_data": "Period: Aug-2026",
      "expected_result": "Accounting period status = Open",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Submit Create Accounting in Draft mode",
      "action": "From the invoice, select Actions > Create Accounting and run with Accounting Mode = Draft",
      "test_data": "Accounting Mode: Draft",
      "expected_result": "Process completes and draft accounting entries are generated for review",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Review draft accounting entries",
      "action": "Open the Review Accounting Entries page and inspect the generated debit and credit lines",
      "test_data": "",
      "expected_result": "Draft entries display balanced debit expense and credit liability lines matching the distribution setup",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Confirm no draft accounting errors",
      "action": "Check the draft accounting output for exceptions or unposted lines before proceeding to Final mode",
      "test_data": "",
      "expected_result": "No accounting exceptions are present in the draft run",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Submit Create Accounting in Final mode",
      "action": "Rerun Create Accounting on the invoice with Accounting Mode = Final",
      "test_data": "Accounting Mode: Final",
      "expected_result": "Process completes successfully and invoice accounting status updates to Accounted",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Verify invoice accounting status",
      "action": "Navigate back to the invoice header and check the Accounting Status field",
      "test_data": "",
      "expected_result": "Accounting Status = Accounted",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Verify accounting entries",
      "action": "Open View Accounting Journal Entries for the invoice and inspect the generated lines",
      "test_data": "",
      "expected_result": "Journal entries show a debit to the Expense/Charge account and a credit to the AP Liability account, with amounts equal to invoice line and tax totals",
      "validation_type": "action"
    },
    {
      "step_number": 9,
      "step_name": "Verify accounting date and period",
      "action": "Confirm the accounting date on the generated journal matches the invoice's designated accounting date and period",
      "test_data": "Accounting Date: 15-Aug-2026",
      "expected_result": "Accounting date = 15-Aug-2026, accounting period = Aug-2026",
      "validation_type": "action"
    },
    {
      "step_number": 10,
      "step_name": "Verify distribution-to-account mapping",
      "action": "Compare each invoice distribution line to its corresponding generated accounting line",
      "test_data": "",
      "expected_result": "Every distribution line maps to a correct and traceable accounting line",
      "validation_type": "action"
    },
    {
      "step_number": 11,
      "step_name": "Verify multi-line invoice balancing",
      "action": "For invoices with multiple distributions, sum total debits and total credits across the accounting set",
      "test_data": "",
      "expected_result": "Total debits equal total credits for the invoice's accounting entry set",
      "validation_type": "action",
      "note": "Applies to multi-line and multi-distribution variations"
    },
    {
      "step_number": 12,
      "step_name": "Verify scenario-specific accounting treatment",
      "action": "For PO-matched, credit memo, or prepayment invoices, confirm the accounts and entry direction reflect the correct treatment (PO accrual derivation, reversed debit/credit for credit memos, or prepayment asset account for prepayments)",
      "test_data": "",
      "expected_result": "Scenario-specific accounts and entry direction are correctly applied",
      "validation_type": "action",
      "note": "Applies to PO-Matched, Credit Memo, and Prepayment variations"
    },
    {
      "step_number": 13,
      "step_name": "Confirm overall invoice accounting outcome",
      "action": "Review the complete accounting result for the invoice against the expected accounting treatment for its scenario type",
      "test_data": "",
      "expected_result": "Invoice accounting reflects the correct financial treatment: accurate accounts, balanced entries, correct accounting date, and Accounted status",
      "validation_type": "business_assertion"
    }
  ],
  "expected_results": [
    "Invoice accounting status changes from Unaccounted to Accounted after successful Final mode processing",
    "Draft mode accounting entries are available for preview prior to Final submission",
    "Debit and credit accounting lines are generated in balance for each invoice distribution",
    "Expense or charge accounts reflect the correct natural account per the distribution setup",
    "The AP Liability account is correctly credited for the invoice liability amount",
    "Accounting date and period on generated entries match the invoice's designated accounting date",
    "PO-matched invoices derive distribution accounts consistent with purchase order accounting setup",
    "Credit memo and prepayment invoices generate the appropriate reversing or asset-based accounting treatment",
    "Accounting exceptions are captured and displayed in Review Accounting Errors for ineligible invoices",
    "No unexpected system errors occur during Draft or Final accounting submission for eligible invoices"
  ],
  "validation_checkpoints": [
    "Accounting process completes without error for eligible invoices",
    "Invoice accounting status correctly reflects Accounted, Partially Accounted, or Unaccounted",
    "Expected accounting entries (debit and credit) are generated per distribution line",
    "The liability account is accurately represented and equals the invoice liability amount",
    "Expense, charge, or prepayment accounts are accurately represented per distribution combination",
    "Accounting date assigned to journal entries matches the invoice's accounting date",
    "Accounting period is correctly derived and confirmed open at time of processing",
    "Accounting errors and exceptions are correctly captured for ineligible invoices (closed period, invalid combination, unvalidated invoice)",
    "Draft accounting entries match Final accounting entries when no changes occur between runs",
    "Multi-line invoices produce balanced accounting sets where total debits equal total credits",
    "PO-matched invoice distributions correctly inherit purchase order accounting setup",
    "Credit memo accounting entries correctly reverse the original invoice's accounting direction"
  ]
}