{
  "test_id": "ORCL.P2P.PROC.RCV.RETURN",
  "scenario_name": "Return to Supplier",
  "application": "Oracle Fusion Cloud",
  "product": "SCM / Procurement",
  "module": "Procurement",
  "process": "Receiving",
  "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/scm/procurement/receiving/return-to-supplier/",
  "objective": {
    "intro": "The objective of this test is to verify that an authorised Procurement user can return eligible received goods to the supplier in Oracle Fusion Receiving, and that the resulting receipt quantity and return history correctly reflect the return.",
    "confirms": [
      "the selected receipt has a returnable quantity for the item being returned",
      "the return reason is accepted",
      "the return quantity does not exceed the returnable or received quantity",
      "the receipt's remaining quantity is updated to reflect the return",
      "the return is recorded and visible in the receipt's transaction history",
      "inventory or accounting impact of the return is reflected where applicable",
      "the return remains traceable back to the original receipt and purchase order"
    ],
    "scope_note": "This scenario does not claim that every downstream inventory, accounting or supplier-debit configuration is covered — those depend on the customer's specific Oracle Fusion configuration and are addressed by separate test scenarios."
  },
  "preconditions": [
    "Oracle Fusion Procurement / Receiving is configured and available.",
    "An eligible receipt exists with a returnable quantity for the item being returned.",
    "Return reason lookup values required for the return are configured.",
    "The test user has permission to process returns to supplier in Oracle Fusion Receiving."
  ],
  "test_data": [
    {
      "field": "Supplier",
      "example": "${SUPPLIER}"
    },
    {
      "field": "PO Number",
      "example": "${PO_NUMBER}"
    },
    {
      "field": "Receipt Number",
      "example": "${RECEIPT_NUMBER}"
    },
    {
      "field": "Item",
      "example": "${ITEM}"
    },
    {
      "field": "Received Quantity",
      "example": "${RECEIVED_QUANTITY}"
    },
    {
      "field": "Return Quantity",
      "example": "${RETURN_QUANTITY}"
    },
    {
      "field": "Return Reason",
      "example": "${RETURN_REASON}"
    },
    {
      "field": "Return Date",
      "example": "${RETURN_DATE}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In",
      "action": "Sign in to Oracle Fusion Procurement / Receiving as an authorized user.",
      "test_data": "",
      "expected_result": "The user is authenticated and Receiving is accessible.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to the Receipt",
      "action": "Navigate to and locate the receipt eligible for return by supplier, PO number and receipt number.",
      "test_data": "${SUPPLIER} / ${PO_NUMBER} / ${RECEIPT_NUMBER}",
      "expected_result": "The correct receipt is located and its details, including returnable quantity, are displayed.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening receipt search, entering search criteria, and opening the located result."
    },
    {
      "step_number": 3,
      "step_name": "Initiate Return",
      "action": "Initiate the return transaction on the selected receipt.",
      "test_data": "",
      "expected_result": "The return entry page opens for the selected receipt.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Select Item and Enter Return Quantity",
      "action": "Select the item being returned and enter the return quantity.",
      "test_data": "${ITEM} / ${RETURN_QUANTITY}",
      "expected_result": "The item and return quantity are accepted without unexpected validation errors.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Enter Return Reason",
      "action": "Enter or select the return reason.",
      "test_data": "${RETURN_REASON}",
      "expected_result": "The return reason is accepted.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Review Return Details",
      "action": "Review the return details, including item, quantity and reason, before submission.",
      "test_data": "",
      "expected_result": "Return details are displayed correctly for review.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Submit Return",
      "action": "Submit the return.",
      "test_data": "",
      "expected_result": "Oracle Fusion processes the return request without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Verify Receipt Quantity Updated and Return History Visible",
      "action": "Confirm that the receipt's remaining quantity is updated and that the return appears in the receipt's transaction history.",
      "test_data": "",
      "expected_result": "The receipt quantity reflects the return, the return is visible in return history, and inventory/accounting effect is correct where applicable.",
      "validation_type": "business_assertion",
      "note": "This is the main business assertion for the scenario — the test does not stop merely because Submit was clicked successfully."
    }
  ],
  "expected_results": [
    "An eligible return to supplier is processed successfully.",
    "The return is correctly recorded against the originating receipt.",
    "Return quantity and return reason are correctly retained on the transaction.",
    "The receipt's remaining quantity is updated to reflect the return.",
    "The return is visible in the receipt's transaction/return history.",
    "Inventory or accounting impact of the return is reflected where applicable.",
    "No unexpected save errors occur.",
    "The return remains traceable to the original receipt and purchase order for audit purposes."
  ],
  "validation_checkpoints": [
    "Return processed successfully.",
    "Receipt quantity updated.",
    "Return history visible.",
    "Inventory/accounting effect correct where applicable."
  ]
}
