summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-09-19 19:36:55 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-09-19 21:57:56 -0500
commitc878f595e11f510058671b146e08c250766cd1bf (patch)
treed74208fcd2c9801f482deaa84107eef2faa44a3d
parentfe6ddc9940cf3a55b4c37f360a31b90e92e4157d (diff)
RT#36813: Monthly Recurring Total [fixed order by]
-rw-r--r--httemplate/view/cust_main/billing.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html
index 74484e322..cc58cd74e 100644
--- a/httemplate/view/cust_main/billing.html
+++ b/httemplate/view/cust_main/billing.html
@@ -48,7 +48,7 @@
% 'hashref' => { 'custnum' => $cust_main->custnum, },
% 'extra_sql' => 'AND ( cancel IS NULL OR cancel = 0 )
% AND freq = '. dbh->quote($freq),
-% 'order_by' => 'ORDER BY pkgnum', # to ensure old pkgs come before change_to_pkg
+% 'order_by' => 'ORDER BY COALESCE(start_date,0), pkgnum', # to ensure old pkgs come before change_to_pkg
% }) or next;
%
% my $freq_pretty = $cust_pkg[0]->part_pkg->freq_pretty;