/[dolibarr]/dolibarr/htdocs/contrat/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/contrat/fiche.php

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

revision 1.64 by eldy, Thu Sep 29 19:31:45 2005 UTC revision 1.65 by eldy, Sat Oct 1 15:57:05 2005 UTC
# Line 212  if ($_POST["action"] == 'confirm_valid' Line 212  if ($_POST["action"] == 'confirm_valid'
212  {  {
213      $contrat = new Contrat($db);      $contrat = new Contrat($db);
214      $contrat->fetch($_GET["id"]);      $contrat->fetch($_GET["id"]);
215      $soc = new Societe($db);      $result = $contrat->validate($user,$lang,$conf);
     $soc->fetch($contrat->soc_id);  
     $result = $contrat->validate($user);  
216  }  }
217    
218  if ($_POST["action"] == 'confirm_close' && $_POST["confirm"] == 'yes' && $user->rights->contrat->creer)  if ($_POST["action"] == 'confirm_close' && $_POST["confirm"] == 'yes' && $user->rights->contrat->creer)
219  {  {
220      $contrat = new Contrat($db);      $contrat = new Contrat($db);
221      $contrat->fetch($_GET["id"]);      $contrat->fetch($_GET["id"]);
222      $result = $contrat->cloture($user);      $result = $contrat->cloture($user,$lang,$conf);
223  }  }
224    
225  if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')  if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26