[v6r9] AccountingDB - fix the problem of grouping by Country, Grid

FIX: Use the old style grouping if the default grouping is altered