Issue #21628: Fixed broken view tests
Issue #21628: Added more view pieces
merge
issue #21684: tax type privs
issue #21684: get invoice model crud working
issue #21684: allow injection of custom events into smoke crud
issue #21684: outstanding credit function
issue #21684: randomness in state