X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fchange_history.html;h=09c1d6c6c41d12ad50f8c13575f3e46128345ee4;hb=2ffdb485e5534df3d89bcc12d4d02d485e9b28f5;hp=bf32a49f979cf6665b327825a0cd25933fbd0cfd;hpb=63973c641c4be00765fa27e55c57cc5b9aa4da19;p=freeside.git diff --git a/httemplate/view/cust_main/change_history.html b/httemplate/view/cust_main/change_history.html index bf32a49f9..09c1d6c6c 100644 --- a/httemplate/view/cust_main/change_history.html +++ b/httemplate/view/cust_main/change_history.html @@ -42,6 +42,7 @@ tie my %tables, 'Tie::IxHash', 'svc_broadband' => 'Broadband', 'svc_external' => 'External service', 'svc_phone' => 'Phone', + 'svc_cable' => 'Cable', 'phone_device' => 'Phone device', 'cust_pkg_discount' => 'Discount', #? it gets provisioned anyway 'phone_avail' => 'Phone', @@ -59,6 +60,7 @@ my %table_join = ( 'svc_broadband' => $svc_join, 'svc_external' => $svc_join, 'svc_phone' => $svc_join, + 'svc_cable' => $svc_join, 'phone_device' => $svc_join, 'cust_pkg_discount'=> $pkg_join, ); @@ -140,7 +142,13 @@ foreach my $table ( keys %tables ) { '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; +