{
  "test_id": "ORCL.O2C.OM.CHG.QUANTITY",
  "scenario_name": "Change Order Quantity",
  "application": "Oracle Fusion Cloud",
  "product": "SCM / Order Management",
  "module": "Order Management",
  "process": "Order Changes",
  "business_flow": "Order-to-Cash",
  "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/order-management/order-changes/change-order-quantity/",
  "objective": {
    "intro": "The objective of this test is to validate changing the ordered quantity on an existing sales order line, covering both increases and decreases, and confirming that behavior differs correctly depending on whether fulfillment processing — reservation or shipment — has already started for that line.",
    "confirms": [
      "an authorized user can open an existing order line and enter a new quantity",
      "quantity increases and decreases are each accepted where they are valid for the line's current status",
      "changes before fulfillment has started are processed differently from changes attempted after a reservation or shipment is already in progress",
      "line and order-level pricing recalculates correctly where the quantity change affects price",
      "downstream reservation or scheduling records are adjusted to reflect the revised quantity where applicable",
      "the change is recorded in the order's change history or audit trail rather than silently overwriting the prior value"
    ],
    "scope_note": "This scenario covers changing the ordered quantity on an existing, already-submitted sales order line within Oracle Fusion Order Management TEST/UAT environments. It does not cover initial order creation, which is covered by the separate order-entry scenarios, or full line/order cancellation, which is covered by the separate Cancel Sales Order scenario in this same Order Changes cluster."
  },
  "preconditions": [
    "An existing, submitted sales order line is available for the test.",
    "For scenarios covering changes after fulfillment has started, the line has an active reservation or a shipment already in progress.",
    "The test user performing the change has the appropriate order-change privileges.",
    "The target new quantity values are valid and configured for the test tenant."
  ],
  "test_data": [
    {
      "field": "Order Number",
      "example": "${ORDER_NUMBER}"
    },
    {
      "field": "Order Line Number",
      "example": "${LINE_NUMBER}"
    },
    {
      "field": "Item",
      "example": "${ITEM}"
    },
    {
      "field": "Original Quantity",
      "example": "${ORIGINAL_QUANTITY}"
    },
    {
      "field": "New Quantity",
      "example": "${NEW_QUANTITY}"
    },
    {
      "field": "Unit of Measure",
      "example": "${UOM}"
    },
    {
      "field": "Line Status",
      "example": "${LINE_STATUS}"
    },
    {
      "field": "Business Unit",
      "example": "${BUSINESS_UNIT}"
    },
    {
      "field": "Customer",
      "example": "${CUSTOMER}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In to Oracle Fusion",
      "action": "Sign in to Oracle Fusion using an authorized Order Management test user.",
      "test_data": "",
      "expected_result": "Oracle Fusion signs the user in successfully and the home page loads.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to Order Management",
      "action": "Navigate to the Order Management work area.",
      "test_data": "",
      "expected_result": "The Order Management work area loads and order search is available.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Locate the Sales Order",
      "action": "Search for and open the sales order that contains the line to be changed.",
      "test_data": "${ORDER_NUMBER}",
      "expected_result": "The correct sales order is located and its current line details are displayed.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening order search, entering the order number, and selecting the result."
    },
    {
      "step_number": 4,
      "step_name": "Select the Order Line to Change",
      "action": "Select the specific order line whose quantity will be changed.",
      "test_data": "${ITEM}",
      "expected_result": "The selected line's current quantity, unit of measure and status are displayed.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Enter the New Quantity",
      "action": "Update the ordered quantity on the selected line to the new value for this variation.",
      "test_data": "${NEW_QUANTITY} / ${UOM}",
      "expected_result": "The new quantity is accepted without unexpected validation errors.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Review Recalculated Pricing and Reservation Impact",
      "action": "Review the recalculated line pricing and any impact on the existing reservation or scheduling before submitting the change.",
      "test_data": "",
      "expected_result": "The pricing and reservation impact shown are consistent with the intended quantity change for this variation.",
      "validation_type": "action",
      "note": "Reviewing the impact before submitting lets the tester catch an unintended pricing or reservation consequence before it is committed."
    },
    {
      "step_number": 7,
      "step_name": "Submit the Quantity Change",
      "action": "Submit and save the quantity change in the test environment.",
      "test_data": "",
      "expected_result": "Oracle Fusion saves the change without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Verify Line and Order Reflect the Updated Quantity",
      "action": "Reopen or refresh the order and confirm the line and order-level totals reflect the change.",
      "test_data": "",
      "expected_result": "The order line, order totals, and downstream reservation or scheduling records accurately reflect the updated quantity.",
      "validation_type": "business_assertion",
      "note": "This is a primary business assertion for the scenario — a correctly updated line, order total and reservation record is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "The new quantity is accepted on the line without unexpected errors, for both increases and decreases where the change is valid.",
    "Downstream reservation and scheduling records are adjusted to reflect the revised quantity where applicable.",
    "Line and order-level pricing recalculates correctly when the quantity change affects price.",
    "Quantity decreases below an already-shipped quantity are correctly rejected rather than silently applied.",
    "A record of the quantity change is retained in the order's change history or audit trail.",
    "Unauthorized change attempts are correctly prevented."
  ],
  "validation_checkpoints": [
    "Quantity updated correctly on the line.",
    "Downstream reservation/scheduling correctly adjusted.",
    "Pricing recalculated where applicable.",
    "Change history/audit trail recorded."
  ]
}
