X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fnotice_to.pm;h=565d169b00790238071873922c84c4052b230cea;hb=bcc11e8b99854452cdccd9406918c015bee784cb;hp=194aeb84ff26bb83bab038f26ab400eca2395163;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/FS/FS/part_event/Action/notice_to.pm b/FS/FS/part_event/Action/notice_to.pm index 194aeb84f..565d169b0 100644 --- a/FS/FS/part_event/Action/notice_to.pm +++ b/FS/FS/part_event/Action/notice_to.pm @@ -7,23 +7,30 @@ use FS::msg_template; sub description { 'Email a notice to a specific address'; } -#sub eventtable_hashref { -# { 'cust_main' => 1, -# 'cust_bill' => 1, -# 'cust_pkg' => 1, -# }; -#} +sub eventtable_hashref { + { + 'cust_main' => 1, + 'cust_bill' => 1, + 'cust_pkg' => 1, + 'cust_pay' => 1, + 'cust_pay_batch' => 1, + 'cust_statement' => 1, + 'svc_acct' => 1, + }; +} sub option_fields { ( - 'to' => { 'label' => 'Destination', - 'type' => 'text', - 'size' => 30, + 'to' => { 'label' => 'Destination', + 'type' => 'text', + 'size' => 30, + 'validation' => 'ut_email', }, 'msgnum' => { 'label' => 'Template', 'type' => 'select-table', 'table' => 'msg_template', 'name_col' => 'msgname', + 'hashref' => { disabled => '' }, 'disable_empty' => 1, }, );