Bug 416410

Summary: Add a recuring transaction - loss of input if we forget the source account
Product: [Applications] kmymoney Reporter: Philippe Debrabant <debrabant.philippe>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.0.7   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.8
Sentry Crash Report:

Description Philippe Debrabant 2020-01-18 07:30:49 UTC
SUMMARY

STEPS TO REPRODUCE
1. Add a recuring transaction.
2. Enter frequencee, payee, category, date and amount. Don't select the source account.
3. Validate

OBSERVED RESULT
Once we have validate the dialog box, there's the normal message (french config) : Impossible d'ajouter l'opération récurrente : Cannot add split that does not contain an account reference /.../kmymoney/kmymoney-5.0.7/kmymoney/mymoney/mymoneytransaction.cpp:214

Once validate the error message, the dialog box is re-displayed but all the input fields are cleared.

EXPECTED RESULT

Once validate the error message, the dialog box is re-displayed with all the input fields with their user value.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2020-01-18 13:31:33 UTC
Git commit f9bc63cd63408f2fe0c9c467c3e344d065bc4935 by Thomas Baumgart.
Committed on 18/01/2020 at 13:25.
Pushed by tbaumgart into branch '5.0'.

Prevent creation of schedules that are not assigned to an account
FIXED-IN: 5.0.8

M  +1    -1    kmymoney/dialogs/keditscheduledlg.cpp
M  +15   -4    kmymoney/widgets/kguiutils.cpp
M  +9    -0    kmymoney/widgets/kguiutils.h

https://commits.kde.org/kmymoney/f9bc63cd63408f2fe0c9c467c3e344d065bc4935
Comment 2 Thomas Baumgart 2020-01-18 13:31:41 UTC
Git commit ae25b72b0683e25d7896b19a33ff6418af2ce13e by Thomas Baumgart.
Committed on 18/01/2020 at 13:31.
Pushed by tbaumgart into branch 'master'.

Prevent creation of schedules that are not assigned to an account
FIXED-IN: 5.0.8
(cherry picked from commit f9bc63cd63408f2fe0c9c467c3e344d065bc4935)

M  +1    -1    kmymoney/dialogs/keditscheduledlg.cpp
M  +15   -4    kmymoney/widgets/kguiutils.cpp
M  +9    -0    kmymoney/widgets/kguiutils.h

https://commits.kde.org/kmymoney/ae25b72b0683e25d7896b19a33ff6418af2ce13e