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

Move holiday-stop credit calculation #392

Merged
merged 3 commits into from
Aug 28, 2019
Merged

Move holiday-stop credit calculation #392

merged 3 commits into from
Aug 28, 2019

Conversation

kelvin-chappell
Copy link
Member

This moves the credit calculation to the holiday-stops lib where it's accessible to both the holiday-stop-processor lambda for actual credits, and the holiday-stop-api lambda for estimated credits.

Next step will be to integrate it into the holiday-stop-api.

@coveralls
Copy link

coveralls commented Aug 28, 2019

Coverage Status

Coverage increased (+0.03%) to 58.425% when pulling b9eb139 on credit-calc into dc189e7 on master.


val charges = for {
plan <- ratePlans if isMatchingPlan(plan)
charge <- plan.ratePlanCharges.find(isMatchingCharge)
charge <- plan.ratePlanCharges.find(isMatchingCharge)
Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Scalariform is supposed to sort that out. I think it's skipping this file because it doesn't like trailing commas in lists. I'll fix it.

@guardian guardian deleted a comment Aug 28, 2019
@guardian guardian deleted a comment Aug 28, 2019
@kelvin-chappell kelvin-chappell merged commit 4ef26b2 into master Aug 28, 2019
@kelvin-chappell kelvin-chappell deleted the credit-calc branch August 28, 2019 14:25
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

3 participants