ministryofjustice / help-with-prison-visits-external

https://www.gov.uk/help-with-prison-visits
MIT License
10 stars 3 forks source link

Conversion error when making repeat claim #344

Closed pwright08 closed 7 years ago

pwright08 commented 7 years ago

Conversion error when making repeat claim

Environment: local + dev

Steps:

  1. Approve first time claim (in this case the one generated by e2e tests - with light refreshment of 7.99)
  2. Attempt to make a repeat, past claim with same details as previous

RequestError: insert into [ClaimExpense] ([ClaimId], [Cost], [DurationOfTravel], [EligibilityId], [ExpenseType], [From], [IsEnabled], [IsReturn], [Reference], [TicketOwner], [TicketType], [To], [TravelTime]) values (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12), (@p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23, @p24, @p25), (@p26, @p27, @p28, @p29, @p30, @p31, @p32, @p33, @p34, @p35, @p36, @p37, @p38), (@p39, @p40, @p41, @p42, @p43, @p44, @p45, @p46, @p47, @p48, @p49, @p50, @p51) - Conversion failed when converting the nvarchar value '7.99' to data type int.

gdouglas1 commented 7 years ago

Resolved by #350