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

Two-part tariff review pages housekeeping #1050

Merged
merged 4 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ async function _fetchBillRun (billRunId) {
.findById(billRunId)
.select(
'id',
'fromFinancialYearEnding',
'toFinancialYearEnding')
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/bill-runs/amend-adjustment-factor.njk
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
errorMessage: error.chargeAdjustmentElement
}) }}

{{ govukButton({ text: 'Confirm' }) }}
{{ govukButton({ text: 'Confirm', preventDoubleClick: true }) }}
</form>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/bill-runs/amend-billable-returns.njk
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
{# Hidden input for authorised volume #}
<input type="hidden" name="authorisedVolume" value="{{ authorisedQuantity }}">

{{ govukButton({ text: 'Confirm' }) }}
{{ govukButton({ text: 'Confirm', preventDoubleClick: true }) }}
</form>
</div>
{% endblock %}
3 changes: 2 additions & 1 deletion app/views/bill-runs/match-details.njk
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
{{ govukButton({
text: "Edit the billable returns",
href: "/system/bill-runs/" + billRunId + "/review/" + licenceId + "/match-details/" + chargeElement.chargeElementId + "/amend-billable-returns",
classes: "govuk-button--secondary"
classes: "govuk-button--secondary",
preventDoubleClick: true
}) }}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ describe('Amend Adjustment Factor Service', () => {
function _billRun () {
return {
id: 'cc4bbb18-0d6a-4254-ac2c-7409de814d7e',
fromFinancialYearEnding: 2023,
toFinancialYearEnding: 2023
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('Charge Reference Details Service', () => {
function _billRun () {
return {
id: 'cc4bbb18-0d6a-4254-ac2c-7409de814d7e',
fromFinancialYearEnding: 2023,
toFinancialYearEnding: 2023
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe('Fetch Review Charge Reference service', () => {

expect(result.billRun).to.equal({
id: billRun.id,
fromFinancialYearEnding: billRun.fromFinancialYearEnding,
toFinancialYearEnding: billRun.toFinancialYearEnding
})
})
Expand Down
Loading