Lien comptes courants / enveloppes
This commit is contained in:
1 parent
f507163369
commit
9591ae400e
13 files changed
+202
-79
No files matched your search
@@ -342,7 +342,7 @@ export default function Investissements() {
|
||||
.then(comptes => {
|
||||
setComptesInvestisseur(comptes);
|
||||
if (form.methode_remboursement === 'compte_courant' && !form.compte_id) {
|
||||
const def = comptes.find(c => c.type === 'compte_courant') ?? comptes[0];
|
||||
const def = comptes.find(c => c.compte_reglement_par_defaut) ?? comptes[0];
|
||||
if (def) setForm(f => ({ ...f, compte_id: String(def.id), nom_compte_courant: def.nom }));
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user