Sales attributes

This PR completes the sales by addind the per-attribute value sale management feature.

It contains a fix for  #631.
Finally we can remove all the if/else block ? No ?