[Kmymoney-devel] Distinction between Transfer and Splits

Thomas Baumgart thb at net-bembel.de
Thu Feb 12 12:01:34 UTC 2015


Hi,

On Wednesday 11 February 2015 20:36:07 Christian Dávid wrote:

> Hi,
> 
> I was just wondering why KMyMoney has an internal distinction between
> transfers and splits?

I think you mean transactions and splits. Transfers are a special form of 
transactions. The general answer: historical reasons.

> An alternative could be to use splits only. Like in the SQL database now
> they could have a transferId and a splitId. Only the transferId and the
> combination (transferId, splitId) are unique. To display the data all
> splits with the same transferId are grouped to transaction. Just an idea.

Yes, but you cannot eliminate the transaction object as it contains certain 
information which is identical in each split (e.g. dates, currency, ...).

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
If it's there and you can see it, it's real.
If it's there and you can't see it, it's transparent.
If it's not there and you can see it, it's virtual.
If it's not there and you can't see it, it's gone.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20150212/d67481b4/attachment.sig>


More information about the KMyMoney-devel mailing list