diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt index 49ecf275..b8352c19 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -224,11 +224,13 @@ open class FinTsClient @JvmOverloads constructor( balanceResponse.getFirstSegmentById(InstituteSegmentId.Balance)?.let { balance = it.balance } + + if (balanceResponse.didReceiveResponse) { + dialogData.increaseMessageNumber() + } } - dialogData.increaseMessageNumber() - val message = messageBuilder.createGetTransactionsMessage(parameter, bank, customer, product, dialogData) val response = getAndHandleResponseForMessageThatMayRequiresTan(message, bank, customer, dialogData)