case when (({locationquantity}+{locationquantityonorder})-{locationquantitybackordered})>{safetyStock} then 1 else 0 end