[freeside-commits] branch master updated. 92acdafd28e41e0e333d2e9df59af657f1f1242c

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


The branch, master has been updated
       via  92acdafd28e41e0e333d2e9df59af657f1f1242c (commit)
      from  f34ac99a5e160d2eac4fb2cfecce820d1cf9b7ed (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 92acdafd28e41e0e333d2e9df59af657f1f1242c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Mar 6 10:42:56 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