Fixed that if creditorIban is empty, then empty search result overrides creditorBic
This commit is contained in:
parent
b571fc2398
commit
80680a16b6
|
@ -198,8 +198,11 @@ open class TransferMoneyDialog : DialogFragment() {
|
|||
preselectedValues?.let { data ->
|
||||
rootView.edtxtRemitteeName.setText(data.creditorName)
|
||||
|
||||
if (data.creditorIban.isNotBlank()) { // set only if creditorIban has a value as otherwise creditorBic would be overridden by empty search result
|
||||
rootView.edtxtRemitteeIban.setText(data.creditorIban)
|
||||
}
|
||||
|
||||
// a little bit inconsistent as if IBAN is not set bank's name won't be displayed even though it can be retrieved by BIC
|
||||
rootView.edtxtRemitteeBic.setText(data.creditorBic)
|
||||
|
||||
if (data.amount > BigDecimal.ZERO) {
|
||||
|
|
Loading…
Reference in New Issue