diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 66594f53c6b..08405a5e43a 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -245,7 +245,7 @@ if ($_GET["action"] == 'payed' && $user->rights->facture->paiement) if ($_POST["action"] == 'setremise' && $user->rights->facture->creer) { $fac = new Facture($db); - $fac->fetch($facid); + $fac->fetch($_GET["facid"]); $fac->set_remise($user, $_POST["remise"]); } @@ -839,7 +839,7 @@ else if ($fac->mode_reglement == 3) { $head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id; - $head[$h][1] = $langs->trans("Prélèvement"); + $head[$h][1] = $langs->trans("StandingOrder"); $h++; } @@ -859,7 +859,7 @@ else */ if ($_GET["action"] == 'delete') { - $html->form_confirm($_SERVER["PHP_SELF"]."?facid=$fac->id","Supprimer la facture","Etes-vous sûr de vouloir supprimer cette facture ?","confirm_delete"); + $html->form_confirm($_SERVER["PHP_SELF"]."?facid=$fac->id",$langs->trans("DeleteBill"),$langs->trans("ConfirmDeleteBill"),"confirm_delete"); } /* @@ -971,18 +971,30 @@ else print "
| Factures brouillons ('.$num.') | '.$langs->trans("DraftBills").' ('.$num.') | '; $var = True; while ($i < $num && $i < 20) { diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 1ee3f59e087..b1f17998e32 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -21,7 +21,7 @@ * */ -/*! +/** \file htdocs/product/fiche.php \ingroup product \brief Page de la fiche produit @@ -177,7 +177,7 @@ if ($_POST["action"] == 'add_fourn' && $_POST["cancel"] <> $langs->trans("Cancel if ($product->add_fournisseur($user, $_POST["id_fourn"], $_POST["ref_fourn"]) > 0) { $action = ''; - $mesg = 'Founisseur ajouté'; + $mesg = $langs->trans("SupplierAdded"); } else { @@ -265,7 +265,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) print ''.$langs->trans("Ref").' | '; if ($_error == 1) { - print "Cette référence existe déjà"; + print $langs->trans("RefAlreadyExists"); } print ' | '; print '
| '.$langs->trans("Label").' | |||
| Seuil stock | ';
print '';
@@ -332,14 +332,6 @@ else
* En mode visu
*/
- // Zone recherche
- print ' ';
- print ' ';
-
$h=0;
$head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
@@ -623,28 +615,22 @@ print "\n\n";
if ($_GET["action"] == '')
{
- if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1)
+ if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1)
{
- print ''.$langs->trans("Commander").'';
+ print ''.$langs->trans("Commander").'';
}
-
-
-
-
- if ( $user->rights->produit->creer)
+ if ( $user->rights->produit->creer)
{
- print ''.$langs->trans("UpdatePrice").'';
+ print ''.$langs->trans("UpdatePrice").'';
}
-
- if ( $user->rights->produit->creer)
+ if ( $user->rights->produit->creer)
{
- print ''.$langs->trans("Edit").'';
+ print ''.$langs->trans("Edit").'';
+ }
+ if ($product->type == 0 && $conf->stock->enabled)
+ {
+ print 'Correction stock';
}
-}
-
-if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
-{
- print 'Correction stock';
}
print "\n \n";
@@ -683,7 +669,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
$objp = $db->fetch_object($i);
$var=!$var;
print " | ||
| propalid\">$objp->ref | \n"; + print "propalid\">$objp->ref | \n"; print "idp\">$objp->nom | \n"; print "". strftime("%d %b",$objp->dp)." | \n"; print '