From a1c2d72d57cf1ace536dea7cbcdfd08722bc442e Mon Sep 17 00:00:00 2001 From: "brice.l" <103417435+Misteri0nnaire@users.noreply.github.com> Date: Fri, 22 May 2026 10:40:37 +0200 Subject: [PATCH] NEW: Add default_rib field to SQL query and output (#38355) * Change holiday status update to validation Replaced the update method with validate for holiday status in order to update the ref of the created objects. * Add default_rib field to SQL query and output --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 7b9084f71f4..01b44e48633 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5970,7 +5970,7 @@ class Form $langs->loadLangs(array("admin", "banks")); $num = 0; - $sql = "SELECT rowid, label, bank, status, iban_prefix, bic"; + $sql = "SELECT rowid, label, bank, status, iban_prefix, bic, default_rib"; $sql .= " FROM " . $this->db->prefix() . "societe_rib"; $sql .= " WHERE type = 'ban'"; if ($filtre) { @@ -6005,7 +6005,7 @@ class Form } $out .= trim($obj->label); if ($showibanbic) { - $out .= ' (' . $iban . '/' .$obj->bic. ')'; + $out .= ' (' . $iban . '/' .$obj->bic. ')' . ($obj->default_rib ? ' ['.$langs->trans("ByDefault").']' : ''); } $out .= ''; $i++;