final OBQuery<AccountingFact> facts = OBDal.getInstance().createQuery(AccountingFact.class,
"client.id='" + newClientID + "'");
facts.setFilterOnReadableClients(false);
facts.setFilterOnReadableOrganization(false);
assertTrue(facts.list().size() > 0);
final Client newClient = OBDal.getInstance().get(Client.class, newClientID);
boolean testDoneAtLeastOnce = false;
for (AccountingFact fact : facts.list()) {
assertEquals(newClient, fact.getClient());
if (fact.getRecordID() != null) {
final BaseOBObject bob = OBDal.getInstance().get(fact.getTable().getName(),