This is the loop I use. I am using a heavily modified version of the plugin so I haven’t tested this with the original but it should work.
$query = new WP_Query(array ('meta_key' => '_wpiu_invoices_meta', 'post_type' => 'wpiu-invoices' ));
while ( $query->have_posts() ) : $query->the_post();
//get meta, get user ids
$meta = get_post_meta($post->ID, '_wpiu_invoices_meta',true);
$invoice_client = $wp_query->current_post->$meta['_wpiu_invoices_meta_client'];
$current_user = wp_get_current_user()->ID;
if($current_user == $invoice_client) {
}
endwhile;