X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fmsg_template%2Femail.html;h=a400bc804d828518beadbae5c52e057a1d6ec511;hp=b0c1aa31aef6eb1c9d893275ebd8eafb2f066cf3;hb=2009d9cee8038aeff5b4313113fc23f546455cf5;hpb=974fceaaca8e1404750a60a4daafb568b1be5159 diff --git a/httemplate/edit/msg_template/email.html b/httemplate/edit/msg_template/email.html index b0c1aa31a..a400bc804 100644 --- a/httemplate/edit/msg_template/email.html +++ b/httemplate/edit/msg_template/email.html @@ -4,7 +4,7 @@ 'body_etc' => $body_etc, 'name_singular' => 'template', 'table' => 'msg_template', - 'viewall_dir' => 'browse', + 'viewall_url' => $fsurl.'browse/msg_template/email.html', 'agent_virt' => 1, 'agent_null' => 1, 'agent_null_right' => [ 'View global templates', 'Edit global templates' ], @@ -297,11 +297,21 @@ my %substitutions = ( 'cust_pay' => [ '$paynum' => 'Payment#', '$paid' => 'Amount', + '$processing_fee' => 'Processing fee', '$payby' => 'Payment method', '$date' => 'Payment date', '$payinfo' => 'Card/account# (masked)', + '$payinfo_end' => 'Card/account last 4 digits', '$error' => 'Decline reason', ], + 'cust_refund' => [ + '$refundnum' => 'Refund#', + '$refund' => 'Refund Amount', + '$payby' => 'Refund method', + '$date' => 'Refund date', + '$payinfo' => 'Card/account# (masked)', + '$payinfo_end' => 'Card/account last 4 digits', + ], 'system_log' => [ '$logmessage' => 'Log entry message', '$loglevel' => 'Log entry level', @@ -314,6 +324,7 @@ tie my %sections, 'Tie::IxHash', ( 'service' => 'Service address', 'cust_main' => 'Customer status and payment info', 'cust_pkg' => 'Package fields', +'cust_refund' => 'Refund fields', 'cust_bill' => 'Invoice fields', 'cust_pay' => 'Payment fields', 'svc_acct' => 'Login service fields', @@ -362,6 +373,7 @@ Substitutions: ' Enclose substitutions and other Perl expressions in braces:
{ $name } = ExampleCo (Smith, John)
{ time2str("%D", time) } = '.time2str("%D", time).' +
{ "processing fee of $processing_fee" if $processing_fee; } = Will display text if there is a processing fee

'; $sidebar .= include('/elements/template_image-dialog.html', 'callback' => 'insertHtml'