%# Copyright (c) 2004 Ivan Kohler %# Copyright (c) 2008 Freeside Internet Services, Inc. %# %# This work is made available to you under the terms of Version 2 of %# the GNU General Public License. A copy of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %# rowspan %#rowspan...

<&|/l&>Current Customers

% my %data = $m->comp('Customers', Ticket => $Ticket); % if ( @{ $data{custnums} } ) { % foreach my $custnum ( @{ $data{custnums} } ) { % foreach my $resolver % ( $data{cust_main}{$custnum}, @{ $data{cust_svc}{$custnum} } ) % { % } % }
<&|/l&>(Check box to disassociate)
% if ( $resolver->URI !~ /cust_main/ or $data{cust_linked}{$custnum} ) { % # don't show a checkbox for implicit cust_main links % } % if ( $resolver->URI =~ /cust_main/ ) { <% $resolver->AsStringLong |n %> % } elsif ( $resolver->URI =~ /cust_svc/ ) { <% $resolver->ShortLink |n %> % }
% }

<&|/l&>New Customer Links

<&|/l&>Find customer

cust #, name, company or phone
<&|/l&>Find service

user, email, ip, mac, phone
<& AddCustomers, Ticket => $Ticket, CustomerString => $CustomerString, ServiceString => $ServiceString &>
<%ARGS> $CustomerString => undef $ServiceString => undef $Ticket => undef