ACSD-54680: B2B Quote for a product with Multiple Assigned Sources can’t be processed.

The ACSD-54680 patch fixes the issue where the B2B Quote for a product with Multiple Assigned Sources can’t be processed. This patch is available when the Quality Patches Tool (QPT) 1.1.40 is installed. The patch ID is ACSD-54680. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.3

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.0 - 2.4.5-p5
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

B2B Quote for a product with Multiple Assigned Sources can’t be processed.

Steps to reproduce:

  1. Go to Admin > Store > Sources and create two new sources: Source 1 and Source 2.
  2. Go to Admin > Store > Stocks and create a new Stock: Stock A, assign it to the main website, and assign Source 1 and Source 2 to it.
  3. Create a Simple product, assign Source 1 and Source 2, and set Qty = 2 for each source. (the salable qty of the product should be 4 as a result).
  4. Create a Company Account.
  5. Go to the Storefront and log in to the company account.
  6. Add the simple product to the shopping cart with qty = 4.
  7. Open the Shopping cart and click Request a quote button.
  8. Add a comment and quote name and click Send a Request button.
  9. Go to Admin > Sales > Quotes.
  10. Open recently submitted quote.

Expected results:

The items quoted contains the ordered product.

Actual results:

The items quoted page section is empty, and it is not possible to process the quote.
var/log/system.log contains

report.CRITICAL: TypeError: number_format() expects parameter 1 to be float, null given in .../vendor/magento/module-negotiable-quote/Model/QuoteUpdatesInfo.php:232

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:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a