A common abstraction of boolean rings and lattice ordered groups