X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fmisc.html;h=f0ecf8f70f93caa20f9445d4a9797d5edde97abc;hb=d647e72f22abc6715b6597d17a68851409b53d0b;hp=f664ae203e08d3d2957c409c8ba76c9c7187bacf;hpb=399b04d522b22e593a9fa7463851be6d121ae4cf;p=freeside.git
diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html
index f664ae203..f0ecf8f70 100644
--- a/httemplate/view/cust_main/misc.html
+++ b/httemplate/view/cust_main/misc.html
@@ -1,14 +1,5 @@
-<% ntable("#cccccc") %>
% my @part_tag = $cust_main->part_tag;
% if ( $conf->config('cust_tag-location') =~ /^(cust_misc|)$/ && @part_tag ) {
@@ -26,15 +17,6 @@
% }
-%unless ( scalar(@agentnums) == 1
-% && !$curuser->access_right('View customers of all agents') ) {
-% my $agent = qsearchs('agent',{ 'agentnum' => $cust_main->agentnum } );
-
- <% mt('Agent') |h %> |
- <% $agent->agentnum %>: <% $agent->agent %> |
-
-% }
-
% if ( $cust_main->agent_custid
% && ! $conf->exists('cust_main-default_agent_custid') ) {
@@ -52,6 +34,13 @@
% #}
+% if ( $cust_main->salesnum ) {
+
+ <% mt('Sales Person') |h %> |
+ <% $cust_main->salesperson |h %> |
+
+% }
+
% unless ( FS::part_referral->num_part_referral == 1 ) {
% my $referral = qsearchs('part_referral', {
% 'refnum' => $cust_main->refnum
@@ -102,6 +91,26 @@
<% $cust_main->signupdate ? time2str($date_format, $cust_main->signupdate) : '' %> |
+% my $id_country = $conf->config('national_id-country');
+% if ( $id_country ) {
+% if ( $id_country eq 'MY' ) {
+
+% my($old, $nric) = ( '', '');
+% if ( $cust_main->national_id =~ /^\d{6}\-\d{2}\-\d{4}$/ ) {
+ <% mt('NRIC') |h %> |
+% } else { # elsif ( $cust_main->national_id =~ /^\w\d{9}$/ ) {
+ <% mt('Old IC/Passport') |h %> |
+% #} else {
+% # warn "unknown national_id format";
+%# |
+% }
+ <% $cust_main->national_id |h %> |
+
+% } else {
+% warn "unknown national_id-country $id_country";
+% }
+% }
+
% if ( $conf->exists('cust_main-enable_birthdate') ) {
% my $dt = $cust_main->birthdate ne ''
% ? DateTime->from_epoch( 'epoch' => $cust_main->birthdate,
@@ -114,19 +123,45 @@
<% $dt ? $dt->strftime($date_format) : '' %> |
+% if ( $conf->exists('cust_main-enable_spouse')
+% and $cust_main->spouse_birthdate ) {
+% my $dt = DateTime->from_epoch(
+% 'epoch' => $cust_main->spouse_birthdate,
+% 'time_zone' =>'floating'
+% );
+
+
+ <% mt('Spouse Date of Birth') |h %> |
+ <% $dt ? $dt->strftime($date_format) : '' %> |
+
+
+% }
+% } # enable_birthdate
+
+% if ( $conf->exists('cust_main-enable_anniversary_date') ) {
+% my $dt = $cust_main->anniversary_date ne ''
+% ? DateTime->from_epoch( 'epoch' => $cust_main->anniversary_date,
+% 'time_zone' =>'floating',
+% )
+% : '';
+
+
+ <% mt('Anniversary Date') |h %> |
+ <% $dt ? $dt->strftime($date_format) : '' %> |
+
+
% }
-% if ( $conf->exists('cust_main-require_censustract') ) {
+% if ( $cust_main->district ) {
-
- <% mt('Census tract ([_1])', $cust_main->censusyear) |h %>
- |
- <% $cust_main->censustract %> |
+ <% mt('Tax district') |h %> |
+ <% $cust_main->ship_location->district %> |
% }
+
% if ( $conf->exists('ticket_system-selfservice_edit_subject') ) {
@@ -140,7 +175,7 @@
<% $cust_main->pvf($_)->widget('HTML', 'view', $cust_main->getfield($_)) %>
% }
-
+
<%init>
my( $cust_main ) = @_;
@@ -151,4 +186,9 @@ my $curuser = $FS::CurrentUser::CurrentUser;
my @agentnums = $curuser->agentnums;
+my $status_label = $cust_main->status_label;
+if ($cust_main->is_status_delay_cancel) {
+ $status_label .= ' (Cancelled)';
+}
+
%init>