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

Does the transaction have some problem? #97

Merged

Conversation

pnemonic78
Copy link
Collaborator

@pnemonic78 pnemonic78 commented May 7, 2024

Screenshot_1715143816

Looks very strange when the secondary label is blank.

@pnemonic78 pnemonic78 self-assigned this May 7, 2024
if (splits.size() == 2) {
Split first = splits.get(0);
for (Split split : splits) {
if ((first != split) && first.isPairOf(split)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't it better to do the same as in TransactionsListFragment.java? Just:

                if (splits.size() == 2) {
                    if (splits.get(0).isPairOf(splits.get(1))) {

Copy link
Collaborator

Choose a reason for hiding this comment

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

How about that? Because I see each file has different logic here

@Kaligula0
Copy link
Collaborator

Can you please add at least a brief description? What does this PR do? The change looks like just a rearrangement of code.

@Kaligula0
Copy link
Collaborator

Thanks for the screenshot. You mean that the 3rd tx ("ForEx") doesn't show it's target account?

@Kaligula0
Copy link
Collaborator

How to reproduce that?

@pnemonic78
Copy link
Collaborator Author

How to reproduce that?

In the splits screen - make sure there is imbalance.

@Kaligula0
Copy link
Collaborator

I can't, it automatically adds 3rd account (imbalance account) and shows up just like your "AmEx" tx (with subtitle "3 splits").

@pnemonic78
Copy link
Collaborator Author

Screenshot_1715463757

@Kaligula0
Copy link
Collaborator

Kaligula0 commented May 11, 2024

Yeah, and then, when I click Save, then Save again, the tx gets saved with an additional Imbalance account, and the subtitle shows "3 splits". In which version does the bug show? I checked in your Google Play version.

@Kaligula0 Kaligula0 merged commit d3af73d into GnuCash-Pocket:master Jun 2, 2024
5 checks passed
@pnemonic78 pnemonic78 deleted the issue/tx_blank_description branch June 5, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants