';
}
- // If the user can view prospects other than his'
+ // If the user can view other products/services than his own
if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire && ($user->rights->produit->lire || $user->rights->service->lire)) {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '
';
}
+ // If Categories are enabled & user has rights to see
if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '
';
}
+
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
+
// Fields from hook
$parameters = array('arrayfields'=>$arrayfields);
$reshook = $hookmanager->executeHooks('printFieldListOption', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
+
// Date creation
if (!empty($arrayfields['c.datec']['checked'])) {
print '
';
@@ -1775,8 +1793,10 @@ if ($resql) {
),
'pos' => array(),
);
+
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
+
// Hook fields
$parameters = array(
'arrayfields' => $arrayfields,
@@ -1976,6 +1996,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Alias name
if (!empty($arrayfields['s.name_alias']['checked'])) {
print '
';
@@ -1985,6 +2006,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Town
if (!empty($arrayfields['s.town']['checked'])) {
print '
';
@@ -1994,6 +2016,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Zip
if (!empty($arrayfields['s.zip']['checked'])) {
print '
';
@@ -2003,6 +2026,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// State
if (!empty($arrayfields['state.nom']['checked'])) {
print "
".$obj->state_name."
\n";
@@ -2010,6 +2034,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Country
if (!empty($arrayfields['country.code_iso']['checked'])) {
print '
';
@@ -2020,6 +2045,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Type ent
if (!empty($arrayfields['typent.code']['checked'])) {
print '
';
@@ -2046,6 +2072,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Plannned date of delivery
if (!empty($arrayfields['c.date_delivery']['checked'])) {
print '
';
@@ -2055,6 +2082,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Shipping Method
if (!empty($arrayfields['c.fk_shipping_method']['checked'])) {
print '
';
@@ -2064,6 +2092,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Payment terms
if (!empty($arrayfields['c.fk_cond_reglement']['checked'])) {
print '
';
@@ -2073,6 +2102,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Payment mode
if (!empty($arrayfields['c.fk_mode_reglement']['checked'])) {
print '
';
@@ -2082,6 +2112,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
+
// Channel
if (!empty($arrayfields['c.fk_input_reason']['checked'])) {
print '
';
From 9a7ad0a7dca6737606ec2beda0d7f2a613017d4c Mon Sep 17 00:00:00 2001
From: stickler-ci
Date: Thu, 1 Sep 2022 19:17:42 +0000
Subject: [PATCH 2/2] Fixing style errors.
---
htdocs/commande/list.php | 58 +++++++++++++++++++---------------------
1 file changed, 28 insertions(+), 30 deletions(-)
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 1363d9bd953..22afe05725f 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -1075,7 +1075,7 @@ if ($resql) {
exit;
}
- llxHeader('', $title, $help_url);
+ llxHeader('', $title, $help_url);
$param = '';
@@ -1361,7 +1361,7 @@ if ($resql) {
$moreforfilter .= img_picto($tmptitle, 'category', 'class="pictofixedwidth"').$form->selectarray('search_product_category', $cate_arbo, $search_product_category, $tmptitle, 0, 0, '', 0, 0, 0, 0, 'maxwidth300 widthcentpercentminusx', 1);
$moreforfilter .= '';
}
- // If Categories are enabled & user has rights to see
+ // If Categories are enabled & user has rights to see
if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire) {
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter .= '
';
@@ -1533,9 +1533,8 @@ if ($resql) {
print '';
print '';
}
- // Total Amount (TTC / gross)
+ // Total Amount (TTC / gross)
if (!empty($arrayfields['c.total_ttc']['checked'])) {
-
print '
';
print '';
print '
';
@@ -1554,7 +1553,6 @@ if ($resql) {
}
// Amount HT/net in foreign currency
if (!empty($arrayfields['c.multicurrency_total_ht']['checked'])) {
-
print '
';
print '';
print '
';
@@ -1597,15 +1595,15 @@ if ($resql) {
print '
';
print '
';
}
-
+
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
-
+
// Fields from hook
$parameters = array('arrayfields'=>$arrayfields);
$reshook = $hookmanager->executeHooks('printFieldListOption', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
-
+
// Date creation
if (!empty($arrayfields['c.datec']['checked'])) {
print '
';
@@ -1793,10 +1791,10 @@ if ($resql) {
),
'pos' => array(),
);
-
+
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
-
+
// Hook fields
$parameters = array(
'arrayfields' => $arrayfields,
@@ -1996,7 +1994,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// Alias name
if (!empty($arrayfields['s.name_alias']['checked'])) {
print '
';
@@ -2006,7 +2004,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// Town
if (!empty($arrayfields['s.town']['checked'])) {
print '
';
@@ -2016,7 +2014,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// Zip
if (!empty($arrayfields['s.zip']['checked'])) {
print '
';
@@ -2026,7 +2024,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// State
if (!empty($arrayfields['state.nom']['checked'])) {
print "
".$obj->state_name."
\n";
@@ -2034,7 +2032,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// Country
if (!empty($arrayfields['country.code_iso']['checked'])) {
print '
';
@@ -2045,7 +2043,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// Type ent
if (!empty($arrayfields['typent.code']['checked'])) {
print '
';
@@ -2072,7 +2070,7 @@ if ($resql) {
$totalarray['nbfield']++;
}
}
-
+
// Plannned date of delivery
if (!empty($arrayfields['c.date_delivery']['checked'])) {
print '