/** * Enter description here... * */ public function saveReceipt($typeValue = 0) { $this->_props['bit_mask'] = $this->_props['bit_mask'] | $typeValue; if ($this->_existsInDb() && $this->_propInitial('bdate') != $this->bdate) { throw new RM_Base_Exception_BadUsage(__METHOD__ . ' : you can\'t change receipt `bdate`'); } if ($this->_propInitial('bit_mask') == 0 && $typeValue != $this->_mapper->_getBitMaskByName('real')) { throw new RM_Base_Exception_BadUsage(__METHOD__ . ' : you can\'t change deleted `receipt`'); } return parent::save(); }
public function canDelete() { return $this->_mapper->canDeleteCatalogueEntry($this); }
public function getNotEmptyReceiptList() { return $this->_mapper->getNotEmptyReceiptList(); }
public function getConsumerList() { return $this->_mapper->_getAllPersons($this, 'consumer'); }