The Sage 500 Database Upgrade Utility checks for unposted batches before the upgrade actually begins. All batches in all companies must be posted or deleted to get past the message informing you that you have unposted batches.
The T-SQL query I modified…