Any time a payment is added / deleted / refunded.
When a job is closed.
This means that if you take a deposit, it will go ahead and sync that Invoice over, and apply the deposit. As the job is updated, the Invoice will be updated in QuickBooks based on the above situations.