Phase 2 commits - order of performed checks
Ralf Habacker
ralf.habacker at freenet.de
Wed Aug 19 13:21:31 BST 2020
Am 08.08.20 um 05:28 schrieb Prasun Kumar:
> Hi mentors,
>
> Commits:
> https://sourceforge.net/u/prasun/ktoblzcheck-gsoc2020/commit_browser
>
@@ -389,6 +389,21 @@ AccountNumberCheck::check(const string &bankId,
const string &accountId,
return OK;
}
+
+ if(country == "CH"){
+ try{
+ Record rec = findBank(bankId);
+ } catch (int){
+ return BANK_NOT_KNOWN;
+ }
+
+ if (accountId.size() > 12 || bankId.size() != 5) {
+ return ERROR;
+ }
The order of this check assumes that a bank not in the database does not
exist, where it may be possible that it exists, but is not included in
the database (for example, if it has been opened recently) and has valid
bank and account id.
Regards
Ralf
More information about the Kde-finance-apps
mailing list