Look: Minor fix

This commit is contained in:
Laurent Destailleur 2009-07-15 19:53:31 +00:00
parent 070662bcd1
commit 54da829a83
2 changed files with 17 additions and 12 deletions

View File

@ -321,6 +321,8 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P
print '</td>';
print '<td><input name="chqbank" size="30" type="text" value="'.(empty($_POST['chqbank'])?'':$_POST['chqbank']).'"></td></tr>';
print '</table>';
/*
* List of unpayed invoices
*/
@ -349,7 +351,8 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P
{
$i = 0;
print '<tr><td colspan="3">';
//print '<tr><td colspan="3">';
print '<br>';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans('Invoice').'</td>';
@ -439,7 +442,8 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P
print '<td align="center">&nbsp;</td>';
print "</tr>\n";
}
print "</table></td></tr>\n";
print "</table>";
//print "</td></tr>\n";
}
$db->free($resql);
}
@ -452,10 +456,11 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P
// Bouton Enregistrer
if ($_POST["action"] != 'add_paiement')
{
print '<tr><td colspan="3" align="center"><input type="submit" class="button" value="'.$langs->trans('Save').'"></td></tr>';
// print '<tr><td colspan="3" align="center">';
print '<br><center><input type="submit" class="button" value="'.$langs->trans('Save').'"></center>';
// print '</td></tr>';
}
print '</table>';
// Message d'erreur

View File

@ -20,12 +20,12 @@
*/
/**
\file htdocs/compta/paiement/fiche.php
\ingroup facture
\brief Onglet paiement d'un paiement client
\remarks Fichier presque identique a fournisseur/paiement/fiche.php
\version $Id$
*/
* \file htdocs/compta/paiement/fiche.php
* \ingroup facture
* \brief Onglet paiement d'un paiement client
* \remarks Fichier presque identique a fournisseur/paiement/fiche.php
* \version $Id$
*/
require('./pre.inc.php');
require_once(DOL_DOCUMENT_ROOT.'/paiement.class.php');
@ -41,7 +41,7 @@ $langs->load('companies');
$id=isset($_GET["id"])?$_GET["id"]:$_POST["id"];
$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
if ($user->societe_id) $socid=$user->societe_id;
// TODO ajouter règle pour restreindre acces paiement
// TODO ajouter r<EFBFBD>gle pour restreindre acces paiement
//$result = restrictedArea($user, 'facture', $id,'');
$mesg='';
@ -81,7 +81,7 @@ if ($_REQUEST['action'] == 'confirm_valide' && $_REQUEST['confirm'] == 'yes' &&
{
$db->commit();
// \TODO Boucler sur les facture liées à ce paiement et régénèrer le pdf
// \TODO Boucler sur les facture liees a ce paiement et regenerer le pdf
$factures=array();
foreach($factures as $id)
{