Problem/Motivation

Attempting to migrate Drupal 7 Ubercart to D9 Commerce using Drush produces an error with the tax rate.

In Adjustment.php line 86:
The provided percentage "0.0775" must be a string, not a float.

Steps to reproduce

Migrate Drupal 7 site with Ubercart and taxes setup

Proposed resolution

Cast the tax rate to a string.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

retiredpro created an issue. See original summary.

quietone’s picture

Title: Ubercart » Cast tax rate to string in OrderItemAdjustement

Just updating the title.

DamienMcKenna’s picture

Status: Active » Needs review
quietone’s picture

Status: Needs review » Postponed (maintainer needs more info)

@retiredpro, thanks for the report and the patch.

I am not able to generate a float for the tax_rate, it is always stored as a string in a data blob. Can you provide some more details? What other commerce modules are you using? Was this perhaps a custom migration?