Transmet les champs banque et emetteur
This commit is contained in:
parent
fe71345dff
commit
0d535d0840
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
||||||
*
|
*
|
||||||
@ -44,8 +44,6 @@ $sortfield = isset($_GET['sortfield'])?$_GET['sortfield']:$_POST['sortfield'];
|
|||||||
$sortorder = isset($_GET['sortorder'])?$_GET['sortorder']:$_POST['sortorder'];
|
$sortorder = isset($_GET['sortorder'])?$_GET['sortorder']:$_POST['sortorder'];
|
||||||
$page=isset($_GET['page'])?$_GET['page']:$_POST['page'];
|
$page=isset($_GET['page'])?$_GET['page']:$_POST['page'];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$amounts=array();
|
$amounts=array();
|
||||||
$amountsresttopay=array();
|
$amountsresttopay=array();
|
||||||
$addwarning=0;
|
$addwarning=0;
|
||||||
@ -156,7 +154,9 @@ if ($_POST['action'] == 'confirm_paiement' && $_POST['confirm'] == 'yes')
|
|||||||
$totalpaiement,
|
$totalpaiement,
|
||||||
$paiement->num_paiement,
|
$paiement->num_paiement,
|
||||||
'',
|
'',
|
||||||
$user);
|
$user,
|
||||||
|
$_POST['chqemetteur'],
|
||||||
|
$_POST['chqbank']);
|
||||||
|
|
||||||
// Mise a jour fk_bank dans llx_paiement.
|
// Mise a jour fk_bank dans llx_paiement.
|
||||||
// On connait ainsi le paiement qui a généré l'écriture bancaire
|
// On connait ainsi le paiement qui a généré l'écriture bancaire
|
||||||
@ -276,14 +276,9 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P
|
|||||||
$html->select_types_paiements(empty($_POST['paiementid'])?'':$_POST['paiementid'],'paiementid');
|
$html->select_types_paiements(empty($_POST['paiementid'])?'':$_POST['paiementid'],'paiementid');
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
|
|
||||||
print '<td rowspan="3" valign="top">';
|
print '<td rowspan="5" valign="top">';
|
||||||
print '<textarea name="comment" wrap="soft" cols="60" rows="'.ROWS_4.'">'.(empty($_POST['comment'])?'':$_POST['comment']).'</textarea></td></tr>';
|
print '<textarea name="comment" wrap="soft" cols="60" rows="'.ROWS_4.'">'.(empty($_POST['comment'])?'':$_POST['comment']).'</textarea></td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Numero');
|
|
||||||
print ' <em>(Numéro chèque ou virement)</em>'; // \todo a traduire
|
|
||||||
print '</td>';
|
|
||||||
print '<td><input name="num_paiement" type="text" value="'.(empty($_POST['num_paiement'])?'':$_POST['num_paiement']).'"></td></tr>';
|
|
||||||
|
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
if ($conf->banque->enabled)
|
if ($conf->banque->enabled)
|
||||||
{
|
{
|
||||||
@ -299,6 +294,20 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'confirm_paiement' || $_P
|
|||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
print '<tr><td>'.$langs->trans('Numero');
|
||||||
|
print ' <em>(Numéro chèque ou virement)</em>'; // \todo a traduire
|
||||||
|
print '</td>';
|
||||||
|
print '<td><input name="num_paiement" type="text" value="'.(empty($_POST['num_paiement'])?'':$_POST['num_paiement']).'"></td></tr>';
|
||||||
|
|
||||||
|
print '<tr><td>'.$langs->trans('CheckTransmitter');
|
||||||
|
print ' <em>(Emetteur du chèque)</em>'; // \todo a traduire
|
||||||
|
print '</td>';
|
||||||
|
print '<td><input name="chqemetteur" size="30" type="text" value="'.(empty($_POST['chqemetteur'])?$facture->client->nom:$_POST['chqemetteur']).'"></td></tr>';
|
||||||
|
|
||||||
|
print '<tr><td>'.$langs->trans('Bank');
|
||||||
|
print ' <em>(Banque du chèque)</em>'; // \todo a traduire
|
||||||
|
print '</td>';
|
||||||
|
print '<td><input name="chqbank" size="30" type="text" value="'.(empty($_POST['chqbank'])?'':$_POST['chqbank']).'"></td></tr>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Liste factures impayées
|
* Liste factures impayées
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user