https://bugs.kde.org/show_bug.cgi?id=498703
Bug ID: 498703 Summary: Kmymoney crashes when posting NEW stock purchases if the transaction-date pre-dates the stock's creation date. Classification: Applications Product: kmymoney Version: 5.1.3 Platform: openSUSE OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: general Assignee: kmymoney-devel@kde.org Reporter: vanques...@gmail.com Target Milestone: --- This is a revival of bug 418479 which appeared to be resolved in kmymoney-5.1-291-linux-64-gcc.AppImage but has reappeared for me in 5.1.3_fa1eab719 SUMMARY It is not unusual to post a transaction to Kmymoney some days after the physical transaction occurred (i.e on a prior date). The creation date for NEW securities (kmmAccounts.openingDate) is set automatically to the system date and cannot be changed by the user. When the user subsequently posts the purchase transaction with a date earlier than the stock's creation date, Kmymoney crashes gracelessly. In my case this was for security denominated in a new foreign currency (DKK) but the previous bug applied to base currency securities as well. I have tried creating a price for the security on the transaction date - BEFORE posting the transaction but without success Only manually amending kmmAccounts.openingDate in the database resolves the crash. Perhaps it would be possible to add an amendable "creation date" field the Add New Security dialog so users can amend the date? STEPS TO REPRODUCE 1. Create a new security 2. Post a purchase transaction with a date prior to today's date OBSERVED RESULT User can go as far as posting all the transaction fields required including forex rates but as soon as you commit the transaction, kmymoney crashes. EXPECTED RESULT Either the system should not take exception to transaction date prior to the security creation date or the user should be able to set the security creation date SOFTWARE/OS VERSIONS Linux/KDE Plasma: opensuse 15.5 KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION -- You are receiving this mail because: You are the assignee for the bug.