When a Deposit creates a commission invoice, the invoice and deposit are related to each other. Currently, you can delete that deposit and keep the invoice and the invoice will lose all trace of the deposit to the point where you cannot tell it was created from a deposit commission. I believe there should be an audit trail for the deposit so that not all signs are gone when it is deleted if it has created an invoice through a commission table.