I'm not sure what you are asking
Typically you invoice for a deposit using a service type item, and that posts to a liability account (refundable deposit)
then you invoice for the total, and as the last line you use the deposit item, set the qty to negative one, and enter the deposit amount in the rate block
the customer pays the balance