Problem/Motivation

After running the upgrade_commerce1_payment migration, I get amounts that are multiplied by 100. The reason for this is the different storage of prices in Commerce 1 (integer multiplied by 100) compared to Commerce 2 (float not multiplied). The current migration just simply uses the get plugin to set the amount:

  amount/number:
    -
      plugin: get
      source: amount

Looking at the code this is probably true for refunds as well.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Lukas von Blarer created an issue. See original summary.

tkiehne’s picture

Seconded - my test migration also ported the wrong values (by x100)

From: Latest Drupal 7 & Drupal Commerce 1.x
To: Drupal 8.9.13 with Commerce 2.24 and Migrate Commerce

tkiehne’s picture

damienmckenna’s picture

Status: Active » Closed (duplicate)
Parent issue: » #3233594: Payments from Commerce 1 have wrong decimal place

We'll handle it in #3233594: Payments from Commerce 1 have wrong decimal place, which has a working patch.