issue #21684: first pass at aggregated fields
issue #21684: invoice relation and recurring invoice