SOLVED Discount Q method for V4 working on V5?

By the way you can now use Rate option for order tags no need to calculate percent manually.