mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Properly format 95th CDR as SI Mbps in billing (#10444)
This commit is contained in:
		@@ -151,7 +151,11 @@ foreach (dbFetchRows($sql, $param) as $bill) {
 | 
			
		||||
        $actions .= "<a href='" . generate_url(array('page' => 'bill', 'bill_id' => $bill['bill_id'], 'view' => 'edit')) .
 | 
			
		||||
            "'><i class='fa fa-pencil fa-lg icon-theme' title='Edit' aria-hidden='true'></i> Edit</a> ";
 | 
			
		||||
    }
 | 
			
		||||
    $predicted = format_bytes_billing(getPredictedUsage($bill['bill_day'], $tmp_used));
 | 
			
		||||
    if (strtolower($bill['bill_type']) == 'cdr') {
 | 
			
		||||
        $predicted = format_si(getPredictedUsage($bill['bill_day'], $tmp_used)).'bps';
 | 
			
		||||
    } elseif (strtolower($bill['bill_type']) == 'quota') {
 | 
			
		||||
        $predicted = format_bytes_billing(getPredictedUsage($bill['bill_day'], $tmp_used));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $response[] = array(
 | 
			
		||||
        'bill_name'     => $bill_name,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user