},
{
+ 'key' => 'cust_main-edit_calling_list_exempt',
+ 'section' => 'UI',
+ 'description' => 'Display the "calling_list_exempt" checkbox on customer edit.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'support-key',
'section' => '',
'description' => 'A support key enables access to commercial services delivered over the network, such as the payroll module, access to the internal ticket system, priority support and optional backups.',
'billday', 'int', 'NULL', '', '', '',
'edit_subject', 'char', 'NULL', 1, '', '',
'locale', 'varchar', 'NULL', 16, '', '',
+ 'calling_list_exempt', 'char', 'NULL', 1, '', '',
],
'primary_key' => 'custnum',
'unique' => [ [ 'agentnum', 'agent_custid' ] ],
Allow self-service editing of ticket subjects, empty or 'Y'
+=item calling_list_exempt
+
+Do not call, empty or 'Y'
+
=back
=head1 METHODS
|| $self->ut_floatn('credit_limit')
|| $self->ut_numbern('billday')
|| $self->ut_enum('edit_subject', [ '', 'Y' ] )
+ || $self->ut_enum('calling_list_exempt', [ '', 'Y' ] )
|| $self->ut_enum('locale', [ '', FS::Locales->locales ])
;
$cust_main->edit_subject ? 'CHECKED' : '' %>></TD>
<TD ALIGN="left"><% mt('Can edit ticket subjects') |h %></TD>
</TR>
+% } else {
+ <INPUT TYPE="hidden" NAME="edit_subject" VALUE="<% $cust_main->edit_subject %>">
+% }
+
+% # permission to edit
+% if ( $conf->exists('cust_main-edit_calling_list_exempt') ) {
+ <TR>
+ <TD ALIGN="right">
+ <INPUT TYPE="checkbox" NAME="calling_list_exempt" VALUE="Y" <%
+ $cust_main->calling_list_exempt ? 'CHECKED' : '' %>></TD>
+ <TD ALIGN="left"><% mt('Calling list exempt') |h %></TD>
+ </TR>
+% } else {
+ <INPUT TYPE="hidden" NAME="calling_list_exempt" VALUE="<% $cust_main->calling_list_exempt %>">
% }
</TABLE>
%
% }
%
+% if ( $opt{'calling_list_exempt'} ) {
+ - calling list exempt
+% }
+%
% } else {
<TD COLSPAN=3 BGCOLOR="#ffffff">
<& /elements/phonenumber.html,
$cust_main->get("${pre}daytime"),
- 'callable'=>1
+ 'callable'=>1,
+ 'calling_list_exempt'=>$cust_main->calling_list_exempt,
&>
</TD>
</TR>
<TD COLSPAN=3 BGCOLOR="#ffffff">
<& /elements/phonenumber.html,
$cust_main->get("${pre}night"),
- 'callable'=>1
+ 'callable'=>1,
+ 'calling_list_exempt'=>$cust_main->calling_list_exempt,
&>
</TD>
</TR>
<TD COLSPAN=3 BGCOLOR="#ffffff">
<& /elements/phonenumber.html,
$cust_main->get("${pre}mobile"),
- 'callable'=>1
+ 'callable'=>1,
+ 'calling_list_exempt'=>$cust_main->calling_list_exempt,
&>
</TD>
</TR>