[freeside-commits] branch FREESIDE_3_BRANCH updated. 3d104934825b8330437006b7a745c22b563d215a

Ivan ivan at 420.am
Fri Mar 6 10:42:59 PST 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  3d104934825b8330437006b7a745c22b563d215a (commit)
      from  e4a47f372deb65290c79c78b1ea17e6a8af9ecfa (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 3d104934825b8330437006b7a745c22b563d215a
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Mar 6 10:42:58 2015 -0800

    legacy change history, RT#29311

diff --git a/httemplate/view/cust_main/change_history.html b/httemplate/view/cust_main/change_history.html
index 6c9b670..09c1d6c 100644
--- 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',
-
-  'legacy_history'    => 'Label not used',
-
 ;
 
 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;
-
 }
 
+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>

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

Summary of changes:
 httemplate/view/cust_main/change_history.html |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list