issue #21123: facilitate business logic in sales model
Merge pull request #717 from shackbarth/21123

issue #21123: facilitate business logic in sales model