1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-01 20:08:39 -04:00

Add Initial Gnucash importing

There are still a number of bugs, but the basic functionality is there
This commit is contained in:
2016-02-15 11:28:44 -05:00
parent fcf6b2f1a4
commit 9e26b30bdc
9 changed files with 571 additions and 162 deletions

View File

@ -25,11 +25,11 @@ import (
)
type ImportObject struct {
TransactionList ImportTransactionsList
TransactionList OFXImport
Error error
}
type ImportTransactionsList struct {
type OFXImport struct {
Account *Account
Transactions *[]Transaction
TotalTransactions int64
@ -249,7 +249,7 @@ func OFXTransactionCallback(transaction_data C.struct_OfxTransactionData, data u
return 0
}
func ImportOFX(filename string, account *Account) (*ImportTransactionsList, error) {
func ImportOFX(filename string, account *Account) (*OFXImport, error) {
var a Account
var t []Transaction
var iobj ImportObject