Skip to content

Commit

Permalink
Merge pull request #3260 from wiz/fix-japan-bank-account-gui-further
Browse files Browse the repository at this point in the history
Remove extra field from JapanBankTransferForm::addFormForBuyer()
  • Loading branch information
ripcurlx authored Sep 14, 2019
2 parents f9687ad + cf21580 commit b1e2483
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,17 @@ public static int addFormForBuyer(GridPane gridPane, int gridRow, // {{{
{
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;
} // }}}
Expand Down

0 comments on commit b1e2483

Please sign in to comment.