Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account number label in Swedish fix #3645

Closed
wants to merge 3 commits into from
Closed

Account number label in Swedish fix #3645

wants to merge 3 commits into from

Conversation

rafaelpac
Copy link
Contributor

Fixes #3641
According to this issue, the label "Bankgiro number", as it was hardcoded in BankUtil.java, should not be used in Sweden.
The label "Kontonummer" is the correct one to be used in Sweden and Norway.

Account number validation is implemented to Norwegian accounts in AccountNrValidator.java.
There is no validation implemented to Swedish accounts, so nothing to change there.
If account validation for Sweden is needed, a different method would be needed (see Wikipedia reference below):

image

@ghost
Copy link

ghost commented Nov 20, 2019

Swedish account validation checks that the account number consists of:

11 or 13 or 15 decimal digits.

@ripcurlx
Copy link
Contributor

@rafaelpac Could you please resolve the conflict with BankUtil and update your commit messages to follow https://chris.beams.io/posts/git-commit/#7-rules - we know that you updated BankUtil.java 😉 . Thanks!

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ripcurlx
Copy link
Contributor

And please squash it into one commit in that case.

@camahama
Copy link

Hoping this is the correct way and place to post this bug. When I try to register a new SEPA account (Swedish Skandiabanken), the SAVE NEW ACCOUNT button remains grey and unclickable. No error messages. The same account has worked previously. Running Bisq v. 1.2.3.

@ghost
Copy link

ghost commented Nov 21, 2019

@camahama
This is not the right place but it looks like a bug, because when you toggle SEK/EUR drop-down menu the grey out disappears.

@rafaelpac
Copy link
Contributor Author

rafaelpac commented Nov 27, 2019

I'm sorry... I can't find how to change the commit message. I think it is not doable in the web interface, right?

@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 6, 2019

I'm sorry... I can't find how to change the commit message. I think it is not doable in the web interface, right?

You have to change your commit history locally and force push your changes to your remote PR branch.
See https://www.internalpointers.com/post/squash-commits-into-one-git for reference how to do it.

@@ -157,9 +157,9 @@ public static String getAccountNrLabel(String countryCode) {
case "HK":
return Res.get("payment.accountNr");
case "NO":
return "Kontonummer"; // do not translate as it is used in Norwegian only
return "Kontonummer"; // do not translate as it is used in norwegian and swedish only
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it looks like the label is exactly the same I think we could merge those two cases.

@ripcurlx
Copy link
Contributor

ripcurlx commented Jan 2, 2020

I'm sorry... I can't find how to change the commit message. I think it is not doable in the web interface, right?

@rafaelpac Besides my comment on the cases here is how you squash multiple commits into one locally: https://www.internalpointers.com/post/squash-commits-into-one-git

@rafaelpac
Copy link
Contributor Author

I'm sorry, I completely forgot about this PR.
This was a quick fix I did for somebody's issue about a label in Swedish, I was studying this file at that time, so it was easy for me to do it.
I don't use git locally, I only use the github web interface (only for very small fixes and to study the code, I am not a developer).
So I can't easily fix the mess I did here. It is easier for now to just close this and open a new clean one.
I will try that, I hope I don't mess it up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong bank account type in GUI
3 participants