We recently added a new feature in X++, making it easier to make certain SQL-where clauses extensible.

Consider this method:

It can now be refactored to support an extender in controlling which LedgerPostingTypes to include in the calculation:

A neat little feature that debuted unnoticed by most.