X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-pkg_svc.html;fp=httemplate%2Felements%2Ftr-pkg_svc.html;h=7ac67b7ecea0a7ec640ebca403ded2f28474617a;hp=1e9c0a38b431671575bbdae951b520c917aab58a;hb=c13a7adf63cc830d092bbf4a8e9bda2aa3beee56;hpb=f4fc0bd2f813272ed1a878dd9f130fe155a6e3ff
diff --git a/httemplate/elements/tr-pkg_svc.html b/httemplate/elements/tr-pkg_svc.html
index 1e9c0a38b..7ac67b7ec 100644
--- a/httemplate/elements/tr-pkg_svc.html
+++ b/httemplate/elements/tr-pkg_svc.html
@@ -1,15 +1,14 @@
-<% itable('', 4, 1) %> |
-<% $thead %>
-
+<% itable('', 4, 1) %> |
+<% pkg_svc_thead() %>
+
%foreach my $part_svc ( @part_svc ) {
% my $svcpart = $part_svc->svcpart;
% my $pkg_svc = $pkg_svc{$svcpart}
@@ -97,7 +96,7 @@ provision_hold_input.push(document.getElementById('input_provision_hold<% $svcpa
% if ( $count == int( $_ * scalar(@part_svc) / $columns ) ) {
%
- | <% $thead %>
+ | <% pkg_svc_thead() %>
% }
% }
% $count++;
@@ -161,15 +160,21 @@ provision_hold_init();
my %opt = @_;
my $cgi = $opt{'cgi'};
-my $thead = "\n\n". ntable('#cccccc', 2).
- ' |
'.
- 'Quan. | '.
- 'Primary | '.
- 'Service | '.
- 'Hide from Invoices | '.
- 'Bulk Charge | '.
- 'Remove Hold After Provisioning | '.
- '
';
+my $thead_count = 0;
+sub pkg_svc_thead {
+ $thead_count += 1;
+ return "\n\n". ntable('#cccccc', 2).
+ ''.
+ 'Quan. | '.
+ 'Primary | '.
+ 'Service | '.
+ 'Hide from Invoices | '.
+ 'Bulk Charge | '.
+ 'Remove Hold After Provisioning | '.
+ '
'.
+ qq!!;
+;
+}
my $part_pkg = $opt{'object'};
my $pkgpart = $part_pkg->pkgpart;