[Kmymoney-devel] validation of IBAN?

Alvaro Soliverez asoliverez at kde.org
Mon Nov 7 00:58:06 UTC 2011


On Sun, Nov 6, 2011 at 1:03 PM, <Software at quantentunnel.de> wrote:

> Hi
>
> I recently added a new account to KMyMoney and would have liked to
> validate the IBAN for typos and the like. As this is currently not possible
> in KMyMoney, I wrote a class IbanValidator : public QRegExpValidator that
> first checks a string whether it satisfies the basic, country-dependent
> criteria (length, numeric versus character symbols), then calculates the
> checksum.
>
> Questions to the development team:
> 1. Is such feature worthwhile in KMyMoney?
>

Yes, if it's easy to maintain. I think it's of value to the users.


> 2. If so, would you like to have it as separate "Validate!" button (my
> preference, as this makes validation voluntary; some may enter non-IBAN
> numbers such as US account numbers in the IBAN field) or enforced with a
> validator to the respective line edit?
>
I would go with the Validate! button.


> 3. Where should the templates for the country-specific definitions be
> stored: separate text file read at runtime (benefit: anybody can add if
> his/her preferred country adopts IBAN), in the source code (benefit: no
> setup issue; this is current implementation); or where else?
>
> We have a similar case with the country-specific templates.



> Those interested may have a look at an implementation, including a little
> GUI test application of both options (see question 2, above): source is on
> git://github.com/Al-/IbanValidator.git
>
>
Regards,
Alvaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20111106/92a84122/attachment-0001.html>


More information about the KMyMoney-devel mailing list