Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Handle the error with journal entry when tax is enabled #41520
Handle the error with journal entry when tax is enabled #41520
Changes from all commits
d5812cf
d04a7a0
0453720
a2eae45
1ae5a20
85a8447
0276320
0f13f6c
f0cf4ef
1e17771
df6a3dd
cfa0aa1
09a2bb1
c1f4c3c
38f7484
54dbdf5
bbaf3b7
ccd10b0
0baa214
1861a11
b44b907
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hint text does not seem right for the above-mentioned scenario i.e. when the
syncTax
is trueJournal Entry
export is set).A separate hint text may be better here for this specific scenario
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I agree.
@teneeto, could you remind me if we have an error message on the frontend side for the rare case of Journal Entry is selected while the
syncTax
is on (when the configuration was changed in Expensify Classic, etc).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the code, and we display this error message when the above misconfiguration happens here. Should we do the same for the Tax toggle, too on the
QuickbooksTaxesPage
? (instead of displaying the hint text)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teneeto, or do we already have an error message for the above case, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me confirm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comment below 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for reminding where the UI copy came from. I agree with @rojiphil on the following point:
I think we should have the same condition as what @rojiphil suggested ->
!syncTax && isJournalExportEntity
to display this hint messageThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teneeto, can you modify the code according to my suggestion here?
What the user needs to do in this case (
!syncTax && isJournalExportEntity
) is to toggle off the Switch and the hint text can be misleadingThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's rare case anyway, so I gonna address this change when I make a backend change to handle errors on the backend side 👍