There exists cases where it is problematic, but your example is fine. In this case, you would use individual transaction lines to represent payments, rather than sales, which is closer to reality. But you can group transactions in any way you want.
With sales tax, you would have:
cr: sales, dr: cash, $100
cr: cash, dr: tax, $10