Skip to content
Snippets Groups Projects
Commit 06a02138 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: taux de tva des produits non récupéré lors de la copie d'une facture fournisseur

parent a447c2f9
No related branches found
No related tags found
No related merge requests found
......@@ -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>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment