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

FE admin claims #3144

Merged
merged 2 commits into from
Sep 3, 2024
Merged

FE admin claims #3144

merged 2 commits into from
Sep 3, 2024

Conversation

asmega
Copy link
Contributor

@asmega asmega commented Sep 3, 2024

Context

  • This updates tests to including showing FE claims in back office

@@ -396,7 +396,7 @@ def important_notes
end

def award_amount_with_topups
topups.sum(:award_amount) + award_amount
topups.sum(:award_amount) + (award_amount || 0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

feeling ambivalent about this one

@@ -55,7 +55,7 @@ def self.create_with_claims!(claims, topups, attrs = {})
# associates the payment to the Topup, so we know it's payrolled
group_topups = grouped_items.select { |i| i.is_a?(Topup) }

award_amount = grouped_items.sum(&:award_amount)
award_amount = grouped_items.map(&:award_amount).compact.sum(0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks ugly but fixes deprecation

@asmega asmega marked this pull request as ready for review September 3, 2024 11:53
Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

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

Looks good, just left one comment about the policy short name

@@ -827,6 +827,12 @@ en:
feedback_email: "[email protected]"
support_email_address: "[email protected]"
claim_subject: "Further education payment"
policy_acronym: FE
Copy link
Contributor

Choose a reason for hiding this comment

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

I went for "TRIP" in my PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so TRIPFE? otherwise TRIP also includes EY?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah good point, I guess TRIPFE makes sense, maybe something to run by policy, but given it's just in the admin area it's not a blocker

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll leave for now and sort it later

@@ -827,6 +827,12 @@ en:
feedback_email: "[email protected]"
support_email_address: "[email protected]"
claim_subject: "Further education payment"
policy_acronym: FE
policy_short_name: Further education payments
Copy link
Contributor

Choose a reason for hiding this comment

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

In figma I think this is now "Targeted Retention Incentive Payment For FE Teachers"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's called policy_short_name 😂

@asmega asmega merged commit 2699366 into master Sep 3, 2024
14 checks passed
@asmega asmega deleted the fe-admin-claims branch September 3, 2024 14:41
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.

2 participants