Closed Grulin closed 1 month ago
How should the lines update based on the schedules? e.g my original renewable requirement was 1000, so I defer 50 (5%), then I change the quantity to 500, should the input show 25 (the new maximum) or 0?
I think it should reset to "0" like it does in TFRS. Perhaps we should also add the pop-up that TFRS gives when you changes values. It says this:
I can make a separate card for the pop-up if that's what we want to do, so for now, I'd say reset both 6 and 8 to zero if changes are made to the renewable requirement (line 4). Thanks for catching this!
As discussed with Lindsy, the pop up will be its own card we do later. Logic is now updated that if the fuel requirements change for a certain category, it will reset lines 6/8 to 0 for that category.
Describe the Bug When attempting to remove or change inputs on lines 6 and 8 of the Compliance Report Summary, a "Status code 422" error appears.
Additionally, if changes are made to the schedules that affect the renewable fuel supply or requirement, lines 6 and 8 do not update accordingly. The inputs in lines 6 and 8 persist as they were initially entered, even if the requirements have changed based on updated fuel supply data in the schedules.
While it is important for these lines to persist when the report is left and reopened in the same session, they should also automatically update when relevant changes are made and be resaved with the new conditions for line availability, the maximum amount allowed, and the amount input.
Expected Behaviour
Actual Behaviour
Implications
Steps To Reproduce Steps to reproduce the behaviour: