mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-30 07:40:05 -04:00
OFX imports: Remove restriction about account types
...but still update imported Credit Card account type to Liability
This commit is contained in:
parent
0095015053
commit
ecf271732e
@ -66,13 +66,6 @@ func ofxImportHelper(r io.Reader, w http.ResponseWriter, user *User, accountid i
|
||||
return
|
||||
}
|
||||
|
||||
if account.Type != importedAccount.Type {
|
||||
sqltransaction.Rollback()
|
||||
WriteError(w, 3 /*Invalid Request*/)
|
||||
log.Printf("Expected %s account, found %s in OFX file", account.Type.String(), importedAccount.Type.String())
|
||||
return
|
||||
}
|
||||
|
||||
// Find matching existing securities or create new ones for those
|
||||
// referenced by the OFX import. Also create a map from placeholder import
|
||||
// SecurityIds to the actual SecurityIDs
|
||||
|
Loading…
Reference in New Issue
Block a user