/**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefType();
     $this->_montant = $this->montant_base;
     // Vue codée
     $this->_shortview = $this->quantite > 1 ? "{$this->quantite}x " : "";
     $this->_shortview .= $this->_ref_type->_view;
     if ($this->coefficient != 1) {
         $this->_shortview .= $this->coefficient;
     }
     $this->_view = "Frais divers {$this->_shortview}";
     if ($this->object_class && $this->object_id) {
         $this->_view .= " de {$this->object_class}-{$this->object_id}";
     }
 }
Ejemplo n.º 2
0
 /**
  * Mise à jour du montant total de la rétrocession
  * 
  * @param string $code code pour mettre à jour
  * 
  * @return $this->_ref_acte
  */
 function updateMontant($code = "")
 {
     $this->_montant_total = 0;
     if ($code == $this->code || !$code) {
         if ($this->type == "montant") {
             $this->_montant_total = $this->valeur;
         } elseif ($this->type == "pct") {
             $this->loadRefCode();
             $this->_ref_acte->updateFormFields();
             $this->_montant_total = $this->_ref_acte->_montant_facture * $this->valeur / 100;
         } elseif (($this->code_class == "CActeTarmed" || $this->code_class == "CActeCaisse") && CModule::getActive("tarmed") && CAppUI::conf("tarmed CCodeTarmed use_cotation_tarmed")) {
             $_code = $this->loadRefCode();
             $tarmed = $_code->_ref_tarmed;
             $pm = $this->code_class == "CActeTarmed" ? $tarmed->tp_al * $tarmed->f_al : $_code->_ref_prestation_caisse->pt_medical;
             $pt = $this->code_class == "CActeTarmed" ? $tarmed->tp_tl * $tarmed->f_tl : $_code->_ref_prestation_caisse->pt_technique;
             $this->_montant_total = $pm * ($this->pct_pm / 100) + $pt * ($this->pct_pt / 100);
         }
     }
     $this->_montant_total = round($this->_montant_total, 2);
     return $this->_montant_total;
 }
Ejemplo n.º 3
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_modificateurs = str_split($this->modificateurs);
     CMbArray::removeValue("", $this->_modificateurs);
     $this->_dents = explode("|", $this->position_dentaire);
     $this->_shortview = $this->code_acte;
     $this->_view = "{$this->code_acte}-{$this->code_activite}-{$this->code_phase}-{$this->modificateurs}";
     $this->_anesth = $this->code_activite == 4;
     // Remboursement exceptionnel
     $code = CDatedCodeCCAM::get($this->code_acte, $this->execution);
     $this->_rembex = $this->rembourse && $code->remboursement == 3 ? '1' : '0';
 }
Ejemplo n.º 4
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     // Vue codée
     $this->_shortview = $this->quantite > 1 ? "{$this->quantite}x" : "";
     $this->_shortview .= $this->code;
     if ($this->coefficient != 1) {
         $this->_shortview .= $this->coefficient;
     }
     if ($this->demi) {
         $this->_shortview .= "/2";
     }
     $this->_view = "Acte NGAP {$this->_shortview}";
     if ($this->object_class && $this->object_id) {
         $this->_view .= " de {$this->object_class}-{$this->object_id}";
     }
     $this->_tarif = round($this->montant_base + $this->montant_depassement, 2);
 }