';
diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php
index 62301015418..fe8c2adb7bc 100644
--- a/htdocs/societe/consumption.php
+++ b/htdocs/societe/consumption.php
@@ -433,15 +433,15 @@ if ($sql_select)
// Status
print '| ';
- if ($type_element == 'contract')
- {
- print $documentstaticline->getLibStatut(2);
+ if ($type_element == 'contract') {
+ print $documentstaticline->getLibStatut(5);
} else {
- print $documentstatic->getLibStatut(2);
+ print $documentstatic->getLibStatut(5);
}
print ' | ';
- print '';
+ // Label
+ print ' | ';
// Define text, description and type
$text = ''; $description = ''; $type = 0;
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index 57f9aa630f4..e62b17559ee 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -485,7 +485,7 @@ if ($search_type == '0') $sql .= " AND s.client = 0 AND s.fournisseur = 0";
if ($search_status != '' && $search_status >= 0) $sql .= natural_search("s.status", $search_status, 2);
if (!empty($conf->barcode->enabled) && $search_barcode) $sql .= natural_search("s.barcode", $search_barcode);
if ($search_prive_level && $search_prive_level != '-1') $sql .= natural_search("s.price_level", $search_prive_level, 2);
-if ($search_type_thirdparty && $search_type_thirdparty != '-1') $sql .= natural_search("s.fk_typent", $search_type_thirdparty, 2);
+if ($search_type_thirdparty && $search_type_thirdparty > 0) $sql .= natural_search("s.fk_typent", $search_type_thirdparty, 2);
if (!empty($search_staff) && $search_staff != '-1') $sql .= natural_search("s.fk_effectif", $search_staff, 2);
if ($search_level) $sql .= natural_search("s.fk_prospectlevel", join(',', $search_level), 3);
if ($search_parent_name) $sql .= natural_search("s2.nom", $search_parent_name);
@@ -582,7 +582,7 @@ if ($search_idprof5 != '') $param .= '&search_idprof5='.urlencode($search_idprof
if ($search_idprof6 != '') $param .= '&search_idprof6='.urlencode($search_idprof6);
if ($search_vat != '') $param .= '&search_vat='.urlencode($search_vat);
if ($search_prive_level != '') $param .= '&search_prive_level='.urlencode($search_prive_level);
-if ($search_type_thirdparty != '') $param .= '&search_type_thirdparty='.urlencode($search_type_thirdparty);
+if ($search_type_thirdparty != '' && $search_type_thirdparty > 0) $param .= '&search_type_thirdparty='.urlencode($search_type_thirdparty);
if ($search_type != '') $param .= '&search_type='.urlencode($search_type);
if (is_array($search_level) && count($search_level)) foreach ($search_level as $slevel) $param .= '&search_level[]='.urlencode($slevel);
if ($search_status != '') $param .= '&search_status='.urlencode($search_status);
diff --git a/htdocs/societe/notify/card.php b/htdocs/societe/notify/card.php
index 5730d8f1ff4..b911bfb034e 100644
--- a/htdocs/societe/notify/card.php
+++ b/htdocs/societe/notify/card.php
@@ -30,7 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/triggers/interface_50_modNotification_Notification.class.php';
-$langs->loadLangs(array("companies", "mails", "admin", "other"));
+$langs->loadLangs(array("companies", "mails", "admin", "other", "errors"));
$socid = GETPOST("socid", 'int');
$action = GETPOST('action', 'aZ09');
@@ -139,6 +139,7 @@ $result = $object->fetch($socid);
$title = $langs->trans("ThirdParty").' - '.$langs->trans("Notification");
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) $title = $object->name.' - '.$langs->trans("Notification");
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
+
llxHeader('', $title, $help_url);
@@ -157,7 +158,7 @@ if ($result > 0)
print '';
print ' ';
- print ' ';
+ print '';
// Prefix
if (!empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
@@ -208,72 +209,15 @@ if ($result > 0)
print "\n";
// Help
- print '';
+ print ' ';
print $langs->trans("NotificationsDesc");
print ' '.$langs->trans("NotificationsDescUser");
print ' '.$langs->trans("NotificationsDescContact");
print ' '.$langs->trans("NotificationsDescGlobal");
+ print ' ';
print ' ';
- print ' '."\n";
-
-
- // Add notification form
- print load_fiche_titre($langs->trans("AddNewNotification"), '', '');
-
- print ' ';
- print ' ';
+ print ' '."\n";
// List of notifications enabled for contacts
@@ -295,20 +239,60 @@ if ($result > 0)
dol_print_error($db);
}
- // List of active notifications
- print load_fiche_titre($langs->trans("ListOfActiveNotifications").' ('.$num.')', '', '');
+
+ // Add notification form
+ print load_fiche_titre($langs->trans("ListOfActiveNotifications").' ('.$num.')', '', '');
+
+ print ' |