From 3de82ad345f90ea8cc79d9bccce06761edb49c9f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Mar 2019 12:27:31 +0100 Subject: [PATCH] Prepare removal of duplicate page --- htdocs/societe/list.php | 2 +- htdocs/takepos/customers.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index c716604fd7c..4b9e83461ea 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -150,7 +150,7 @@ if (! empty($conf->global->THIRDPARTY_QUICKSEARCH_ON_FIELDS)) $fieldstosearchall // Define list of fields to show into list -$checkedcustomercode=(in_array($contextpage, array('thirdpartylist', 'customerlist', 'prospectlist')) ? 1 : 0); +$checkedcustomercode=(in_array($contextpage, array('thirdpartylist', 'customerlist', 'prospectlist', 'poslist')) ? 1 : 0); $checkedsuppliercode=(in_array($contextpage, array('supplierlist')) ? 1 : 0); $checkedcustomeraccountcode=(in_array($contextpage, array('customerlist')) ? 1 : 0); $checkedsupplieraccountcode=(in_array($contextpage, array('supplierlist')) ? 1 : 0); diff --git a/htdocs/takepos/customers.php b/htdocs/takepos/customers.php index 6bb96e478d3..d32ae82e25d 100644 --- a/htdocs/takepos/customers.php +++ b/htdocs/takepos/customers.php @@ -27,7 +27,8 @@ /** * \file htdocs/takepos/customers.php * \ingroup takepos - * \brief Page to show list of third parties. TODO Merge with societe/list.php + * \brief Page to show list of third parties. + * TODO replace use of this page by societe/list.php?contextpage=poslist */ require '../main.inc.php'; // Load $user and permissions @@ -168,7 +169,7 @@ if (($tmp = $langs->transnoentities("ProfId6".$mysoc->country_code)) && $tmp != if (!empty($conf->barcode->enabled)) $fieldstosearchall['s.barcode']='Gencod'; // Define list of fields to show into list -$checkedcustomercode=(in_array($contextpage, array('thirdpartylist', 'customerlist', 'prospectlist')) ? 1 : 0); +$checkedcustomercode=(in_array($contextpage, array('thirdpartylist', 'customerlist', 'prospectlist', 'poslist')) ? 1 : 0); $checkedsuppliercode=(in_array($contextpage, array('supplierlist')) ? 1 : 0); $checkedcustomeraccountcode=(in_array($contextpage, array('customerlist')) ? 1 : 0); $checkedsupplieraccountcode=(in_array($contextpage, array('supplierlist')) ? 1 : 0);