/[dolibarr]/dolibarr/htdocs/fourn/facture/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/fourn/facture/fiche.php

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

revision 1.75 by eldy, Sun Oct 30 17:33:12 2005 UTC revision 1.76 by eldy, Tue Nov 1 15:04:27 2005 UTC
# Line 51  $html = new Form($db); Line 51  $html = new Form($db);
51  $mesg='';  $mesg='';
52  $action=isset($_GET['action'])?$_GET['action']:$_POST['action'];  $action=isset($_GET['action'])?$_GET['action']:$_POST['action'];
53    
54  if ($_POST['action'] == 'confirm_valid' && $_POST['confirm'] == yes && $user->rights->fournisseur->facture->valider)  if ($_POST['action'] == 'confirm_valid' && $_POST['confirm'] == 'yes' && $user->rights->fournisseur->facture->valider)
55  {  {
56      $facturefourn=new FactureFournisseur($db);      $facturefourn=new FactureFournisseur($db);
57      $facturefourn->fetch($_GET['facid']);      $facturefourn->fetch($_GET['facid']);
58            
59      $facturefourn->set_valid($user->id);      $facturefourn->set_valid($user);
60            
61      Header('Location: fiche.php?facid='.$_GET['facid']);      Header('Location: fiche.php?facid='.$_GET['facid']);
62      exit;      exit;

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

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