18 |
* |
* |
19 |
* $Id$ |
* $Id$ |
20 |
* $Source$ |
* $Source$ |
|
* |
|
21 |
*/ |
*/ |
22 |
|
|
23 |
/** |
/** |
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 |
} |
} |
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 |
|
|
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> </td><td><input type="submit" value="'.$langs->trans("Save").'"> '; |
print '<tr><td> </td><td><input type="submit" class="button" value="'.$langs->trans("Save").'"> '; |
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 |
} |
} |