Sage 100 Sales Order Invoice Batch posted in a future period

A sales order invoice batch with deposits was posted to a future period.  The customer inquiry shows the correct balance, however, the aged trial balance shows an outstanding balance.  How do I correct the trial balance?