[freeside-commits] branch FREESIDE_3_BRANCH updated. 8faa3133a2963d0f9233de652efca06f394337d5

Jonathan Prykop jonathan at 420.am
Wed Sep 7 22:29:59 PDT 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  8faa3133a2963d0f9233de652efca06f394337d5 (commit)
      from  00a479701fd2dbb814698df1d103c1e286a528df (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8faa3133a2963d0f9233de652efca06f394337d5
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Thu Sep 8 00:14:03 2016 -0500

    72393: High-priority: Tags history

diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index 7d4bd10..9611767 100644
--- a/httemplate/elements/change_history_common.html
+++ b/httemplate/elements/change_history_common.html
@@ -195,6 +195,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,
@@ -206,6 +212,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 d46a4ff..a781c73 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 )";

-----------------------------------------------------------------------

Summary of changes:
 httemplate/elements/change_history_common.html |    7 +++++++
 httemplate/view/cust_main/change_history.html  |    1 +
 2 files changed, 8 insertions(+)




More information about the freeside-commits mailing list