Merge pull request #3260 from wiz/fix-japan-bank-account-gui-further

Remove extra field from JapanBankTransferForm::addFormForBuyer()
This commit is contained in:
Christoph Atteneder 2019-09-14 21:06:15 +02:00 committed by GitHub
commit b1e2483b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,25 +77,17 @@ public class JapanBankTransferForm extends PaymentMethodForm
{
JapanBankAccountPayload japanBankAccount = ((JapanBankAccountPayload) paymentAccountPayload);
addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow,
Res.get("payment.account.owner"),
((JapanBankAccountPayload) paymentAccountPayload).getBankName());
String bankText = japanBankAccount.getBankCode() + " " + japanBankAccount.getBankName();
TextField bankTextField = addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.japan.bank"), bankText).second;
bankTextField.setEditable(false);
addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.japan.bank"), bankText);
String branchText = japanBankAccount.getBankBranchCode() + " " + japanBankAccount.getBankBranchName();
TextField branchTextField = addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.japan.branch"), branchText).second;
branchTextField.setEditable(false);
addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.japan.branch"), branchText);
String accountText = japanBankAccount.getBankAccountType() + " " + japanBankAccount.getBankAccountNumber();
TextField accountTextField = addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("payment.japan.account"), accountText).second;
accountTextField.setEditable(false);
addCompactTopLabelTextFieldWithCopyIcon(gridPane, ++gridRow, Res.get("payment.japan.account"), accountText);
String accountNameText = japanBankAccount.getBankAccountName();
TextField accountNameTextField = addCompactTopLabelTextField(gridPane, gridRow, 1, Res.get("payment.japan.recipient"), accountNameText).second;
accountNameTextField.setEditable(false);
addCompactTopLabelTextFieldWithCopyIcon(gridPane, gridRow, 1, Res.get("payment.japan.recipient"), accountNameText);
return gridRow;
} // }}}