/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->_time_op = $this->temp_operation; $this->_time_urgence = $this->time_operation; /** @var CTypeAnesth $type_anesth */ $this->_ref_type_anesth = $type_anesth = $this->loadFwdRef("type_anesth", true); $this->_lu_type_anesth = $type_anesth->name; $this->_fin_prevue = CMbDT::addTime($this->time_operation, $this->temp_operation); if ($this->debut_op && $this->fin_op && $this->fin_op > $this->debut_op) { $this->_duree_interv = CMbDT::subTime($this->debut_op, $this->fin_op); } if ($this->pose_garrot && $this->retrait_garrot && $this->retrait_garrot > $this->pose_garrot) { $this->_duree_garrot = CMbDT::subTime($this->pose_garrot, $this->retrait_garrot); } if ($this->induction_debut && $this->induction_fin && $this->induction_fin > $this->induction_debut) { $this->_duree_induction = CMbDT::subTime($this->induction_debut, $this->induction_fin); } if ($this->entree_salle && $this->sortie_salle && $this->sortie_salle > $this->entree_salle) { $this->_presence_salle = CMbDT::subTime($this->entree_salle, $this->sortie_salle); } if ($this->entree_reveil && $this->sortie_reveil_possible && $this->sortie_reveil_possible > $this->entree_reveil) { $this->_duree_sspi = CMbDT::subTime($this->entree_reveil, $this->sortie_reveil_possible); } $this->_acte_depassement = $this->depassement; $this->_acte_depassement_anesth = $this->depassement_anesth; $this->updateView(); $this->updateDatetimes(); }
public function updateFormFields() { parent::updateFormFields(); $this->_ttc = round($this->ht * $this->tax_rate / 100, 2); $this->_total = round($this->base + $this->dh + $this->_ttc, 2); $this->_praticien_id = $this->praticien_id; $this->getActeExecution(); }