Group zero lines by party and account

issue4122
review14451002
(grafted from db9133122def7ef12c56b35203d8f9ec52412931)

--HG--
branch : 3.0
extra : source : db9133122def7ef12c56b35203d8f9ec52412931