Allow consolidating sales tax lines

Created on 4 September 2024, 4 months ago
Updated 8 September 2024, 4 months ago

Problem/Motivation

In #3310714: Properly process complex tax responses β†’ , when possible, each tax line returned by AvaTax gets it's own line on the order. However, some merchants prefer the simple "Sales tax" line.

Proposed resolution

Let's make this a configuration option. It can be added to the Advanced section of the AvaTax configuration form.

Remaining tasks

  • Add a checkbox to the configuration form.
  • Add a boolean to the commerce_avatax.schema.yml
  • Add a condition to ">Drupal\commerce_avatax\Plugin\Commerce\TaxType::apply()

User interface changes

An optionally simplified tax line on the order.

Data model changes

commerce_avatax.schema.yml

commerce_avatax.settings:
  mapping: 
    combine_lines: 
      type: boolean
      label: 'Combine tax lines'
✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scottsawyer Atlanta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @scottsawyer
  • πŸ‡ΊπŸ‡ΈUnited States djween

    This is definitely needed as state and county tax are split on separate line items (which is not the ecommerce norm) for US tax and it confuses the end user customer.

Production build 0.71.5 2024