Sales attributes

This PR completes the sales by addind the per-attribute value sale management feature.

It contains a fix for  #631.
Yes.