{
  "test_id": "ORCL.P2P.AP.INV.CREATE.PREPAYMENT",
  "scenario_name": "Create Prepayment Invoice",
  "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/create-prepayment-invoice/",
  "objective": {
    "intro": "This test validates the end-to-end creation of a supplier prepayment invoice in Oracle Fusion Payables, confirming the advance payment is correctly typed, distributed, approved, and paid so it is available for future application.",
    "confirms": [
      "Invoice Type can be set to Prepayment and the header correctly reflects a prepayment record rather than a standard invoice",
      "Prepayment Type (Temporary or Permanent) is captured and drives downstream application eligibility",
      "Supplier, supplier site, and business unit combination is valid, active, and not on payment hold",
      "The prepayment distribution line posts to the designated prepayment/advances clearing account rather than an expense account",
      "Settlement date is captured for prepayment aging and monitoring purposes",
      "Invoice currency, conversion rate, and payment terms are captured correctly, including for foreign-currency prepayments",
      "The Validate action confirms distribution completeness, tax determination, and funds availability before approval",
      "Approval workflow routes the prepayment based on configured amount and hierarchy rules",
      "The prepayment reaches Paid status with an Unapplied balance, ready for future application"
    ],
    "scope_note": "Creating and paying the prepayment is a distinct test family from applying it to a standard invoice, which is covered separately by the Apply Prepayment to Invoice test."
  },
  "preconditions": [
    "Supplier and supplier site are active, approved, and not on payment or purchasing hold",
    "Business unit AP options are configured to permit prepayments, with a designated prepayment (advances) GL account available",
    "If a foreign-currency prepayment, a conversion rate type and current rate exist for the invoice date",
    "Payment terms are defined and assigned to the supplier site",
    "Approval rules for the Prepayment invoice type and amount thresholds are configured in BPM",
    "The Accounts Payable period covering the invoice date is open",
    "The test user has the Accounts Payable Invoice Entry or equivalent privilege",
    "Tax rules and tax determinants are configured if tax applies to prepayment transactions",
    "If PO-backed, a purchase order with a prepayment-enabled milestone or line exists"
  ],
  "test_data": [
    {
      "field": "Supplier",
      "example": "Global Freight Solutions Ltd."
    },
    {
      "field": "Supplier Site",
      "example": "GFS-USD-SITE1"
    },
    {
      "field": "Business Unit",
      "example": "US1 Business Unit"
    },
    {
      "field": "Invoice Type",
      "example": "Prepayment"
    },
    {
      "field": "Prepayment Type",
      "example": "Temporary"
    },
    {
      "field": "Invoice Number",
      "example": "PREPAY-2026-0142"
    },
    {
      "field": "Invoice Date",
      "example": "12-Aug-2026"
    },
    {
      "field": "Invoice Amount",
      "example": "25,000.00"
    },
    {
      "field": "Currency",
      "example": "USD"
    },
    {
      "field": "Payment Terms",
      "example": "Immediate"
    },
    {
      "field": "Settlement Date",
      "example": "10-Nov-2026"
    },
    {
      "field": "Distribution Combination",
      "example": "01-000-1410-0000-000 (Advances to Suppliers)"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Open Create Invoice and select Prepayment type",
      "action": "Navigate to the Create Invoice work area and select Prepayment as the invoice type",
      "test_data": "Invoice Type = Prepayment",
      "expected_result": "A new prepayment invoice header opens with Invoice Type defaulted to Prepayment",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Enter business unit, supplier, and site",
      "action": "Enter the business unit, then search for and select the supplier and supplier site",
      "test_data": "US1 Business Unit / Global Freight Solutions Ltd. / GFS-USD-SITE1",
      "expected_result": "Header populates with supplier remit-to and liability account defaults from the site",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Select prepayment type",
      "action": "Choose whether the prepayment is Temporary (applicable to future invoices) or Permanent (non-applicable advance)",
      "test_data": "Prepayment Type = Temporary",
      "expected_result": "Prepayment Type field is saved on the header and controls later application eligibility",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Enter invoice number, date, amount, and currency",
      "action": "Enter the invoice number, invoice date, amount, and currency for the advance payment",
      "test_data": "PREPAY-2026-0142 / 12-Aug-2026 / 25,000.00 / USD",
      "expected_result": "Header fields save without validation errors; conversion rate is captured automatically for foreign currency",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Enter payment terms",
      "action": "Select the payment terms governing when the prepayment is due",
      "test_data": "Immediate",
      "expected_result": "Payment terms are applied to the invoice header",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Enter settlement date",
      "action": "Enter the expected settlement date by which the prepayment should be applied or cleared",
      "test_data": "10-Nov-2026",
      "expected_result": "Settlement date is stored on the invoice for prepayment aging and monitoring reports",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Enter prepayment distribution",
      "action": "Add or confirm the distribution line pointing to the prepayment (advances) GL account for the full invoice amount",
      "test_data": "01-000-1410-0000-000 (Advances to Suppliers)",
      "expected_result": "Distribution line is created against the designated prepayment asset account, not an expense account",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Apply tax classification if applicable",
      "action": "Enter or confirm the tax classification code where prepayments are subject to tax or withholding",
      "test_data": "As configured for supplier/site",
      "expected_result": "Tax lines calculate correctly and post to the appropriate tax account",
      "validation_type": "action",
      "note": "Skipped where the business unit exempts prepayments from tax."
    },
    {
      "step_number": 9,
      "step_name": "Save and validate the invoice",
      "action": "Save the invoice and run Validate to check distribution completeness, tax determination, and funds availability",
      "test_data": "",
      "expected_result": "Invoice validates successfully with no holds; status moves to Validated",
      "validation_type": "action"
    },
    {
      "step_number": 10,
      "step_name": "Submit for approval",
      "action": "Submit the validated prepayment invoice into the approval workflow where routing rules apply",
      "test_data": "",
      "expected_result": "Invoice routes to the correct approver based on configured amount and hierarchy rules",
      "validation_type": "action"
    },
    {
      "step_number": 11,
      "step_name": "Approve prepayment invoice",
      "action": "Approver reviews and approves the prepayment invoice",
      "test_data": "",
      "expected_result": "Invoice status updates to Approved and becomes eligible for payment selection",
      "validation_type": "action"
    },
    {
      "step_number": 12,
      "step_name": "Select and pay prepayment",
      "action": "Include the prepayment invoice in a Payment Process Request and confirm payment",
      "test_data": "",
      "expected_result": "Payment is issued and the invoice payment status updates to Paid",
      "validation_type": "action"
    },
    {
      "step_number": 13,
      "step_name": "Confirm prepayment is available for future application",
      "action": "Review the paid prepayment invoice and confirm its application balance",
      "test_data": "",
      "expected_result": "Prepayment shows Paid with an Unapplied balance equal to the invoice amount, ready for future application to a standard invoice",
      "validation_type": "business_assertion"
    }
  ],
  "expected_results": [
    "Prepayment invoice is created with Invoice Type = Prepayment and the correct Prepayment Type (Temporary or Permanent)",
    "Supplier, site, and business unit combination is accepted only when active and valid",
    "Distribution posts to the prepayment (advances) GL account rather than an expense account",
    "Settlement date is stored and visible on prepayment aging reports",
    "Foreign-currency prepayments capture the correct conversion rate and functional-currency equivalent",
    "Validate action clears the invoice with no unexpected holds when data is complete and accurate",
    "Approval workflow routes the invoice correctly based on configured thresholds",
    "Payment Process Request successfully selects and pays the approved prepayment",
    "Final prepayment status is Paid with an Unapplied balance available for future application",
    "Permanent prepayments are correctly excluded from future application eligibility"
  ],
  "validation_checkpoints": [
    "Invoice Type field equals Prepayment on the saved header",
    "Prepayment Type field equals the value entered (Temporary or Permanent)",
    "Supplier site status is Active and not on hold at time of entry",
    "Distribution combination resolves to the configured prepayment/advances natural account",
    "Settlement date field is populated and passed through to the Prepayment Status report",
    "Currency and conversion rate fields match test data for foreign-currency scenarios",
    "Validation status transitions from Incomplete to Validated with zero unresolved holds",
    "Approval history log reflects the correct approver and approval timestamp",
    "Payment record links the prepayment invoice to the Payment Process Request",
    "Prepayment application amount available equals the full paid invoice amount",
    "Accounting entries debit the prepayment asset account and credit cash/liability as expected",
    "No expense distribution lines exist on a prepayment invoice"
  ]
}