QUALITY PATCH

ACSD-51230: The gift card account is deleted when the partial refund of a simple product is processed…

The gift card account is deleted when the partial refund of a simple product is processed from an order. Quality patch ACSD-51230 for magento/module-gift-card-account applies to Magento Open Source and Adobe Commerce 2.3.7 to 2.4.6-p15.

Categories
Catalog/Product
Components
magento/module-gift-card-account
Origin
adobe-commerce-support
Since QPT
1.1.32

Issue

The gift card account is deleted when the partial refund of a simple product is processed from an order.

Steps to reproduce

1. Create an order with a Gift Card and a simple product (e.g., add: SKU: GI000XX000XXX, SKU: PC046CP042076) – (any payment and shipping method works). 1. Invoice the order. 1. Go to Marketing > Gift Card accounts. An account is created for the gift card. 1. Now go to Order, and create a Credit Memo. 1. Change the quantity for the Gift Card to 0 and update it. This will create a partial refund for the simple product. 1. Click on Refund. 1. Now refresh the Marketing > Gift Card accounts. The newly created account is deleted.

Adobe's page lists 2.3.7 - 2.4.6 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.7.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-51230. On Cloud, add ACSD-51230 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-51230/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-gift-card-account

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.