In order to make it appear as a retention on the invoice, you should set a specific tax group Retention on your tax, in the Advanced Options tab.