<br><br><div class="gmail_quote">On Sun, Nov 6, 2011 at 1:03 PM,  <span dir="ltr"><<a href="mailto:Software@quantentunnel.de">Software@quantentunnel.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi<br>
<br>
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.<br>

<br>
Questions to the development team:<br>
1. Is such feature worthwhile in KMyMoney?<br></blockquote><div><br>Yes, if it's easy to maintain. I think it's of value to the users.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

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?<br>
</blockquote><div>I would go with the Validate! button.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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?<br>

<br></blockquote><div>We have a similar case with the country-specific templates.<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

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://<a href="http://github.com/Al-/IbanValidator.git" target="_blank">github.com/Al-/IbanValidator.git</a><br>

<br></blockquote><div><br>Regards,<br>Alvaro<br> </div></div>