From 0904212c0be4c54439e228e58849504d7c771d31 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Fri, 15 Jan 2021 14:19:41 +0100 Subject: [PATCH] Better works --- htdocs/core/class/html.formaccounting.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formaccounting.class.php b/htdocs/core/class/html.formaccounting.class.php index 038d64419b3..21776d5bef3 100644 --- a/htdocs/core/class/html.formaccounting.class.php +++ b/htdocs/core/class/html.formaccounting.class.php @@ -365,8 +365,7 @@ class FormAccounting extends Form $sql = "SELECT DISTINCT code_compta, nom "; $sql .= " FROM ".MAIN_DB_PREFIX."societe"; $sql .= " WHERE entity IN (".getEntity('societe').")"; - $sql .= " AND client = 1"; // only type customer - $sql .= " OR client = 3"; // or type customer and prospect + $sql .= " AND client IN (1 ,3)"; // only type customer or type customer/prospect $sql .= " ORDER BY code_compta"; dol_syslog(get_class($this)."::select_auxaccount", LOG_DEBUG);