Skip to content
Code-Schnipsel Gruppen Projekte
Commit 8b0d88c8 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

refactor: bank account patch -> catch create error

Übergeordneter 67d0699c
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -127,9 +127,13 @@ public static function patchBankAccount()
'default' => true
];
$bankAccount = BankAccounts::addBankAccount($bankAccountData);
try {
$bankAccount = BankAccounts::addBankAccount($bankAccountData);
$Conf->setValue('company', 'bankAccountId', $bankAccount['id']);
} catch (\Exception $Exception) {
QUI\System\Log::writeException($Exception);
}
$Conf->setValue('company', 'bankAccountId', $bankAccount['id']);
$Conf->setValue('bankAccounts', 'isPatched', true);
$Conf->save();
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren