if (($list->getOrigTemplateCode() == "sales_email_invoice_template")) {             $emailList[$list->getTemplateId()] = $list->getTemplateCode();         } elseif (($list->getOrigTemplateCode() == "sales_email_invoice_comment_