X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fbill.html;h=420a7489beda6b5a9ae49a5a08e09350e3e646a3;hb=62b18c75989a1b00a25079f8f110992aaad81bba;hp=335779a0f6061a9a8b7445189c0f51737377c2ce;hpb=4a5fcee4c1aa3ca07ac0a7921f9bd0e645ddc788;p=freeside.git diff --git a/httemplate/elements/bill.html b/httemplate/elements/bill.html index 335779a0f..420a7489b 100644 --- a/httemplate/elements/bill.html +++ b/httemplate/elements/bill.html @@ -1,15 +1,14 @@ <%doc> + Clickable link to bill a customer. Example: -
+ %doc> + <%init> + my %opt = @_; my $custnum = $opt{'custnum'}; my $label = $opt{'label'}; -my $formname = $opt{'formname'}; -my $key = $formname.'bill'.$custnum; +# formname no longer needs to be passed from outside, but we still +# need one and it needs to be unique +my $formname = $opt{'formname'} || + 'bill'.sprintf('%04d',random_id(4)).$custnum; my $url = $opt{'url'} || ''; my $message = $opt{'message'} || 'Finished!'; my $bill_opts = $opt{'bill_opts'} || {}; my @opt_keys = keys(%$bill_opts); my @opt_vals = values(%$bill_opts); + %init>