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

Repeat claim (car) requires value to be entered each time by CW #61

Closed
userresearcher opened this issue Dec 7, 2016 · 3 comments
Closed
Assignees
Labels

Comments

@userresearcher
Copy link

After caseworker enters a value for car journey (shouldn't this be miles, not £?), subsequent claims show this as £0.00. Repeating the journey always involves the CW to put in a value, so it never auto approves.

Issue explained here

@userresearcher userresearcher changed the title Repeat claim Repeat claim (car) requires value to be entered each time by CW Dec 7, 2016
@tmrowe
Copy link
Contributor

tmrowe commented Dec 14, 2016

This is happening because when a car expense is input on the external site it's value defaults to 0 (as the value will be calculated by the APVS provider based on the claimants home address and the prison they are visiting). When a repeat claim is being built on the external site we currently retrieve the Cost submitted by the user for all expenses, NOT the ApprovedCost. Therefore the cost for cars is always returned as 0.

As well as being an issue for car expenses using the Cost rather than the ApprovedCost is also an issue for all other expense types in that non approved costs can be auto approved. Take the following example: A claimant submits a cost of £20. This is then approved by an APVS Provider as £18. The visitor then makes a repeat claim. The amount set for the repeat claim is the amount they claimed in their initial claim (£20) not the previously approved £18. If this £20 cost is within the variance allowed for auto approval it would pass through and be auto approved as £20 despite it having been reduced by the APVS Provider in the previous claim.

To resolve this we should only ever use the ApprovedCost column rather than the Cost column in our table functions called by the external site when generating a repeat claim.

@tmrowe tmrowe added the bug label Dec 14, 2016
@tmrowe tmrowe self-assigned this Dec 14, 2016
@userresearcher
Copy link
Author

userresearcher commented Dec 14, 2016 via email

@tmrowe tmrowe closed this as completed Dec 19, 2016
@tmrowe
Copy link
Contributor

tmrowe commented Dec 19, 2016

Closed by pull request 274 in the External Web repository.

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

No branches or pull requests

2 participants