projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
638bbb4
)
hide agent.invoice_template edit by default, with a config to turn back on, RT#5218
author
ivan
<ivan>
Tue, 5 May 2009 22:02:28 +0000
(22:02 +0000)
committer
ivan
<ivan>
Tue, 5 May 2009 22:02:28 +0000
(22:02 +0000)
FS/FS/Conf.pm
patch
|
blob
|
history
httemplate/edit/agent.cgi
patch
|
blob
|
history
diff --git
a/FS/FS/Conf.pm
b/FS/FS/Conf.pm
index
d3bd817
..
ebfad2c
100644
(file)
--- a/
FS/FS/Conf.pm
+++ b/
FS/FS/Conf.pm
@@
-2774,6
+2774,13
@@
worry that config_items is freeside-specific and icky.
'type' => 'checkbox',
},
'type' => 'checkbox',
},
+ {
+ 'key' => 'agent-invoice_template',
+ 'section' => 'billing',
+ 'description' => 'Enable display/edit of old-style per-agent invoice template selection',
+ 'type' => 'checkbox',
+ },
+
);
1;
);
1;
diff --git
a/httemplate/edit/agent.cgi
b/httemplate/edit/agent.cgi
index
215542d
..
a0af9fa
100755
(executable)
--- a/
httemplate/edit/agent.cgi
+++ b/
httemplate/edit/agent.cgi
@@
-46,13
+46,21
@@
Agent #<% $agent->agentnum ? $agent->agentnum : "(NEW)" %>
<TD><INPUT TYPE="checkbox" NAME="disabled" VALUE="Y"<% $agent->disabled eq 'Y' ? ' CHECKED' : '' %>></TD>
</TR>
<TD><INPUT TYPE="checkbox" NAME="disabled" VALUE="Y"<% $agent->disabled eq 'Y' ? ' CHECKED' : '' %>></TD>
</TR>
+% if ( $conf->exists('agent-invoice_template') ) {
+
<% include('/elements/tr-select-invoice_template.html',
'label' => 'Invoice template',
'field' => 'invoice_template',
'curr_value' => $agent->invoice_template,
)
%>
<% include('/elements/tr-select-invoice_template.html',
'label' => 'Invoice template',
'field' => 'invoice_template',
'curr_value' => $agent->invoice_template,
)
%>
-
+
+% } else {
+
+ <INPUT TYPE="hidden" NAME="invoice_template" VALUE="<% $agent->invoice_template %>">
+
+% }
+
% if ( $conf->config('ticket_system') ) {
% my $default_queueid = $conf->config('ticket_system-default_queueid');
% my $default_queue = FS::TicketSystem->queue($default_queueid);
% if ( $conf->config('ticket_system') ) {
% my $default_queueid = $conf->config('ticket_system-default_queueid');
% my $default_queue = FS::TicketSystem->queue($default_queueid);