(Partly) fixed email_new_invoice, send Emails if $config->{externalbill} eq "internal" plus some minor fixes
Quick & really ugly hack to replace strings with their values in email_new_invoice