Beispiel #1
0
 public function delete()
 {
     if ($this->system_acc != 1) {
         if (!$this->hasHistory()) {
             return parent::delete();
         }
     }
     return false;
 }
Beispiel #2
0
 public function delete()
 {
     if ($this->action == 0) {
         foreach ($this->docDetailes as $detail) {
             $detail->delete();
         }
         foreach ($this->docCheques as $detail) {
             $detail->delete();
         }
         return parent::delete();
     } else {
         return false;
     }
 }