/[openfoncier]/trunk/obj/instruction.class.php
ViewVC logotype

Diff of /trunk/obj/instruction.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2828 by nhaye, Fri Mar 14 11:44:04 2014 UTC revision 2829 by vpihour, Mon Mar 17 15:49:00 2014 UTC
# Line 1363  class instruction extends instruction_ge Line 1363  class instruction extends instruction_ge
1363                  $valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']);                  $valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']);
1364                  $valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']);                  $valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']);
1365                  $valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']);                  $valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']);
1366                  $new_instruction->ajouter($valNewInstr,$db, $DEBUG);                  $retour = $new_instruction->ajouter($valNewInstr,$db, $DEBUG);
1367                    
1368                    //Si une erreur s'est produite
1369                    if ($retour == false){
1370                        $this->correct = false ;
1371                        $this->msg .= $new_instruction->msg;
1372                        return false;
1373                    }
1374              }              }
1375              // Si la date de retour AR est éditée on vérifie si il existe un événement automatique              // Si la date de retour AR est éditée on vérifie si il existe un événement automatique
1376              if ($this->getVal('date_retour_rar') == "" AND              if ($this->getVal('date_retour_rar') == "" AND
# Line 1385  class instruction extends instruction_ge Line 1392  class instruction extends instruction_ge
1392                  $valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']);                  $valNewInstr["date_retour_rar"] = $this->f->formatDate($this->valF['date_retour_rar']);
1393                  $valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']);                  $valNewInstr["date_envoi_controle_legalite"] = $this->f->formatDate($this->valF['date_envoi_controle_legalite']);
1394                  $valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']);                  $valNewInstr["date_retour_controle_legalite"] = $this->f->formatDate($this->valF['date_retour_controle_legalite']);
1395                  $new_instruction->ajouter($valNewInstr,$db, $DEBUG);                  $retour = $new_instruction->ajouter($valNewInstr,$db, $DEBUG);
1396                    
1397                    //Si une erreur s'est produite
1398                    if ($retour == false){
1399                        $this->correct = false ;
1400                        $this->msg .= $new_instruction->msg;
1401                        return false;
1402                    }
1403              }              }
1404          }          }
1405    

Legend:
Removed from v.2828  
changed lines
  Added in v.2829

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26