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

Ig 767 #196

Merged
merged 9 commits into from
Nov 9, 2020
Merged

Ig 767 #196

merged 9 commits into from
Nov 9, 2020

Conversation

CiaraWardPA
Copy link
Contributor

No description provided.

AlexPowerPA
AlexPowerPA previously approved these changes Nov 6, 2020
Comment on lines 125 to 127
{"applicationStatus":"submitted"},
{"applicationStatus":"approved"},
{"applicationStatus":"rejected"}
Copy link
Contributor

Choose a reason for hiding this comment

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

There are a couple of other application statuses that I assume we want to detect here, 'inProgress' and 'approved with conditions'. The only one I assume we want to filter out is 'withdrawn' so you could just change it to NOT withdrawn?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is 'inProgress' an application in progress prior to being submitted? We only want from submitted and after, so I should probably update to add in a check for 'approved with conditions'

Copy link
Contributor

Choose a reason for hiding this comment

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

That's correct, then just 'approved with conditions'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated now

Comment on lines 20 to 21
console.log(`selectedMonthStart - ${selectedMonthStart}`)
console.log(`selectedMonthEnd - ${selectedMonthEnd}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should remove console logs, but could in future use Moment to format the date passed in, which would save a few lines of code

Copy link
Contributor

@CMarksPA CMarksPA Nov 6, 2020

Choose a reason for hiding this comment

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

@RobinKavPA @CiaraWardPA It could be something like this, depending on the passed in params you could do this....

moment('01/04/2021').startOf('month').format("DD/MM/YYYY 00:00:000");
"01/04/2021 00:00:000"
moment('18/04/2021').endOf('month').format("DD/MM/YYYY 23:59:59");
"31/04/2021 23:59:59"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Console logs removed

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