A generalization of an aggregate almost ideal demand system (Economics letters, vol. 41, no. 4, 1993, pp. 369–371)