class BalanceAudit

Finds records that versions before 7.1.1 may have corrupted.

Nothing here changes data. An over cleared Transaction is a fact, but how to put it right is an accounting decision. A compounded Balance cannot be told apart from one that was legitimately re-entered, so those findings are candidates to check against the source of the Balance.

Methods

static Collection
compoundedCandidates(Entity|null $entity = null)

Foreign currency Balances saved after they were created, which versions before 7.1.1 translated by their exchange rate again on each save.

static Collection
overCleared(Entity|null $entity = null)

Transactions and Balances cleared by more than their amount, which versions before 7.1.1 allowed by amounts of less than 1.

Details

at line 38
static Collection compoundedCandidates(Entity|null $entity = null)

Foreign currency Balances saved after they were created, which versions before 7.1.1 translated by their exchange rate again on each save.

Parameters

Entity|null $entity

Return Value

Collection

at line 59
static Collection overCleared(Entity|null $entity = null)

Transactions and Balances cleared by more than their amount, which versions before 7.1.1 allowed by amounts of less than 1.

Parameters

Entity|null $entity

Return Value

Collection