[freeside-commits] freeside/httemplate/edit/cust_main top_misc.html, 1.2, 1.2.2.1
Ivan,,,
ivan at wavetail.420.am
Thu Feb 4 02:00:49 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail.420.am:/tmp/cvs-serv17524/httemplate/edit/cust_main
Modified Files:
Tag: FREESIDE_1_9_BRANCH
top_misc.html
Log Message:
add ability to edit referring customer, RT#7174
Index: top_misc.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/top_misc.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- top_misc.html 7 Aug 2009 23:08:03 -0000 1.2
+++ top_misc.html 4 Feb 2010 10:00:44 -0000 1.2.2.1
@@ -43,6 +43,7 @@
%if ( $cust_main->referral_custnum
% and $referring_cust_main =
% qsearchs('cust_main', { custnum => $cust_main->referral_custnum } )
+% and ! $curuser->access_right('Edit referring customer')
%) {
<TR>
@@ -52,8 +53,8 @@
</TD>
</TR>
<INPUT TYPE="hidden" NAME="referral_custnum" VALUE="<% $cust_main->referral_custnum %>">
-% } elsif ( ! $conf->exists('disable_customer_referrals') ) {
+% } elsif ( ! $conf->exists('disable_customer_referrals') ) {
<TR>
<TD ALIGN="right">Referring customer</TD>
@@ -61,13 +62,13 @@
<!-- <INPUT TYPE="text" NAME="referral_custnum" VALUE=""> -->
<% include('/elements/search-cust_main.html',
'field_name' => 'referral_custnum',
+ 'curr_value' => $cust_main->referral_custnum,
)
%>
</TD>
</TR>
-% } else {
-
+% } else {
<INPUT TYPE="hidden" NAME="referral_custnum" VALUE="">
% }
@@ -92,6 +93,8 @@
my $conf = new FS::Conf;
+my $curuser = $FS::CurrentUser::CurrentUser;
+
my $r = qq!<font color="#ff0000">*</font> !;
</%init>
More information about the freeside-commits
mailing list