[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kmymoney/4.6] kmymoney: BUG: 293430
From:       Thomas Baumgart <thb () net-bembel ! de>
Date:       2012-02-06 19:50:08
Message-ID: 20120206195008.309C3A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 8ceb9f5d52d22be269706d404c4db4c5af321845 by Thomas Baumgart.
Committed on 06/02/2012 at 20:44.
Pushed by tbaumgart into branch '4.6'.

BUG: 293430

Correct post date of opening balance transaction
when the opening date changes.
(cherry picked from commit 720d999a079375d8b1c5215dfb4c774a94417cb4)

M  +1    -0    kmymoney/kmymoney.cpp

http://commits.kde.org/kmymoney/8ceb9f5d52d22be269706d404c4db4c5af321845

diff --git a/kmymoney/kmymoney.cpp b/kmymoney/kmymoney.cpp
index 63e6f14..adea59b 100644
--- a/kmymoney/kmymoney.cpp
+++ b/kmymoney/kmymoney.cpp
@@ -3550,6 +3550,7 @@ void KMyMoneyApp::slotAccountEdit(void)
               s1.setShares(-bal);
               s1.setValue(-bal);
               t.modifySplit(s1);
+              t.setPostDate(account.openingDate());
               file->modifyTransaction(t);
 =

             } else if (tid.isEmpty() && !dlg->openingBalance().isZero()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic