projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f34ac99
)
legacy change history, RT#29311
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 6 Mar 2015 18:42:56 +0000
(10:42 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 6 Mar 2015 18:42:56 +0000
(10:42 -0800)
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
6c9b670
..
09c1d6c
100644
(file)
--- a/
httemplate/view/cust_main/change_history.html
+++ b/
httemplate/view/cust_main/change_history.html
@@
-46,9
+46,6
@@
tie my %tables, 'Tie::IxHash',
'phone_device' => 'Phone device',
'cust_pkg_discount' => 'Discount',
#? it gets provisioned anyway 'phone_avail' => 'Phone',
'phone_device' => 'Phone device',
'cust_pkg_discount' => 'Discount',
#? it gets provisioned anyway 'phone_avail' => 'Phone',
-
- 'legacy_history' => 'Label not used',
-
;
my $pkg_join = "JOIN cust_pkg USING ( pkgnum )";
;
my $pkg_join = "JOIN cust_pkg USING ( pkgnum )";
@@
-145,7
+142,13
@@
foreach my $table ( keys %tables ) {
'extra_sql' => ' AND custnum = '. $cust_main->custnum,
});
push @history, @items;
'extra_sql' => ' AND custnum = '. $cust_main->custnum,
});
push @history, @items;
-
}
}
+my @legacy_items = qsearch({
+ 'table' => 'legacy_cust_history',
+ 'hashref' => { 'history_date' => { op=>'>=', value=>$newer_than }, },
+ 'extra_sql' => ' AND custnum = '. $cust_main->custnum,
+});
+push @history, @legacy_items;
+
</%init>
</%init>