From 1c5d75981696c65cd4ad8fd23e5468a778be823b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Sep 2024 14:26:44 +0200 Subject: [PATCH] Doc --- htdocs/compta/prelevement/class/bonprelevement.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/prelevement/class/bonprelevement.class.php b/htdocs/compta/prelevement/class/bonprelevement.class.php index c8156e34d1cb7..d0a2bc321e70e 100644 --- a/htdocs/compta/prelevement/class/bonprelevement.class.php +++ b/htdocs/compta/prelevement/class/bonprelevement.class.php @@ -1057,7 +1057,9 @@ public function create($banque = 0, $agence = 0, $mode = 'real', $format = 'ALL' $sql .= " FROM " . MAIN_DB_PREFIX . "salary as f"; $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "prelevement_demande as pd ON f.rowid = pd.fk_salary"; $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "user as s ON s.rowid = f.fk_user"; - $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "user_rib as sr ON s.rowid = sr.fk_user"; // TODO Add AND sr.default_rib = 1 here. UPDATE 5 sep 2024: the column has been created in llx_user_rib and default to 0 + $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "user_rib as sr ON s.rowid = sr.fk_user"; + // TODO Add 'AND sr.default_rib = 1' here. Note: the column has been created in v21 in llx_user_rib and default to 0 + // If we add a test on sr.default_rib = 1, we must also check we have a correct error management to stop if no default BAN is found. } if ($sourcetype != 'salary') { if ($type != 'bank-transfer') {