projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
602d22b
)
show discounts in change history, #18340
author
Mark Wells
<mark@freeside.biz>
Fri, 12 Apr 2013 23:39:02 +0000
(16:39 -0700)
committer
Mark Wells
<mark@freeside.biz>
Fri, 12 Apr 2013 23:39:02 +0000
(16:39 -0700)
httemplate/view/cust_main/change_history.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/change_history.html
b/httemplate/view/cust_main/change_history.html
index
ea84b8f
..
bf32a49
100644
(file)
--- a/
httemplate/view/cust_main/change_history.html
+++ b/
httemplate/view/cust_main/change_history.html
@@
-43,10
+43,12
@@
tie my %tables, 'Tie::IxHash',
'svc_external' => 'External service',
'svc_phone' => 'Phone',
'phone_device' => 'Phone device',
'svc_external' => 'External service',
'svc_phone' => 'Phone',
'phone_device' => 'Phone device',
+ 'cust_pkg_discount' => 'Discount',
#? it gets provisioned anyway 'phone_avail' => 'Phone',
;
#? it gets provisioned anyway 'phone_avail' => 'Phone',
;
-my $svc_join = 'JOIN cust_svc USING ( svcnum ) JOIN cust_pkg USING ( pkgnum )';
+my $pkg_join = "JOIN cust_pkg USING ( pkgnum )";
+my $svc_join = "JOIN cust_svc USING ( svcnum ) $pkg_join";
my %table_join = (
'svc_acct' => $svc_join,
my %table_join = (
'svc_acct' => $svc_join,
@@
-58,6
+60,7
@@
my %table_join = (
'svc_external' => $svc_join,
'svc_phone' => $svc_join,
'phone_device' => $svc_join,
'svc_external' => $svc_join,
'svc_phone' => $svc_join,
'phone_device' => $svc_join,
+ 'cust_pkg_discount'=> $pkg_join,
);
);
@@
-104,7
+107,7
@@
my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
my $curuser = $FS::CurrentUser::CurrentUser;
-die "access de
in
ed"
+die "access de
ni
ed"
unless $curuser->access_right('View customer history');
# find out the beginning of this customer history, if possible
unless $curuser->access_right('View customer history');
# find out the beginning of this customer history, if possible