ACSD-62118: sales_order_tax_item
table not fully updated for B2B orders placed using the Purchase Order method
- Topics:
- Purchase Orders
- B2B
CREATED FOR:
- Experienced
- Admin
- Developer
The ACSD-62118 patch fixes the issue where the sales_order_tax_item
table doesn’t fully update when a B2B order is placed using the Purchase Order method. This patch is available when the Quality Patches Tool (QPT) 1.1.58 is installed. The patch ID is ACSD-62118. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.7-p3
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
When B2B orders are placed using the Purchase Order method, the sales_order_tax_item
table is not fully updated. This issue affects tax calculations and order processing. Specifically, the applied_taxes
array is empty when querying the order via the API, and both tax_item_amount
and tax_item_percent
are NULL.
Steps to reproduce:
- Add tax rules for both Product and Shipping.
- Enable the Purchase Order method in the Company settings.
- Log in as a Company Admin User.
- Place a Purchase Order using an offline payment method.
- After the Purchase Order is auto-approved and converted to an order, check the tax data in the
sales_order_tax_item
table and through the REST API.
Expected results:
- The
sales_order_tax_item
table should containtax_item
data. - The
applied_taxes
array should display the correct tax information in the API response for purchase orders, similar to other payment methods (e.g., Check/Money Order).
Actual results:
- The
sales_order_tax_item
table does not contain anytax_item
data. - The
applied_taxes
anditem_applied_taxes
arrays are empty in the API response for the Purchase Order. - No tax data is displayed when using the Purchase Order payment method.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.