-
Notifications
You must be signed in to change notification settings - Fork 78
Multi-split.csv Transfer_Account field #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable
Are you sure you want to change the base?
Conversation
Should be Transfer Account field not Account field.
|
|
||
| <listitem> | ||
| <para>account and deposit/withdrawal as bare minimum. | ||
| <para>account (may set base account), transfer account and deposit/withdrawal as bare minimum. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The transfer account is optional. If not set, gnucash will attempt to guess it based on already existing transactions with or without bayesian heuristics. An account (or the base account) on the other hand is mandatory.
| <example> | ||
| <title>Sample Multi-split.csv</title> | ||
| <programlisting language="csv">Date,Description,Deposit,Account | ||
| <programlisting language="csv">Date,Description,Deposit,Transfer_Account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In multi-split mode, Transfer Account is not a selectable column type. You can only select Account from the list.
|
@flywire, linking to a mailing list thread doesn't in any way resolve @gjanssens review comments. Are you going to fix them? |
|
I will address this, but it requires further consideration and some rework next year. My current understanding is that, by default, the CSV import module operates with a single-entry accounting file, while the Multi-split option is intended for a double-entry accounting file. Although a double-entry file supports splits, the emphasis should remain on double-entry accounting rather than on the split structure itself. I need to examine the handling of single-entry files and splits in more detail before finalising this. The term Multi-split is used minimally within the software and documentation, but the community appears to recognise it, albeit with varying interpretations. Another aspect worth noting is that, although a simple double-entry transaction involving two accounts is not formally considered a split (each side posts to a single account), each account entry is still represented internally as a split in the code. This appears to align with the understanding of some community members. |
|
@flywire, if you're getting tripped up over multi-split, think of it in terms of the register: Basic and Transaction Journal. A single line per transaction file can import only two splits per transaction: One to the Account and the other to the Transfer Account. If there's no Account column GnuCash allows you to set the Account field in the assistant page; if there's no Transfer Account column GnuCash will use the Generic Import Matcher to let the user record the account for that split and if they don't then the other split is to the imbalance account. |
|
@gjanssens and others. Can you check and comment on logic, technical and/or style? These changes would need to go into the CSV Importer and be reflected in the docs. Overview The GnuCash CSV Importer UI and docs are confusing because the terminology is not clear and the Account field (for single-line mode) appears before the Multi-split checkbox decision point that determines the import mode. Single-line mode (one line = one transaction, two accounts):
Multi-line mode (one line = one split, 2+ accounts):
Every transaction needs: Date, Description, Amount(s), Account(s). Single-line/Multi-line terms are equivalent to Simple/Split Transaction terms used in the Guide for 2/2+ accounts respectively and also related to Register View styles for Basic Ledger and Transaction Journal. References:
Proposed UI changes:
Multi-line tooltip-text:
Account tooltip-text: Apply a single source account to all imported transactions. The other side of the transaction can be provided in a Transfer Account column, or left for the Import Matcher to assign. |
Should be Transfer Account field not Account field.