[kmymoney4] [Bug 370290] It is impossible to setup a dedicated opening balance account

Ralf Habacker bugzilla_noreply at kde.org
Wed Jun 7 06:47:51 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=370290

Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Latest Commit|                            |https://commits.kde.org/kmy
                   |                            |money/e01a94f28c771f76f8a9b
                   |                            |1490c0e478edb23328f
         Resolution|---                         |FIXED

--- Comment #5 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit e01a94f28c771f76f8a9b1490c0e478edb23328f by Ralf Habacker.
Committed on 07/06/2017 at 06:46.
Pushed by habacker into branch '4.8'.

Add support to use a dedicated opening balance account.

With recent implementation kmymoney is not able to use a
dedicated account for opening balances. Instead it (creates)
and uses an opening balance account with the translated name
of "Opening Balances" which may be language specific.

To specify an opening balance account to be used on adding new
accounts one way of operation is to set the "opening balance
account" flag in the account editor for equity accounts.

This is enabled if no other account contains this flag. Also
changing the state of the flag is only possible if no transactions
are assigned to the account having this flag.

Another way to use this support is to flag an opening balance
account in a kmymoney account template file.

On creating a new kmymoney file the "opening balance account"
flag is imported from a template account flag if specified
in the following form:

<account type="16" name="9000 Saldovortragskonten">
   <flag name="OpeningBalanceAccount"/>
</account>

The template admin needs to make sure that only one template account
has this flag set.

Exporting the current kmymoney file to an account template exports
this flag too.

If there is at least one dedicate opening balance account in a kmymoney
file the name will be used as template for adding additional currency
related opening balance accounts in the same hierachy level as the
referenced opening balance account. On the search all accounts having
a currency postfix '(XXX)' are ignored.
REVIEW:130143

M  +10   -0    kmymoney/converter/mymoneytemplate.cpp
M  +50   -0    kmymoney/dialogs/knewaccountdlg.cpp
M  +2    -0    kmymoney/dialogs/knewaccountdlg.h
M  +76   -18   kmymoney/dialogs/knewaccountdlgdecl.ui
M  +7    -7    kmymoney/kmymoney.cpp
M  +34   -6    kmymoney/mymoney/mymoneyfile.cpp
M  +1    -1    kmymoney/mymoney/storage/mymoneystorageanon.cpp
M  +1    -0    kmymoney/reports/objectinfotable.cpp
M  +4    -1    kmymoney/reports/reportstestcommon.cpp
M  +1    -1    kmymoney/reports/reportstestcommon.h
M  +3    -1    kmymoney/templates/de_DE/skr03.kmt
M  +3    -1    kmymoney/templates/de_DE/skr04.kmt

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list