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
This commit is contained in:
brice.l 2026-05-22 10:40:37 +02:00 committed by GitHub
parent bc2a6c68f0
commit a1c2d72d57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 .= '</option>';
$i++;