While I agree with the intent of this law, I don't think it will be effective. If you have a system capable of jacking prices up you can just multiply this calculated delta by -1 transform that into a discount.
To effectively prevent this practice you probably need to ban any kind of personal discount. I don't think we will ever see such law, nor do I think this would be a good idea.