change type name

This commit is contained in:
MaysWind
2024-10-28 22:43:17 +08:00
parent c372272394
commit 50fc0783d4
2 changed files with 14 additions and 14 deletions
+9 -9
View File
@@ -28,7 +28,7 @@ var ofxTransactionSupportedColumns = map[datatable.TransactionDataTableColumn]bo
// ofxTransactionData defines the structure of open financial exchange (ofx) transaction data
type ofxTransactionData struct {
ofxBasicStatementTransaction
ofxBaseStatementTransaction
DefaultCurrency string
FromAccountId string
ToAccountId string
@@ -243,10 +243,10 @@ func createNewOFXTransactionDataTable(file *ofxFile) (*ofxTransactionDataTable,
}
allData = append(allData, &ofxTransactionData{
ofxBasicStatementTransaction: bankTransactions[i].ofxBasicStatementTransaction,
DefaultCurrency: statement.DefaultCurrency,
FromAccountId: fromAccountId,
ToAccountId: toAccountId,
ofxBaseStatementTransaction: bankTransactions[i].ofxBaseStatementTransaction,
DefaultCurrency: statement.DefaultCurrency,
FromAccountId: fromAccountId,
ToAccountId: toAccountId,
})
}
}
@@ -271,10 +271,10 @@ func createNewOFXTransactionDataTable(file *ofxFile) (*ofxTransactionDataTable,
}
allData = append(allData, &ofxTransactionData{
ofxBasicStatementTransaction: bankTransactions[i].ofxBasicStatementTransaction,
DefaultCurrency: statement.DefaultCurrency,
FromAccountId: fromAccountId,
ToAccountId: toAccountId,
ofxBaseStatementTransaction: bankTransactions[i].ofxBaseStatementTransaction,
DefaultCurrency: statement.DefaultCurrency,
FromAccountId: fromAccountId,
ToAccountId: toAccountId,
})
}
}