Added currency to constructor overload

This commit is contained in:
dankito 2020-06-23 17:52:53 +02:00
parent b5cb401636
commit 1007636a8e
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ class LuceneRemitteeSearcherTest {
private val Amount = BigDecimal.valueOf(123.45)
private val bankAccountMock = BankAccount(mock(Customer::class.java), "", "", null, null)
private val bankAccountMock = BankAccount(mock(Customer::class.java), "", "", null, null, "")
private val dateFormat = SimpleDateFormat("dd.MM.yyyy")
@ -211,7 +211,7 @@ class LuceneRemitteeSearcherTest {
otherPartyName: String = randomString(), otherPartyBankCode: String = randomString(),
otherPartyAccountId: String = randomString(), usage: String = randomString()): AccountTransaction {
return AccountTransaction(bankAccount, amount, usage, bookingDate, otherPartyName, otherPartyBankCode, otherPartyAccountId, null, bookingDate)
return AccountTransaction(bankAccount, amount, "EUR", usage, bookingDate, otherPartyName, otherPartyBankCode, otherPartyAccountId, null, bookingDate)
}
private fun randomString(): String {

View File

@ -54,10 +54,10 @@ open class AccountTransaction(
}
constructor(bankAccount: BankAccount, amount: BigDecimal, unparsedUsage: String, bookingDate: Date,
constructor(bankAccount: BankAccount, amount: BigDecimal, currency: String, unparsedUsage: String, bookingDate: Date,
otherPartyName: String?, otherPartyBankCode: String?, otherPartyAccountId: String?,
bookingText: String?, valueDate: Date)
: this(bankAccount, amount, "EUR", unparsedUsage, bookingDate,
: this(bankAccount, amount, currency, unparsedUsage, bookingDate,
otherPartyName, otherPartyBankCode, otherPartyAccountId, bookingText, valueDate,
0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "", "", null, null, "", null)