From 06a02138ab3cfaab625d77c32bb9d6f821f1df12 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sun, 10 Sep 2006 15:47:39 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20taux=20de=20tva=20des=20produits=20non?= =?UTF-8?q?=20r=E9cup=E9r=E9=20lors=20de=20la=20copie=20d'une=20facture=20?= =?UTF-8?q?fournisseur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/facture/fiche.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index a7eb5efd823..dbbbdc3cb44 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -364,18 +364,20 @@ if ($_GET['action'] == 'create' or $_GET['action'] == 'copy') { $value_label = $fac_ori->lignes[$i-1][0]; $value_pu = $fac_ori->lignes[$i-1][1]; + $value_tauxtva = $fac_ori->lignes[$i-1][2]; $value_qty = $fac_ori->lignes[$i-1][3]; } else { $value_qty = '1'; + $value_tauxtva = ''; } print '<tr><td>'.$i.'</td>'; print '<td><input size="50" name="label'.$i.'" value="'.$value_label.'" type="text"></td>'; print '<td align="right"><input type="text" size="8" name="amount'.$i.'" value="'.$value_pu.'"></td>'; print '<td align="right"><input type="text" size="3" name="qty'.$i.'" value="'.$value_qty.'"></td>'; print '<td align="right">'; - $html->select_tva('tauxtva'.$i,'',$societe,$mysoc); + $html->select_tva('tauxtva'.$i,$value_tauxtva,$societe,$mysoc); print '</td>'; print '<td align="right"><input type="text" size="8" name="amountttc'.$i.'" value=""></td></tr>'; } -- GitLab