taxjar / taxjar-magento2-extension

Magento 2 Sales Tax Extension by TaxJar
http://www.taxjar.com/guides/integrations/magento2/
Open Software License 3.0
22 stars 30 forks source link

fix: Persist product category tax class to order item #296

Closed sethobey closed 2 years ago

sethobey commented 2 years ago

Context

Customer issue with order items being persisted with incorrect PTC when PTC is configured from product category instead of individual product.

Description

Plugin for ItemRepository::class will now attempt to retrieve a TaxJar PTC from the order item's product, then order item product's category before defaulting to fully taxable.

Performance

N/A

Testing

  1. Configure product category with TaxJar product tax code
  2. Configure a product with the product category from step one, and TaxJar category "fully taxable"
  3. Place, invoice and ship order with the previously configured product
  4. View the corresponding order item on the sales_order_item table and confirm that the correct product tax code (meaning not 11111 for fully taxable) is persisted to the order item.

Versions