issue #21684: take settings from customer
issue #21684: first pass at invoice triggers
issue #21684: invoice validation