X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=6fe759bd91869f8d488e94d3296348450edc8d33;hp=d157be3978bd9cf2d274cbbd2f70640fe082098c;hb=b1d4c3b5b5a05d38a4baf9c49bd7fdfb6990531d;hpb=ac96a7afbae06cc3b594b3e461bec8a34d65cfe5 diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index d157be397..6fe759bd9 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -83,11 +83,13 @@ print '', $cust_main->country, '', ; - my $daytime_label = gettext('daytime') || 'Day Phone'; - my $night_label = gettext('night') || 'Night Phone'; - print '$daytime_label', + my $daytime_label = FS::Msgcat::_gettext('daytime') || 'Day Phone'; + my $night_label = FS::Msgcat::_gettext('night') || 'Night Phone'; + print ''. $daytime_label. + '', $cust_main->daytime || ' ', '', - '$night_label', + ''. $night_label. + '', $cust_main->night || ' ', '', 'Fax', $cust_main->fax || ' ', '', @@ -124,10 +126,10 @@ print '', $cust_main->get("${pre}country"), '', ; - print '$daytime_label', + print ''. $daytime_label. '', '', $cust_main->get("${pre}daytime") || ' ', '', - '$night_label'. + ''. $night_label. ''. '', $cust_main->get("${pre}night") || ' ', '', 'Fax', @@ -229,6 +231,13 @@ if ( $conf->config('payby-default') ne 'HIDE' ) { 'Bank name', $cust_main->payname, '' ; + } elsif ( $cust_main->payby eq 'LECB' ) { + $cust_main->payinfo =~ /^(\d{3})(\d{3})(\d{4})$/; + my $payinfo = "$1-$2-$3"; + print 'Phone bill billing', + 'Phone number', + $payinfo, '', + ; } elsif ( $cust_main->payby eq 'BILL' ) { print 'Billing'; print 'P.O. ', @@ -271,14 +280,14 @@ print '
'. qq!!. '