issue #20715: Fixes to sales history definition.