X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Fpart_svc.cgi;h=97e2d9694c592271d6b77642f86c650a7d01eda3;hb=dd65ba99bb9281571f19744154a3b03bcd3f01ab;hp=6fe015ab5174c58ad63935201c80d5c5c593ddb5;hpb=87310e447eba1cf399ea6f5ac980e6dfdaa7a6e3;p=freeside.git
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi
index 6fe015ab5..97e2d9694 100755
--- a/httemplate/edit/part_svc.cgi
+++ b/httemplate/edit/part_svc.cgi
@@ -9,27 +9,12 @@
Service Part #<% $part_svc->svcpart ? $part_svc->svcpart : "(NEW)" %>
Service
-Disable new orders {disabled} eq 'Y' ? ' CHECKED' : '' %>>
+{disabled} eq 'Y' ? ' CHECKED' : '' %>> Disable new orders
+{'preserve'} eq 'Y' ? ' CHECKED' : '' %>> Preserve this service on package cancellation
+
-Service definitions are the templates for items you offer to your customers.
-
svc_acct - Accounts - anything with a username (Mailboxes, PPP accounts, shell accounts, RADIUS entries for broadband, etc.)
-
svc_domain - Domains
-
svc_forward - Mail forwarding
-
svc_mailinglist - Mailing list
-
svc_www - Virtual domain website
-
svc_broadband - Broadband/High-speed Internet service (always-on)
-
svc_phone - Customer phone numbers
-
svc_pbx - Customer PBXs
-
svc_external - Externally-tracked service
-
-
-For the selected table, you can give fields default or fixed (unchangable)
-values, or select an inventory class to manually or automatically fill in
-that field.
-
+
% #YUCK. false laziness w/part_svc.pm. go away virtual fields, please
% my %vfields;
@@ -72,6 +57,9 @@ that field.
% 'A' => { 'desc' => 'Automatically fill in from inventory',
% 'condition' => $inv_sub,
% },
+% 'H' => { 'desc' => 'Select from hardware class',
+% 'condition' => sub { $_[0]->{type} ne 'select-hardware' },
+% },
% 'X' => { 'desc' => 'Excluded',
% 'condition' =>
% sub { ! $vfields{$_[1]}->{$_[2]} },
@@ -92,20 +80,24 @@ that field.
% #'form_action' => 'process/part_svc.cgi',
% 'form_action' => 'part_svc.cgi', #self
% 'form_text' => [ qw( svc svcpart ) ],
-% 'form_checkbox' => [ 'disabled' ],
+% 'form_checkbox' => [ 'disabled', 'preserve' ],
% 'layer_callback' => sub {
% my $layer = shift;
%
% my $html = qq!!;
%
+% $html .= $svcdb_info;
+%
% my $columns = 3;
% my $count = 0;
+% my $communigate = 0;
% my @part_export =
% map { qsearch( 'part_export', {exporttype => $_ } ) }
% keys %{FS::part_export::export_info($layer)};
-% $html .= '
'. table().
+% $html .= '
'. include('/elements/table.html') .
% "
Exports
";
% foreach my $part_export ( @part_export ) {
+% $communigate++ if $part_export->exporttype =~ /^communigate/;
% $html .= '
svc_acct: Accounts - anything with a username (mailbox, shell, RADIUS, etc.)
+
svc_hardware: Equipment supplied to customers
+
svc_external: Externally-tracked service
+
+
+
+
+
svc_dsl: DSL
+
svc_broadband: Wireless broadband
+
svc_dish: DISH Network
+
+
+
+
+
svc_phone: Customer phone number
+
svc_pbx: Customer PBX
+
+
+
+
+
+
+
+
Hosting
+
Colocation
+
+
+
+
svc_domain: Domain
+
svc_cert: Certificate
+
svc_forward: Mail forwarding
+
svc_mailinglist: Mailing list
+
svc_www: Virtual domain website
+
+
+
+
+
svc_port: Customer router/switch port
+
+
+
+
+
+';
+
+my $mod_info = '
+For the selected table, you can give fields default or fixed (unchangable)
+values, or select an inventory class to manually or automatically fill in
+that field.
+';
%init>