This error relates to a known bug in one of the scripts in the updater package. It only impacts those who are upgrading from 4.11.x to anything before 5.1.0 (final) and have at least one check with at least one item in a different currency than the check header in the database.
Note: If you do not use multi-currency, you will not run into this bug.
If you find that this bug does impact you, here are the next steps to take:
Go to the xTuple Customer Portal and log in.
Click on the Downloads menu item at the top of the page.
Navigate to the xTuple Package (by clicking on the icon).
Make sure to select the version in the drop down - either 4.12.2 or 5.0.0 - that you are in the process of upgrading to. (This bug only impacts the upgrade process from 4.11.x to either 4.12.x and 5.0.x versions.)
Click on the icon by the file “edition-upgrade-version.number-patched.gz” to download. (Example: distribution-upgrade-5.0.0-patched.gz)
Run the upgrade file in the same way you’ve run the previous version.
See below for a complete list of available patched files: