Fixes "syntax" bug on boolean test in sale and product