
	SELECT project.id AS the_project FROM project WHERE
	(gi_pf_invoice_code IS NULL OR gi_pf_invoice_code = '')
	AND
	(gi_invoice_receipt_code IS NULL OR gi_invoice_receipt_code = '')
	AND
	(payment_document IS NULL OR payment_document = '')
	AND
	(balance_due IS NOT NULL AND balance_due <> '' AND balance_due <> '0')
	AND
	id > 10547
