Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Paid Status #3385

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from
Open

Fix Paid Status #3385

wants to merge 2 commits into from

Conversation

adrum
Copy link

@adrum adrum commented Feb 16, 2024

Description

This fixes the paid status issue by sometimes being overpaid or partially paid by converting the floats to ints, then doing the comparisons or arithmetic, altogether avoiding any float issues.

We just imported several hundred thousand orders from a legacy system into a new Commerce build, and this issue in #1836 was one of the issues we encountered while auditing the data migration. This solution resolves the issues in our sample size.

We were running 4.4.1.1.

Related issues

#1836

First Attempt: #1837

@adrum adrum requested a review from a team as a code owner February 16, 2024 03:23
@lukeholder lukeholder changed the title Fix Paid Status, Round 2 Fix Paid Status Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant