diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index c38c195f0bc..cca394cd328 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -284,7 +284,8 @@ if ($_POST["action"] == 'updateligne' && $user->rights->facture->creer && $_POST
$_POST["qty"],
$_POST["remise_percent"],
$datestart,
- $dateend
+ $dateend,
+ $_POST["tva_tx"]
);
$_GET["facid"]=$_POST["facid"]; // Pour réaffichage de la fiche en cours d'édition
@@ -1062,7 +1063,8 @@ else
print '
| '.$langs->trans("AmountTTC").' | '.price($fac->total_ttc).' | ';
print ''.$langs->trans("Currency".$conf->monnaie).' |
';
- print '| '.$langs->trans("Status").' | '.($fac->getLibStatut()).' |
';
+ // Statut
+ print '| '.$langs->trans("Status").' | '.($fac->getLibStatut()).' |
';
if ($fac->note)
{
@@ -1112,7 +1114,7 @@ else
$objp = $db->fetch_object($resql);
$var=!$var;
- // Update ligne de facture
+ // Ligne en mode visu
if ($_GET["action"] != 'editline' || $_GET["rowid"] != $objp->rowid)
{
print '';
@@ -1122,7 +1124,7 @@ else
if ($objp->fk_product_type) print img_object($langs->trans('ShowService'),'service');
else print img_object($langs->trans('ShowProduct'),'product');
print ' '.$objp->ref.'';
- print ' - '.nl2br($objp->product);
+ print ' - '.nl2br(stripslashes($objp->product));
if ($objp->date_start && $objp->date_end)
{
print ' (Du '.dolibarr_print_date($objp->date_start).' au '.dolibarr_print_date($objp->date_end).')';
@@ -1135,7 +1137,7 @@ else
{
print " (Jusqu'au ".dolibarr_print_date($objp->date_end).')';
}
- print ($objp->description&&$objp->description!=$objp->product)?'
'.$objp->description:'';
+ print ($objp->description && $objp->description!=$objp->product)?'
'.$objp->description:'';
print '';
}
else
@@ -1189,25 +1191,26 @@ else
{
print '';
print img_down();
- print '';
+ print '';
}
+ print '';
}
else
{
print ' | ';
}
- print "
";
+ print '';
}
- // Update ligne de facture
- if ($_GET["action"] == 'editline' && $_GET["rowid"] == $objp->rowid)
+ // Ligne en mode update
+ if ($_GET["action"] == 'editline' && $user->rights->facture->creer && $_GET["rowid"] == $objp->rowid)
{
print '