summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-09-08 00:14:03 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-09-08 00:20:20 -0500
commit91c2a52f4d319809c3a248bb31aa72aecb38ade2 (patch)
tree77c340f35fb263ee2439f4a1ab43ba9c3883bade /httemplate
parent1f0da825e29598d65c405feddbe6ef40c52df022 (diff)
72393: High-priority: Tags history
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/change_history_common.html7
-rw-r--r--httemplate/view/cust_main/change_history.html1
2 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index e228e6555..5aaf6e691 100644
--- a/httemplate/elements/change_history_common.html
+++ b/httemplate/elements/change_history_common.html
@@ -197,6 +197,12 @@ my $svc_labelsub = sub {
$label. ': <b>'. encode_entities($item->label($item->history_date)). '</b>';
};
+my $tag_labelsub = sub {
+ my($item, $label) = @_;
+ my $part_tag = qsearchs('part_tag',{ tagnum => $item->tagnum });
+ $label. ': <SPAN STYLE="background-color: #'.$part_tag->tagcolor.'">'. encode_entities($part_tag->tagname). '</SPAN>';
+};
+
my %h_table_labelsub = (
'h_cust_pkg' => $pkg_labelsub,
'h_svc_acct' => $svc_labelsub,
@@ -208,6 +214,7 @@ my %h_table_labelsub = (
'h_svc_external' => $svc_labelsub,
'h_svc_phone' => $svc_labelsub,
#'h_phone_device'
+ 'h_cust_tag' => $tag_labelsub,
);
my $discounts = {};
diff --git a/httemplate/view/cust_main/change_history.html b/httemplate/view/cust_main/change_history.html
index d46a4ffde..a781c7372 100644
--- a/httemplate/view/cust_main/change_history.html
+++ b/httemplate/view/cust_main/change_history.html
@@ -46,6 +46,7 @@ tie my %tables, 'Tie::IxHash',
'phone_device' => 'Phone device',
'cust_pkg_discount' => 'Discount',
#? it gets provisioned anyway 'phone_avail' => 'Phone',
+ 'cust_tag' => 'Tag',
;
my $pkg_join = "JOIN cust_pkg USING ( pkgnum )";