Add condition based on Sales Invoice advance amount to pricing rule?

Hi I want to add a condition to a pricing rule based on the advance amount received in the sales invoice? I would prefer to accomplish this through client-side if possible. Any help is appreciated thanks.