The Invoice and Quotes are related to both the Contact & Product. So, to sync Invoice or Quotes, the Contacts & Products need to be bidirectionally synced to keep both application updated. This will help you get the line item when you sync Invoice or Quotes.
Now, we do not have option to setup rules, please do write to us at support[at]smackcoders[dot]com. We will help you!