'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>