mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-01 12:08:37 -04:00
Move OFX imports from libofx to ofxgo
This makes them native Go code, and will allow for fetching them directly from financial institutions later.
This commit is contained in:
@ -167,12 +167,11 @@ func ImportGnucash(r io.Reader) (*GnucashImport, error) {
|
||||
}
|
||||
}
|
||||
a.Name = ga.Name
|
||||
security, ok := securityMap[ga.Commodity.Name]
|
||||
if ok {
|
||||
if security, ok := securityMap[ga.Commodity.Name]; ok {
|
||||
a.SecurityId = security.SecurityId
|
||||
} else {
|
||||
return nil, fmt.Errorf("Unable to find security: %s", ga.Commodity.Name)
|
||||
}
|
||||
a.SecurityId = security.SecurityId
|
||||
|
||||
//TODO find account types
|
||||
switch ga.Type {
|
||||
|
Reference in New Issue
Block a user