diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 637d6a71899..898c581407f 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -65,10 +65,10 @@ $search_ref_customer = GETPOST('search_ref_customer', 'alpha');
$search_company = GETPOST('search_company', 'alpha');
$search_town = GETPOST('search_town', 'alpha');
$search_zip = GETPOST('search_zip', 'alpha');
-$search_state = GETPOST("search_state");
+$search_state = GETPOST("search_state", 'alpha');
$search_country = GETPOST("search_country", 'int');
$search_type_thirdparty = GETPOST("search_type_thirdparty", 'int');
-$sall = trim((GETPOST('search_all', 'alphanohtml') != '') ?GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
+$sall = trim((GETPOST('search_all', 'alphanohtml') != '') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
$socid = GETPOST('socid', 'int');
$search_user = GETPOST('search_user', 'int');
$search_sale = GETPOST('search_sale', 'int');
@@ -84,7 +84,7 @@ $search_multicurrency_montant_ttc = GETPOST('search_multicurrency_montant_ttc',
$search_login = GETPOST('search_login', 'alpha');
$search_categ_cus = GETPOST("search_categ_cus", 'int');
$optioncss = GETPOST('optioncss', 'alpha');
-$billed = GETPOST('billed', 'int');
+$search_billed = GETPOSTISSET('search_billed') ? GETPOST('search_billed', 'int') : GETPOST('billed', 'int');
$search_status = GETPOST('search_status', 'int');
$search_btn = GETPOST('button_search', 'alpha');
$search_remove_btn = GETPOST('button_removefilter', 'alpha');
@@ -224,7 +224,7 @@ if (empty($reshook))
$search_project_ref = '';
$search_project = '';
$search_status = '';
- $billed = '';
+ $search_billed = '';
$toselect = '';
$search_array_options = array();
$search_categ_cus = 0;
@@ -309,7 +309,7 @@ if (!$user->rights->societe->client->voir && !$socid) $sql .= " AND s.rowid = sc
if ($search_ref) $sql .= natural_search('c.ref', $search_ref);
if ($search_ref_customer) $sql .= natural_search('c.ref_client', $search_ref_customer);
if ($sall) $sql .= natural_search(array_keys($fieldstosearchall), $sall);
-if ($billed != '' && $billed >= 0) $sql .= ' AND c.facture = '.$billed;
+if ($search_billed != '' && $search_billed >= 0) $sql .= ' AND c.facture = '.$search_billed;
if ($search_status <> '')
{
if ($search_status < 4 && $search_status > -3)
@@ -466,7 +466,7 @@ if ($resql)
if ($search_categ_cus > 0) $param .= '&search_categ_cus='.urlencode($search_categ_cus);
if ($show_files) $param .= '&show_files='.urlencode($show_files);
if ($optioncss != '') $param .= '&optioncss='.urlencode($optioncss);
- if ($billed != '') $param .= '&billed='.urlencode($billed);
+ if ($search_billed != '') $param .= '&search_billed='.urlencode($search_billed);
// Add $param from extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
@@ -755,7 +755,7 @@ if ($resql)
}
if (!empty($arrayfields['c.multicurrency_total_vat']['checked']))
{
- // Amount
+ // Amount VAT
print '
';
print '';
print ' | ';
@@ -817,7 +817,7 @@ if ($resql)
if (!empty($arrayfields['c.facture']['checked']))
{
print '';
- print $form->selectyesno('billed', $billed, 1, 0, 1);
+ print $form->selectyesno('search_billed', $search_billed, 1, 0, 1);
print ' | ';
}
// Action column
diff --git a/htdocs/core/lib/fourn.lib.php b/htdocs/core/lib/fourn.lib.php
index 201d74a9ff9..8b0e71a2a46 100644
--- a/htdocs/core/lib/fourn.lib.php
+++ b/htdocs/core/lib/fourn.lib.php
@@ -39,7 +39,7 @@ function facturefourn_prepare_head($object)
$head = array();
$head[$h][0] = DOL_URL_ROOT.'/fourn/facture/card.php?facid='.$object->id;
- $head[$h][1] = $langs->trans('Card');
+ $head[$h][1] = $langs->trans('SupplierInvoice');
$head[$h][2] = 'card';
$h++;
@@ -129,7 +129,7 @@ function ordersupplier_prepare_head($object)
$head = array();
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/card.php?id='.$object->id;
- $head[$h][1] = $langs->trans("OrderCard");
+ $head[$h][1] = $langs->trans("SupplierOrder");
$head[$h][2] = 'card';
$h++;
diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php
index cf3d0df5c9f..f840c037821 100644
--- a/htdocs/core/lib/invoice.lib.php
+++ b/htdocs/core/lib/invoice.lib.php
@@ -41,7 +41,7 @@ function facture_prepare_head($object)
$head = array();
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/card.php?facid='.$object->id;
- $head[$h][1] = $langs->trans('Card');
+ $head[$h][1] = $langs->trans('CustomerInvoice');
$head[$h][2] = 'compta';
$h++;
diff --git a/htdocs/core/lib/order.lib.php b/htdocs/core/lib/order.lib.php
index 96d66c3272a..939b731f135 100644
--- a/htdocs/core/lib/order.lib.php
+++ b/htdocs/core/lib/order.lib.php
@@ -43,7 +43,7 @@ function commande_prepare_head(Commande $object)
if (!empty($conf->commande->enabled) && $user->rights->commande->lire)
{
$head[$h][0] = DOL_URL_ROOT.'/commande/card.php?id='.$object->id;
- $head[$h][1] = $langs->trans("OrderCard");
+ $head[$h][1] = $langs->trans("CustomerOrder");
$head[$h][2] = 'order';
$h++;
}
diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php
index db2ee2db652..37e4e443554 100644
--- a/htdocs/core/lib/project.lib.php
+++ b/htdocs/core/lib/project.lib.php
@@ -167,7 +167,7 @@ function task_prepare_head($object)
$head = array();
$head[$h][0] = DOL_URL_ROOT.'/projet/tasks/task.php?id='.$object->id.(GETPOST('withproject') ? '&withproject=1' : '');
- $head[$h][1] = $langs->trans("Project");
+ $head[$h][1] = $langs->trans("Task");
$head[$h][2] = 'task_task';
$h++;
diff --git a/htdocs/langs/fr_FR/bills.lang b/htdocs/langs/fr_FR/bills.lang
index 5fdf44538e1..5da6bda8133 100644
--- a/htdocs/langs/fr_FR/bills.lang
+++ b/htdocs/langs/fr_FR/bills.lang
@@ -212,7 +212,7 @@ AmountOfBillsByMonthHT=Montant de factures par mois (HT)
UseSituationInvoices=Autoriser les factures de situation
UseSituationInvoicesCreditNote=Autoriser les avoirs de factures de situation
Retainedwarranty=Retenue de garantie
-AllowedInvoiceForRetainedWarranty=Garantie conservée utilisable sur les types de factures suivants
+AllowedInvoiceForRetainedWarranty=Rendre la retenue de garantie utilisable sur les types de factures suivants
RetainedwarrantyDefaultPercent=Pourcentage par défaut de la retenue de garantie
RetainedwarrantyOnlyForSituation=Rendre la "retenue de garantie" disponible uniquement pour les factures de situation
RetainedwarrantyOnlyForSituationFinal=Sur les factures de situation, la déduction globale pour "retenue de garantie" n'est appliquée que sur la facture de situation finale
diff --git a/htdocs/product/list.php b/htdocs/product/list.php
index 35a04f93613..6d9a60b0c66 100644
--- a/htdocs/product/list.php
+++ b/htdocs/product/list.php
@@ -1389,7 +1389,7 @@ if ($resql)
if ($obj->fk_product_type != 1)
{
if ($obj->seuil_stock_alerte != '' && $product_static->stock_reel < (float) $obj->seuil_stock_alerte) print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' ';
- print $product_static->stock_reel;
+ print price2num($product_static->stock_reel, 'MS');
}
print '';
if (!$i) $totalarray['nbfield']++;
@@ -1401,7 +1401,7 @@ if ($resql)
if ($obj->fk_product_type != 1)
{
if ($obj->seuil_stock_alerte != '' && $product_static->stock_theorique < (float) $obj->seuil_stock_alerte) print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' ';
- print $product_static->stock_theorique;
+ print price2num($product_static->stock_theorique, 'MS');
}
print '';
if (!$i) $totalarray['nbfield']++;