Auto assign practitioner

is there a way to set the practitioner name to the user if he issued the invoice by himself ? to avoid ( no practitioner )