Bug 347436 - Cannot create transaction if I changed in the past the account's opening date
Summary: Cannot create transaction if I changed in the past the account's opening date
Status: RESOLVED DUPLICATE of bug 347400
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 16:19 UTC by Francescu Garoby
Modified: 2015-11-05 20:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francescu Garoby 2015-05-08 16:19:40 UTC
I opened a new account the 2015/07/23, but created my KMyMoney file today (2015/05/08).  I changed the account's opening date to 2015/07/23, but it didn't change the categories opening date (still 2015/05/08). So I can't create a transaction between the account's opening date and today.
If I change the category's opening date to 2014/07/23 (like the account's opening date), I can create a transaction.

Reproducible: Always

Steps to Reproduce:
1. create a new account
2. change its opening date in the past
3. create a transaction with a date between the account's opening date and today.

Actual Results:  
* An error message appears : "Cannot enter transaction with postdate prior to account's opening date."
* the "Enter" button is desactivated

Expected Results:  
I can create a transaction

The error message is wrong : the transaction is not prior to the account's opening date but prior the category's opening date.

Why the categories have an opening date ? Is it really useful ? I think the categories shouldn't have an opening date, by default. 
But if necessary, the user can add an opening date (posterior to the account's opening date, of course).
Comment 1 Gilberto Caetano de Andrade 2015-05-08 18:48:07 UTC
(In reply to Francescu Garoby from comment #0)
> I opened a new account the 2015/07/23, but created my KMyMoney file today
> (2015/05/08).  I changed the account's opening date to 2015/07/23, but it
> didn't change the categories opening date (still 2015/05/08). So I can't
> create a transaction between the account's opening date and today.
> If I change the category's opening date to 2014/07/23 (like the account's
> opening date), I can create a transaction.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. create a new account
> 2. change its opening date in the past
> 3. create a transaction with a date between the account's opening date and
> today.
> 
> Actual Results:  
> * An error message appears : "Cannot enter transaction with postdate prior
> to account's opening date."
> * the "Enter" button is desactivated
> 
> Expected Results:  
> I can create a transaction
> 
> The error message is wrong : the transaction is not prior to the account's
> opening date but prior the category's opening date.
> 
> Why the categories have an opening date ? Is it really useful ? I think the
> categories shouldn't have an opening date, by default. 
> But if necessary, the user can add an opening date (posterior to the
> account's opening date, of course).

Please take a look at this discussion https://bugs.kde.org/show_bug.cgi?id=313793#c25
I also think this is regression and the user should make the decision whether it is automatic or not.
Comment 2 Thomas Baumgart 2015-05-10 11:48:23 UTC

*** This bug has been marked as a duplicate of bug 347400 ***
Comment 3 flywire 2015-11-05 20:24:41 UTC
*** No. Not a duplicate of bug 347400 *** and a better description.

*** Not fixed  in V4.7.2 on Win7-32 ***