{
  "test_id": "ORCL.O2C.AR.BILL.CREDIT.MEMO",
  "scenario_name": "Create & Apply Credit Memo",
  "application": "Oracle Fusion Cloud",
  "product": "Receivables",
  "module": "Accounts Receivable",
  "process": "Billing",
  "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/financials/accounts-receivable/billing/credit-memo/",
  "objective": {
    "intro": "The objective of this test is to verify that an authorised Accounts Receivable user can create a credit memo and apply it correctly against a valid customer transaction in Oracle Fusion Receivables, reflecting the intended full, partial, or exception outcome.",
    "confirms": [
      "the correct Customer is selected",
      "the credit memo references a valid original Transaction",
      "the Credit Amount is accepted as full or partial relative to the eligible balance",
      "the Credit Reason is captured and retained",
      "line-level and header-level credit application behave as expected",
      "tax impact is recalculated correctly for the credited amount",
      "the Receivable and Revenue account impact reflects the credit",
      "the credit memo reaches the expected Completion status",
      "the outstanding balance on the original transaction is reduced by the credited amount"
    ],
    "scope_note": "This scenario does not claim that every downstream revenue recognition, tax jurisdiction or dunning impact is covered — those depend on the customer's specific Oracle Fusion configuration and are addressed by separate test scenarios."
  },
  "preconditions": [
    "Oracle Fusion Receivables is configured and available.",
    "A valid, completed original Transaction exists to credit against.",
    "The Customer associated with the transaction is active.",
    "A valid Credit Memo transaction type is configured.",
    "The accounting period intended for the credit memo is open.",
    "A valid accounting distribution / account combination is available.",
    "Applicable Credit Reason codes are configured.",
    "The test user has permission to create and apply Receivables credit memos."
  ],
  "test_data": [
    {
      "field": "Customer",
      "example": "Active customer with existing transaction"
    },
    {
      "field": "Original Transaction",
      "example": "Completed AR transaction"
    },
    {
      "field": "Credit Type",
      "example": "Full or Partial"
    },
    {
      "field": "Credit Amount",
      "example": "Scenario-defined, ≤ eligible amount"
    },
    {
      "field": "Credit Reason",
      "example": "Valid reason code"
    },
    {
      "field": "Currency",
      "example": "Matches original transaction"
    },
    {
      "field": "Account",
      "example": "Valid account combination"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign in to Oracle Fusion",
      "action": "Sign in to the Oracle Fusion environment using an authorised Accounts Receivable test user.",
      "test_data": "",
      "expected_result": "Oracle Fusion home page is displayed successfully and the user session is established.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to Receivables",
      "action": "Navigate to the Receivables work area.",
      "test_data": "",
      "expected_result": "The Receivables work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Open Billing",
      "action": "Open the Billing task within Receivables.",
      "test_data": "",
      "expected_result": "The Billing work area is displayed.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Locate the Original Transaction",
      "action": "Search for and open the original completed transaction to be credited.",
      "test_data": "${ORIGINAL_TRANSACTION}",
      "expected_result": "The correct original transaction is located and its status confirms it is eligible to be credited.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening search, entering the transaction number, clicking Search and selecting the result."
    },
    {
      "step_number": 5,
      "step_name": "Initiate Credit Memo Creation",
      "action": "Initiate credit memo creation against the located original transaction.",
      "test_data": "",
      "expected_result": "The Create Credit Memo page opens, pre-referencing the original transaction.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Select Credit Type",
      "action": "Select whether the credit memo represents a full or partial credit.",
      "test_data": "${CREDIT_TYPE}",
      "expected_result": "The selected credit type is accepted and relevant credit fields are made available.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Select Credit Reason",
      "action": "Select the applicable credit reason code.",
      "test_data": "${CREDIT_REASON}",
      "expected_result": "The credit reason is accepted and retained on the credit memo.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Enter Credit Amount / Lines",
      "action": "Enter the credit amount at header level, or select and credit specific transaction lines.",
      "test_data": "${CREDIT_AMOUNT}",
      "expected_result": "The credit amount or line-level credit is accepted and does not exceed the eligible balance.",
      "validation_type": "action"
    },
    {
      "step_number": 9,
      "step_name": "Validate Tax Impact",
      "action": "Review the tax recalculated on the credited amount.",
      "test_data": "",
      "expected_result": "Tax is recalculated proportionally to the credited amount and is consistent with the original transaction's tax configuration.",
      "validation_type": "action"
    },
    {
      "step_number": 10,
      "step_name": "Validate Account Distributions",
      "action": "Review the Receivable and Revenue account distributions generated for the credit memo.",
      "test_data": "${DISTRIBUTION_ACCOUNT}",
      "expected_result": "Account distributions reflect the expected Receivable and Revenue account impact without unexpected validation errors.",
      "validation_type": "action"
    },
    {
      "step_number": 11,
      "step_name": "Save the Credit Memo",
      "action": "Select Save.",
      "test_data": "",
      "expected_result": "Oracle Fusion successfully processes the save request without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 12,
      "step_name": "Complete the Credit Memo",
      "action": "Complete the credit memo.",
      "test_data": "",
      "expected_result": "The credit memo reaches Completed status.",
      "validation_type": "action"
    },
    {
      "step_number": 13,
      "step_name": "Validate Application Against Original Transaction",
      "action": "Confirm the credit memo is applied against the original transaction.",
      "test_data": "",
      "expected_result": "The outstanding balance on the original transaction is reduced by the credited amount.",
      "validation_type": "action"
    },
    {
      "step_number": 14,
      "step_name": "Validate Transaction Number and Status",
      "action": "Confirm the generated credit memo transaction number and verify its final status.",
      "test_data": "",
      "expected_result": "The credit memo is successfully created and can be identified by its generated transaction number, with Completed status and correct application against the original transaction.",
      "validation_type": "business_assertion",
      "note": "This is the main business assertion for the scenario — the test does not stop merely because Save or Complete was clicked successfully."
    }
  ],
  "expected_results": [
    "Credit memo is created successfully and referenced against the correct original transaction.",
    "Correct Customer is associated with the credit memo.",
    "Credit type (full or partial) is applied as intended.",
    "Credit reason is retained on the credit memo.",
    "Credit amount does not exceed the eligible balance of the original transaction.",
    "Tax impact is recalculated consistently with the credited amount.",
    "Receivable and Revenue account distributions reflect the expected accounting impact.",
    "Credit memo reaches Completed status without unexpected errors.",
    "Outstanding balance on the original transaction is reduced by the credited amount.",
    "Credit memo is available for subsequent receipt application and accounting scenarios."
  ],
  "validation_checkpoints": [
    "Customer selection is correct.",
    "Original transaction reference is correct and eligible for credit.",
    "Credit type matches the intended test data.",
    "Credit amount is correct and within the eligible balance.",
    "Credit reason is populated correctly.",
    "Line-level or header-level credit application matches the scenario.",
    "Tax impact is recalculated correctly.",
    "Account distributions are valid.",
    "Save and Complete acknowledgements are received.",
    "Credit memo transaction number is generated.",
    "Original transaction's outstanding balance reflects the credit.",
    "Captured credit memo number/identifier can be used by subsequent automated scenarios."
  ]
}
