diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 11e0ddcb00b..9e8d6d2197e 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -125,4 +125,5 @@ Category=Categorie From=From to=to Quantity=Quantity -Qty=Qty \ No newline at end of file +Qty=Qty +ChangedBy=Changed by \ No newline at end of file diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index 4d0d4b6b9d3..06b29275701 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -20,4 +20,8 @@ CardProduct1=Service card Stock=Stock Stocks=Stocks OnSell=On sell -NotOnSell=Out of Sell \ No newline at end of file +NotOnSell=Out of Sell +UpdatePrice=Update price +AppliedPricesFrom=Applied prices from +SellingPrice=Selling price +NewPrice=New price \ No newline at end of file diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang index da4685fe49f..7dbd40a0d38 100644 --- a/htdocs/langs/fr_FR/main.lang +++ b/htdocs/langs/fr_FR/main.lang @@ -126,3 +126,4 @@ From=Du to=au Quantity=Quantité Qty=Qté +ChangedBy=Modifié par diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index b93dce69bb0..7556607ecd2 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -21,3 +21,7 @@ Stock=Stock Stocks=Stocks OnSell=En vente NotOnSell=Hors vente +UpdatePrice=Changer le prix +AppliedPricesFrom=Prix de vente pratiqués à partir du +SellingPrice=Prix de vente +NewPrice=Nouveau prix diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index ee4ac427823..f2e68a89be8 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -132,12 +132,13 @@ if ($_POST["action"] == 'addinpropal') $result = $propal->insert_product($_GET["id"], $_POST["qty"], $_POST["remise_percent"]); if ( $result < 0) { - $mesg = "erreur $result"; + $mesg = $langs->trans("ErrorUnknown").": $result"; } Header("Location: ../comm/propal.php?propalid=".$propal->id); } + if ($_POST["action"] == 'addinfacture' && ( $user->rights->facture->modifier || $user->rights->facture->creer)) { @@ -286,10 +287,10 @@ if ($_GET["action"] == 'create') if ($_GET["type"] == 1) { print '
| '.$langs->trans("Ref").' | '.$product->ref.' | '; print ''; @@ -376,7 +377,7 @@ else } print ' | ';
- print 'Fournisseurs [Ajouter]';
+ print $langs->trans("Suppliers").' ['.$langs->trans("Add").']';
$sql = "SELECT s.nom, s.idp";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."product_fournisseur as pf";
@@ -387,7 +388,7 @@ else
{
$num = $db->num_rows();
$i = 0;
- print '
\n"; @@ -466,12 +458,12 @@ else */ if ($_GET["action"] == 'edit_price' && $user->rights->produit->creer) { - print ' Nouveau prix ';
+ print ''.$langs->trans("NewPrice").' ';
print ' |