~singpolyma/sgx-jmp

80f6aeec9ed2f2fc11ef443fcc22526764b92cba — Stephen Paul Weber 1 year, 7 months ago d799a92
Fix usage report range

Show things from all of the start of range (today)
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/customer_usage.rb
M lib/customer_usage.rb => lib/customer_usage.rb +1 -1
@@ 58,7 58,7 @@ class CustomerUsage
			date_trunc('day', start)::date as day,
			CEIL(SUM(billsec)/60.0)::integer as minutes
		FROM cdr
		WHERE customer_id=$1 and start >= $3 and start < $2
		WHERE customer_id=$1 and start >= $3 and date_trunc('day', start) <= $2
		GROUP BY date_trunc('day', start);
	SQL