ACP2E-5034: B2B item discounts don’t reduce dynamic-price bundle subtotals in negotiable quotes

The ACP2E-5034 patch fixes the issue where negotiable quote management incorrectly resets totals to zero when recalculating a quote after selecting a shipping method, discards updates to bundle product option quantities made through the Configure action in the Admin, and doesn’t correctly reflect item-level discounts applied to dynamic price bundle products in quote subtotals. This patch is available when the Quality Patches Tool (QPT) 1.1.84 is installed. The patch ID is ACP2E-5034. Please note that this issue is scheduled to be fixed in Adobe Commerce B2B 1.5.4.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) B2B 1.5.2-p5

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) B2B >=1.5.0 <1.5.3
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Negotiable quote management incorrectly resets totals to zero when recalculating a quote after selecting a shipping method, discards updates to bundle product option quantities made through the Configure action in the Admin, and doesn’t correctly reflect item-level discounts applied to dynamic price bundle products in quote subtotals.

Prerequisites:

B2B is installed.

Steps to reproduce:

  1. Set Admin > Stores > Settings > Configuration > General > B2B Features. Set Enable Company = Yes. Set Enable B2B Quote = Yes.
  2. In Admin, go to Customers > Companies, click Add New Company, create an active company account, and click Save.
  3. Have the company administrator set a password from the welcome email.
  4. In Admin, go to Catalog > Products, and create at least two simple products.
  5. In Admin, go to Catalog > Products, then choose Bundle Product from the Add Product menu. Set Dynamic Price = Yes, add at least two bundle options with a different simple product in each option, and select User Defined for each bundle item’s quantity.
  6. On the storefront, sign in as the company administrator, and add the dynamic-price bundle product to the cart at least twice with different option configurations.
  7. In the cart, click Request a Quote, complete the Add your comment and Quote Name fields, and click Request a Quote to submit the quote.
  8. In Admin, go to Sales > Quotes and, in the Actions column for the quote, click View.
  9. In Items Quoted, click Configure for one bundle item, change the bundle option quantities and item quantity, and click OK.
  10. Click Update Prices, then click Proceed.
  11. For the same item, open the Action menu and select Discount item, choose a fixed-amount discount, enter the amount, and click Confirm.
  12. Click Add to Quote, then click Update Prices and click Proceed.

Expected results:

  1. The configured dynamic-price bundle quote item retains the updated option and item quantities.
  2. The fixed item-level discount is applied to the bundle item and reduces the Subtotal and Subtotal (Excluding Tax) values.

Actual results:

The fixed discount appears in the Discount column, but it doesn’t reduce the dynamic-price bundle item’s Subtotal or Subtotal (Excluding Tax) values after the quantities are updated.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools