[freeside-commits] branch master updated. fbd41fb4bec0be8b74abf112bb70c7528342931a
Jonathan Prykop
jonathan at 420.am
Thu Feb 5 17:05:53 PST 2015
The branch, master has been updated
via fbd41fb4bec0be8b74abf112bb70c7528342931a (commit)
via 3e425bd1b9854f4e3f2ef8c3c4eb0d2e3ca77ad0 (commit)
from 7bc49d6e6a03b181ca2392d69e5f717e54d2f907 (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 fbd41fb4bec0be8b74abf112bb70c7528342931a
Merge: 3e425bd 7bc49d6
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Thu Feb 5 19:05:13 2015 -0600
Merge branch 'master' of git.freeside.biz:/home/git/freeside
commit 3e425bd1b9854f4e3f2ef8c3c4eb0d2e3ca77ad0
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Thu Feb 5 19:05:00 2015 -0600
RT#28246: Add more details to Change History for Discounts
diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html
index 34ce70b..9e32bef 100644
--- a/httemplate/elements/change_history_common.html
+++ b/httemplate/elements/change_history_common.html
@@ -172,6 +172,18 @@ my $svc_labelsub = sub {
$label. ': <b>'. encode_entities($item->label($item->history_date)). '</b>';
};
+my $discounts = {};
+my $discount_labelsub = sub {
+ my($item, $label) = @_;
+ my $dnum = $item->discountnum;
+ $discounts->{$dnum} ||= qsearchs({
+ 'table'=>'discount',
+ 'hashref'=>{'discountnum'=>$dnum}
+ });
+ my $d = $discounts->{$dnum};
+ $label . ': <b>' . encode_entities($d->description_short) . '<b>';
+};
+
my %h_table_labelsub = (
'h_cust_pkg' => $pkg_labelsub,
'h_svc_acct' => $svc_labelsub,
@@ -183,6 +195,7 @@ my %h_table_labelsub = (
'h_svc_external' => $svc_labelsub,
'h_svc_phone' => $svc_labelsub,
#'h_phone_device'
+ 'h_cust_pkg_discount' => $discount_labelsub,
);
my $cust_pkg_date_format = '%b %o, %Y';
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/change_history_common.html | 13 +++++++++++++
1 file changed, 13 insertions(+)
More information about the freeside-commits
mailing list