1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-03 04:38:38 -04:00

OFX: Import the most common investment transactions

This is very preliminary support, and is likely to still fail for many
cases - even those with nominal support. Most transaction splits end up
being filed under 'imbalanced' accounts instead of something that makes
more sense.
This commit is contained in:
2017-09-20 20:09:40 -04:00
parent 3727f5b767
commit 89d045a51f
2 changed files with 686 additions and 5 deletions

View File

@ -14,6 +14,7 @@ import (
"time"
)
// Split.Status
const (
Imported int64 = 1
Entered = 2
@ -22,10 +23,25 @@ const (
Voided = 5
)
// Split.ImportSplitType
const (
Default int64 = 0
ImportAccount = 1
SubAccount = 2
ExternalAccount = 3
TradingAccount = 4
Commission = 5
Taxes = 6
Fees = 7
Load = 8
IncomeAccount = 9
)
type Split struct {
SplitId int64
TransactionId int64
Status int64
SplitId int64
TransactionId int64
Status int64
ImportSplitType int64
// One of AccountId and SecurityId must be -1
// In normal splits, AccountId will be valid and SecurityId will be -1. The