/** * Just whether movement has already been added to transaction * and adds it, if not. */ protected function _addMovementToTransactionIfNeeded() { if (!$this->_movementInTransaction) { $this->_movementCreator->setTransaction($this->_transaction); $this->_movementCreator->createWithoutAdjustments($this->_movement); $this->_movementInTransaction = true; } }