_template")) {             $emailList[$list->getTemplateId()] = $list->getTemplateCode();         } elseif ($list->getOrigTemplateCode() == "sales_email_invoice_comment_template") {             $emailList[$list->getTemplateId()] = $list->getTemplateCode();         }elseif ($list->getOrigTemplateCode() == "sales_email_invoice_