Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 public function canDelete()
 {
     return $this->_mapper->canDeleteCatalogueEntry($this);
 }
Esempio n. 3
0
 public function getNotEmptyReceiptList()
 {
     return $this->_mapper->getNotEmptyReceiptList();
 }
Esempio n. 4
0
 public function getConsumerList()
 {
     return $this->_mapper->_getAllPersons($this, 'consumer');
 }