Pricing Rule is a mess on v10.x.x

I am playing and testing with Pricing Rule and so far I can see that it is a total mess.

I am calling the Pricing Rule from this function:

Every time I change, add or remove Pricing Rule it return different column names:
Check these out:

Sometimes it shows like this:


and sometimes like this:

And on Price or Discount I choose Price and put a fixed price, it returns rate 0.