added close invoice check