'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',
'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,
);
'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>