You can select a sales order that a deposit applie...
# accounting
k
You can select a sales order that a deposit applies to on the deposit (though I thought this was only possible if you created the deposit from the sales order) - when invoiced NS will automatically perform a deposit application to that invoice for you