[8.0] port account_auto_fy_sequence to 8.0

This is a merge of 7.0 into 8.0 + minor stuff for 8.0 compliance in 2fb15b9a9c6b5888f36eb21651ed3db70d1d44f0