The margin scheme setting in PlentyONE is an older customized implementation. The tax rate will be applied to the entire amount of the stock units that the margin scheme applies to. In other words the tax rate will not be applied to the difference between sales price and purchase price.