public function removeAll()
{
/*
* Only allow the previous state of on hold
*/
$this->validatePreviousState([$this::STATE_INVENTORY_ON_HOLD], $this::STATE_INVENTORY_REMOVED);
$this->setAttribute('quantity', 0);
$this->setAttribute('state', $this::STATE_INVENTORY_REMOVED);
return $this->processSave('inventory.transaction.removed');
}