How to records deposit or available credit to Sales Order ?

How to records deposit or available credit to Sales Order ?

Hi,

I understand there is "retainer invoice" , but it does not meet the requirement.

We want to link with Sales order , not Invoice module.

Is there any workaround or alternative for recording deposit or available credit directly to Sales order ?

Thank you