Bug 293397

Summary: Error on duplicate account name creation
Product: [Applications] skrooge Reporter: pcollet <pcolletdrive>
Component: generalAssignee: Guillaume DE BURE <guillaume.debure>
Status: RESOLVED FIXED    
Severity: minor CC: stephane
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description pcollet 2012-02-05 23:16:29 UTC
Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

You 've got an error message if you try to had an account name that already exists.

[ERR-5]: La création du compte a échoué
[ERR-10019]: column t_name is not unique Impossible d'extraire la ligne
[ERR-10019]: INSERT INTO account ('t_agency_number','t_comment','t_type','t_name','rd_bank_id','t_number','t_agency_address') VALUES ('','','C','Carte Bleue','1','','') 


Reproducible: Always

Steps to Reproduce:
In account Creation, try to create an account name that already existr


Expected Results:  
..

Why not checking that account name is unique before insert it the table and display a more explicit message ("Account name already exists. Please choose a new account name or click on modify to change account information for that current name")
Comment 1 Stephane MANKOWSKI 2012-02-06 20:59:50 UTC
Git commit 299bdb0b2f950ed37469a072f7ef586bfb98874a by Stephane Mankowski.
Committed on 06/02/2012 at 21:57.
Pushed by smankowski into branch 'Feature'.

M  +1    -0    CHANGELOG
M  +1    -1    plugins/skrooge/skrooge_bank/skgbankpluginwidget.cpp

http://commits.kde.org/skrooge/299bdb0b2f950ed37469a072f7ef586bfb98874a