projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix more paymask regressions: allow editing records with existing expired cards,...
[freeside.git]
/
httemplate
/
edit
/
cust_main.cgi
diff --git
a/httemplate/edit/cust_main.cgi
b/httemplate/edit/cust_main.cgi
index
e0dd3c8
..
e2ed0f1
100755
(executable)
--- a/
httemplate/edit/cust_main.cgi
+++ b/
httemplate/edit/cust_main.cgi
@@
-17,6
+17,7
@@
%my $error = '';
%my($custnum, $username, $password, $popnum, $cust_main, $saved_pkgpart);
%my(@invoicing_list);
%my $error = '';
%my($custnum, $username, $password, $popnum, $cust_main, $saved_pkgpart);
%my(@invoicing_list);
+%my $payinfo;
%my $same = '';
%if ( $cgi->param('error') ) {
% $error = $cgi->param('error');
%my $same = '';
%if ( $cgi->param('error') ) {
% $error = $cgi->param('error');
@@
-36,6
+37,7
@@
% @invoicing_list = split( /\s*,\s*/, $cgi->param('invoicing_list') );
% $same = $cgi->param('same');
% $cust_main->setfield('paid' => $cgi->param('paid')) if $cgi->param('paid');
% @invoicing_list = split( /\s*,\s*/, $cgi->param('invoicing_list') );
% $same = $cgi->param('same');
% $cust_main->setfield('paid' => $cgi->param('paid')) if $cgi->param('paid');
+% $payinfo = $cust_main->payinfo; # don't mask an entered value on errors
%} elsif ( $cgi->keywords ) { #editing
% my( $query ) = $cgi->keywords;
% $query =~ /^(\d+)$/;
%} elsif ( $cgi->keywords ) { #editing
% my( $query ) = $cgi->keywords;
% $query =~ /^(\d+)$/;
@@
-52,6
+54,7
@@
% $password = '';
% $popnum = 0;
% @invoicing_list = $cust_main->invoicing_list;
% $password = '';
% $popnum = 0;
% @invoicing_list = $cust_main->invoicing_list;
+% $payinfo = $cust_main->paymask;
%} else {
% $custnum='';
% $cust_main = new FS::cust_main ( {} );
%} else {
% $custnum='';
% $cust_main = new FS::cust_main ( {} );
@@
-62,6
+65,9
@@
% $password = '';
% $popnum = 0;
% @invoicing_list = ();
% $password = '';
% $popnum = 0;
% @invoicing_list = ();
+% push @invoicing_list, 'POST'
+% unless $conf->exists('disablepostalinvoicedefault');
+% $payinfo = '';
%}
%$cgi->delete_all();
%
%}
%$cgi->delete_all();
%
@@
-119,7
+125,7
@@
% } else {
% } else {
- <% include('/elements/tr-select-part_referral.html') %>
+ <% include('/elements/tr-select-part_referral.html'
, $refnum
) %>
% }
% }
@@
-164,16
+170,21
@@
<!-- birthdate -->
<!-- birthdate -->
-<BR>
-<% ntable("#cccccc", 2) %>
-<% include ('/elements/tr-input-date-field.html',
- 'birthdate',
- $cust_main->birthdate,
- 'Date of Birth',
- $conf->config('date_format') || "%m/%d/%Y")
-%>
+% if ( $conf->exists('cust_main-enable_birthdate') ) {
-</TABLE>
+ <BR>
+ <% ntable("#cccccc", 2) %>
+ <% include ('/elements/tr-input-date-field.html',
+ 'birthdate',
+ $cust_main->birthdate,
+ 'Date of Birth',
+ $conf->config('date_format') || "%m/%d/%Y",
+ 1)
+ %>
+
+ </TABLE>
+
+% }
<!-- contact info -->
<!-- contact info -->
@@
-252,6
+263,7
@@
Service address
<!-- billing info -->
<% include( 'cust_main/billing.html', $cust_main,
<!-- billing info -->
<% include( 'cust_main/billing.html', $cust_main,
+ 'payinfo' => $payinfo,
'invoicing_list' => \@invoicing_list,
)
%>
'invoicing_list' => \@invoicing_list,
)
%>