X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_bill_event.cgi;h=11bc14e5c411932c82a8ce869d11f180ced616f0;hb=6b28d0bd4b422d0fff32b559d0785665b1c46b27;hp=2486c666916c55a57a65cc0538dde7c3cef10403;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/browse/part_bill_event.cgi b/httemplate/browse/part_bill_event.cgi index 2486c6669..11bc14e5c 100755 --- a/httemplate/browse/part_bill_event.cgi +++ b/httemplate/browse/part_bill_event.cgi @@ -1,19 +1,6 @@ -% -%my %search; -%if ( $cgi->param('showdisabled') ) { -% %search = (); -%} else { -% %search = ( 'disabled' => '' ); -%} -% -%my @part_bill_event = qsearch('part_bill_event', \%search ); -%my $total = scalar(@part_bill_event); -% - +<% include('/elements/header.html', 'Invoice Event Listing') %> -<% include("/elements/header.html",'Invoice Event Listing', menubar( 'Main Menu' => $p) ) %> - - Invoice events are actions taken on open invoices.

+ Invoice events are the deprecated, old-style actions taken on open invoices. Any events still listed here should be migrated to new-style events.

Add a new invoice event

@@ -55,6 +42,7 @@ % my $delay = duration_exact($part_bill_event->seconds); % ( my $plandata = $part_bill_event->plandata ) =~ s/\n/
/go; % my $freq = $part_bill_event->freq || '1d'; +% my $reason = $part_bill_event->reasontext ; % % if ( $oldfreq ne $freq ) { @@ -67,6 +55,7 @@ param('showdisabled') ? 2 : 3 %>>Event After Action + Reason Options Code @@ -100,6 +89,8 @@ <% $part_bill_event->plan %> + <% $reason %> + <% $plandata %> <% $part_bill_event->eventcode %> @@ -111,6 +102,21 @@ % } % } +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my %search; +if ( $cgi->param('showdisabled') ) { +%search = (); +} else { +%search = ( 'disabled' => '' ); +} + +my @part_bill_event = qsearch('part_bill_event', \%search ); +my $total = scalar(@part_bill_event); - - +