Skip to content

Error to create creditmemo when bundle #40404

@aamant

Description

@aamant

Preconditions and environment

  • Magento version 2.4.8-p3

This issue occurs when the child product in the bundle contains multiple quantities.
The method \Magento\Sales\Controller\Adminhtml\Order\Creditmemo\Save::adjustCreditMemoItemQuantities applies the number of child products to the parent. This is an error.

Steps to reproduce

  • Create a bundle product
  • Associate a single product with a default quantity greater than 1
  • Create an order and invoice it
  • When creating the creditmemo, an exception is thrown because the quantity is greater than the quantity ordered

The quantity of the bundle cannot be equal to the sum of these children.

Expected result

An creditmemo is created

Actual result

An exception is throw.

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8-p3Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions