Filter sales according to state of sale #5772