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:
parent
bc2a6c68f0
commit
a1c2d72d57
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue