include("_config_mysqli.php");
$select_contact = mysqli_query($mysqli_vvw,"select * from vvw_users where login = '$username'");
$row_contact = mysqli_fetch_assoc($select_contact);
$select_bill_temp = mysqli_query($mysqli_vvw,"select * from vvw_master
where status_abrechnung != 'OFFER'
AND ( anleger = '$row_contact[name]' and status_abgeschlossen = '0000-00-00 00:00:00' and pause = '0' OR anleger = '$row_contact[name]' and status_abrechnung != 'BILLED' and pause = '0')
OR (anleger = '$row_contact[name]' and status_abgeschlossen != '0000-00-00 00:00:00' and status_abrechnung != 'BILLED' and pause = '0' )
order by vvw_master_id DESC");
$count_bill_temp = mysqli_num_rows($select_bill_temp);
$count_bill_temp_dash = $count_bill_temp;
?>