mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-04 02:23:26 -05:00 
			
		
		
		
	OFX imports: Remove restriction about account types
...but still update imported Credit Card account type to Liability
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user