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
Implement report approvals #24639
Implement report approvals #24639
Changes from 50 commits
e1c0319
b1e77ab
386d9f9
fa1bb92
691ceba
e0da0f3
f7b422e
9a8bef8
2d50862
e8543c8
00fb139
1140036
266cd4c
5de9792
75e9ed4
508021d
ecd428a
18c5198
4e2a5c1
da32226
d75e3f8
3930802
c7d51cf
d160aed
07682c5
74b8caf
3b570e2
273966c
100f03d
03cc982
909cd45
3462084
fca135f
f7382f3
2d3bf23
c134640
216618b
21d5783
10a287a
03e9513
ceff45b
2e373a8
95dc9e2
15ab698
e7c4804
c89f0a6
66b6724
4833ce4
7dc3738
1b176a9
575524c
b341aa1
577d9ad
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.
What if the policyType is personal in case of IOU then we should also not show the Approved button but its not clear from this method that will be the case
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.
Will we ever show Settlement and Approve button at the same time?
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.
No I think the conditionals implemented will prevent this, this specifically
const isPayer = policyType === CONST.POLICY.TYPE.CORPORATE ? isPolicyAdmin && isApproved