/[dolibarr]/dolibarr/htdocs/compta/tva/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/compta/tva/fiche.php

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

revision 1.13 by eldy, Sat Jul 2 12:16:33 2005 UTC revision 1.14 by eldy, Sun Nov 20 19:43:49 2005 UTC
# Line 18  Line 18 
18   *   *
19   * $Id$   * $Id$
20   * $Source$   * $Source$
  *  
21   */   */
22    
23  /**  /**
# Line 57  if ($_POST["action"] == 'add' && $_POST[ Line 56  if ($_POST["action"] == 'add' && $_POST[
56      {      {
57          $db->commit();          $db->commit();
58          Header ("Location: reglement.php");          Header ("Location: reglement.php");
59            exit;
60      }      }
61      else      else
62      {      {
63          $db->rollback();          $db->rollback();
64          $message=$langs->trans("Error");          $message='<div class="error">'.$tva->error.'</div>';
65          $_GET["action"]="create";          $_GET["action"]="create";
66      }      }
67  }  }
# Line 80  if ($_GET["action"] == 'create') Line 80  if ($_GET["action"] == 'create')
80            
81      print_fiche_titre($langs->trans("NewVATPayment"));      print_fiche_titre($langs->trans("NewVATPayment"));
82                
83      if ($message) print '<br>'.$message.'</br>';      if ($message) print $message;
84            
85      print '<table class="border" width="100%">';      print '<table class="border" width="100%">';
86            
# Line 97  if ($_GET["action"] == 'create') Line 97  if ($_GET["action"] == 'create')
97      $html->select_types_paiements($charge->paiementtype, "paiementtype");      $html->select_types_paiements($charge->paiementtype, "paiementtype");
98      print "</td>\n";      print "</td>\n";
99        
100      print '<tr><td>Compte à créditer :</td><td>';      if ($conf->banque->enabled)
101      $html->select_comptes($charge->accountid, "accountid", 0, "courant=1");  // Affiche liste des comptes courant      {
102      print '</td></tr>';          print '<tr><td>'.$langs->trans("Account").'</td><td>';
103                $html->select_comptes($charge->accountid,"accountid",0,"courant=1",1);  // Affiche liste des comptes courant
104            print '</td></tr>';
105        }
106            
107      print '<tr><td>'.$langs->trans("Amount").'</td><td><input name="amount" size="10" value=""></td></tr>';          print '<tr><td>'.$langs->trans("Amount").'</td><td><input name="amount" size="10" value=""></td></tr>';    
108      print '<tr><td>&nbsp;</td><td><input type="submit" value="'.$langs->trans("Save").'">&nbsp;';      print '<tr><td>&nbsp;</td><td><input type="submit" class="button" value="'.$langs->trans("Save").'"> &nbsp; ';
109      print '<input type="submit" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';      print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';
110      print '</table>';      print '</table>';
111      print '</form>';            print '</form>';      
112  }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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