diff --git a/api.planx.uk/modules/flows/downloadSchema/service.ts b/api.planx.uk/modules/flows/downloadSchema/service.ts index de83ba112a..01859dc9a8 100644 --- a/api.planx.uk/modules/flows/downloadSchema/service.ts +++ b/api.planx.uk/modules/flows/downloadSchema/service.ts @@ -19,7 +19,6 @@ export const getFlowSchema = async (flowId: string) => { planx_variable: nodeData.data?.fn || nodeData.data?.val || - nodeData.data?.output || nodeData.data?.dataFieldBoundary, }), ); diff --git a/e2e/tests/api-driven/src/invite-to-pay/mocks/flow.json b/e2e/tests/api-driven/src/invite-to-pay/mocks/flow.json index 6ad9eb5a31..fa6f2ab1e9 100644 --- a/e2e/tests/api-driven/src/invite-to-pay/mocks/flow.json +++ b/e2e/tests/api-driven/src/invite-to-pay/mocks/flow.json @@ -2052,7 +2052,7 @@ }, "0mN90xdfAJ": { "data": { - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "258", "samples": {}, "defaults": {}, @@ -4844,7 +4844,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created was 465m2 or less, the planning fee for a Certificate of Lawfulness application relating to the existing agricultural buildings is £120.

", "notes": "Full fee: if new floor space is 465m2 or less: £96", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "samples": {}, "defaults": {}, @@ -7475,7 +7475,7 @@ "2eZXkNpHzT": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for drilling oil or natural gas is £173.50 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))347)0.5", "samples": {}, "defaults": { @@ -9116,7 +9116,7 @@ "3BttsduVMt": { "data": { "info": "

In the case of a project where the gross external area of new space created was greater than 465m2 but no more than 540m2, the planning fee for a Certificate of Lawfulness application relating to the existing agricultural buildings is £578.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "578", "samples": {}, "defaults": {}, @@ -9504,7 +9504,7 @@ "3J58F6D2pv": { "data": { "info": "

The fee for an application for Prior Approval related to development involving telecommunications is £578

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "578", "samples": {}, "defaults": {}, @@ -12793,7 +12793,7 @@ }, "4eKQt16z2q": { "data": { - "output": "proposal.parking.buses.difference", + "fn": "proposal.parking.buses.difference", "formula": "proposal.parking.buses-property.parking.buses", "samples": {}, "defaults": { @@ -14877,7 +14877,7 @@ }, "5THxyfFTTq": { "data": { - "output": "proposal.vans.number.proposed", + "fn": "proposal.vans.number.proposed", "formula": "proposal.vans.onStreet.number.existing+proposal.vans.onStreet.number.proposed", "samples": {}, "defaults": { @@ -16602,7 +16602,7 @@ "6GXGZJYWAh": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for an application for planning permission relating to an existing use of a site for the winning and working of materials (excluding oil and natural gas) is £47,161 + £186 for each 0.1 hectares (or part thereof), up to a maximum of £105,300

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))", "samples": {}, "defaults": { @@ -17832,7 +17832,7 @@ "6ncXTCoXCf": { "data": { "info": "

In the case where two alternative applications are being submitted by the same applicant, for the same site and on the same day, then all but the largest of the fees qualify for a reduction of 50%.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "application.fee.reduced*0.5", "defaults": { "application.fee.reduced": "1" @@ -18961,7 +18961,7 @@ "7JBRNAgvfx": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions to two or more homes is £509

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "509", "samples": {}, "defaults": { @@ -20643,7 +20643,7 @@ }, "7uJKQQSUh3": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "application.fee.calculated*1", "defaults": { "application.fee.calculated": "1" @@ -21874,7 +21874,7 @@ "8N0IUdXIGP": { "data": { "info": "

The planning fee for an application for a Certificate of Lawfulness relating to existing alterations or extensions of a single home is £258.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "258", "samples": {}, "defaults": {}, @@ -21998,7 +21998,7 @@ }, "8OipifFTTq": { "data": { - "output": "proposal.bicycles.number.proposed", + "fn": "proposal.bicycles.number.proposed", "formula": "proposal.bicycles.onStreet.number.proposed+proposal.bicycles.offStreet.number.proposed", "samples": {}, "defaults": { @@ -22344,7 +22344,7 @@ }, "8cESkpnGHk": { "data": { - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "samples": {}, "defaults": {}, @@ -22975,7 +22975,7 @@ }, "8s3HKw34c4": { "data": { - "output": "proposal.parking.cycles.difference", + "fn": "proposal.parking.cycles.difference", "formula": "proposal.parking.cycles-property.parking.cycles", "samples": {}, "defaults": { @@ -23346,7 +23346,7 @@ "95XcTDdlqz": { "data": { "info": "

In the case of an application that is the first resubmission of an application on the same site that is similar in character and description, no planning fee is payable.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "policyRef": "

UK Statutory Instruments 2012 No. 2920 Regulation 8

" }, @@ -25119,7 +25119,7 @@ "9h1SX2hQa2": { "data": { "info": "

In the case of a project where the gross external area of new space created will be greater than 1000m2, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of a glasshouse is £1741.50

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "3483*0.5", "samples": {}, "defaults": {}, @@ -25383,7 +25383,7 @@ "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to the proposed creation of more than 50 new homes is £15,430 + £93 for each additional new home, up to a maximum of £202,500

", "notes": "Full planning fee: If more than 50 homes being created, £22,859+138 for each additional home up to a max of £300,000. LDC-P would be 50% of this", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((30860+((proposal.newDwellings.number-50)*186)),405000))*0.5", "samples": {}, "defaults": { @@ -26564,7 +26564,7 @@ "AJIHaeTKmg": { "data": { "info": "

In the case where two alternative applications are being submitted by the same applicant, for the same site and on the same day, then all but the largest of the fees qualify for a reduction of 50%.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "application.fee.calculated*0.5", "defaults": { "application.fee.calculated": "1" @@ -26671,7 +26671,7 @@ "AMBzPhbZBw": { "data": { "info": "

In the case of a project where the gross external area of new space created will be at least 1000m2 but no more than 4215m2, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of agricultural buildings is £312 + a further £312 for each additional 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-1000)/75))624+624)0.5", "defaults": { "proposal.newFloorArea": "1000" @@ -26707,7 +26707,7 @@ "data": { "info": "

The fee for any other type of application (including development under private acts or orders and development on a closed defence site) is £293 for each 0.1 hectare of the site, up to a maximum of £2,535

", "notes": "min(((proposal.siteArea/1000)*293),2535)", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((proposal.siteArea/1000)*293),2535))", "samples": { "proposal.siteArea": "1000" @@ -28448,7 +28448,7 @@ "B3ZwXIq7V1": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for an application for planning permission relating to the existing use of a site for winning or working of materials (excluding oil and natural gas) is £316 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))316)", "samples": {}, "defaults": { @@ -29930,7 +29930,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created will be 465m2 or less, the planning fee for an application for planning permission relating to existing glasshouses is £120

", "notes": "Full fee: if new floor space is 465m2 or less: £96", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "samples": {}, "defaults": {}, @@ -30396,7 +30396,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 465m2 but less than 1000m2, the planning fee for an application for planning permission relating to existing glasshouses is £3225

", "notes": "Full fee: if new floor space is 465m2 or less: £96", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "3225", "policyRef": "

https://www.legislation.gov.uk/uksi/2023/1197/made

", "howMeasured": "

For more information about planning fees in England are calculated, view this guide

", @@ -32389,7 +32389,7 @@ }, "CWY2Udp28Q": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "formatOutputForAutomations": false }, @@ -33551,7 +33551,7 @@ }, "D1D3UfFTTq": { "data": { - "output": "proposal.buses.number.existing", + "fn": "proposal.buses.number.existing", "formula": "proposal.buses.onStreet.number.existing+proposal.buses.offStreet.number.existing", "defaults": { "proposal.vans.onStreet.number.existing": "0", @@ -34781,7 +34781,7 @@ "DVoH7gbZiR": { "data": { "info": "

In the case of a project where the gross external area of new space created will be 465m2 or less, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of agricultural buildings is £60

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120*0.5", "samples": {}, "defaults": {}, @@ -35624,7 +35624,7 @@ "DmeeIJawsX": { "data": { "info": "

The planning fee for an application for planning permission relating to an existing non-residential developments where the new floor area created was more than 3750m2 is £30,680+£186 for each additional 75m2 (or part thereof) up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.newFloorArea-3750)/75))186+30680),405000))", "defaults": { "proposal.newFloorArea": "3750" @@ -36497,7 +36497,7 @@ "E3PFT3lono": { "data": { "info": "

In the case of a site with an area of more than 5 hectares, the planning fee for a Certificate of Lawfulness application relating to the proposed installation of plant or machinery is £30,860 + £186 for each hectare (or part thereof), up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-50000)/1000))186+30860),405000))", "samples": {}, "defaults": { @@ -36537,7 +36537,7 @@ "E3rGy7ik7l": { "data": { "info": "

The planning fee for an application for planning permission relating to creation of fewer than 10 new homes is £578 per dwelling.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "application.numberTotalHomes* 578", "samples": {}, "defaults": { @@ -39943,7 +39943,7 @@ "data": { "info": "

In the case of a site with an area of 7.5 hectares or less, the planning fee for a Certificate of Lawfulness application relating to an existing use of a site for exploratory drilling is £686 for each 0.1 hectare (or part thereof)

", "notes": "If 7.5 Ha or less: £508 for each 0.1 Ha (or part thereof)", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))686)", "samples": {}, "defaults": { @@ -40234,7 +40234,7 @@ "FbZqLXTw2n": { "data": { "info": "

The planning fee for an application for planning permission relating to the proposed creation of at least 10 but no more than 50 new homes is is £624 per dwelling.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "application.numberTotalHomes* 624", "samples": {}, "defaults": { @@ -41134,7 +41134,7 @@ "FzniHAatuC": { "data": { "info": "

In the case of a project where the gross external area of new space created will be 40m2 or less, the planning fee for a Certificate of Lawfulness application relating to the erection of buildings (e.g. commercial, community, charity, residential (not dwellinghouses, agricultural or glasshouses or plant/machinery)) is £146.50

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "293*0.5", "samples": {}, "defaults": {}, @@ -41592,7 +41592,7 @@ "GCe9yTothA": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to an existing use of a site for drilling oil or natural gas is £347 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))347)", "samples": {}, "defaults": { @@ -42042,7 +42042,7 @@ "GMYYTjg0cL": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 465m2 but less than 1000m2, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of a glasshouse is £1612.50

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "3225*0.5", "samples": {}, "defaults": {}, @@ -42532,7 +42532,7 @@ "GT5pCslXg4": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 540m2 but less than 1000m2, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of agricultural buildings is £289+ a further £289 for each additional 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-540)/75))578+578)0.5", "samples": {}, "defaults": { @@ -45454,7 +45454,7 @@ }, "HaIGYcpJBc": { "data": { - "output": "proposal.newBuildings.maxOne", + "fn": "proposal.newBuildings.maxOne", "formula": "smallerEq(proposal.newBuildings.number, 1)", "defaults": { "proposal.newBuildings.number": "0" @@ -45790,7 +45790,7 @@ "HidCuGgay7": { "data": { "info": "

In the case of a site with an area of less than 1 hectare, the planning fee for a Certificate of Lawfulness application relating to the existing plant or machinery is £578 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))578)", "samples": {}, "defaults": { @@ -46284,7 +46284,7 @@ "Hs9BYjL7F1": { "data": { "info": "

In the case of a project where the gross external area of new space created was more than 4215m2, the planning fee for a Certificate of Lawfulness application relating to the existing agricultural buildings is £30,860 + £186 for each additional 75m2, up to a maximum of £405,000.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.newFloorArea-4215)/75))186+30860),405000))", "samples": {}, "defaults": { @@ -47281,7 +47281,7 @@ "IBsfppc4vZ": { "data": { "info": "

The planning fee for a Certificate of Lawfulness application relating to existing car parks, service roads or other access is a flat fee of £293

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(293)", "samples": {}, "defaults": {}, @@ -47863,7 +47863,7 @@ "IE9TMmOhUX": { "data": { "info": "

In the case of an application that is the first resubmission of an application on the same site that is similar in character and description, no planning fee is payable.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "samples": {}, "defaults": {}, @@ -48631,7 +48631,7 @@ "IVP5NIGjXr": { "data": { "info": "

The planning fee for an application for planning permission relating to the proposed creation of more than 50 new homes is £30860+ £186 for each additional new home, up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((30860+((application.numberTotalHomes-50)*186)),405000))", "samples": {}, "defaults": { @@ -49246,7 +49246,7 @@ }, "IjxjjKHijg": { "data": { - "output": "proposal.parking.cars.difference", + "fn": "proposal.parking.cars.difference", "formula": "proposal.parking.cars-property.parking.cars", "samples": {}, "defaults": { @@ -50239,7 +50239,7 @@ "JAcvizYJT4": { "data": { "info": "

The planning fee for an application for planning permission relating to an existing non-residential development where the new floor area created is between 1000m2 and 3750m2 is £624 for every 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(ceil(proposal.newFloorArea/75))*624", "samples": {}, "defaults": { @@ -51994,7 +51994,7 @@ "JjpmTzpe82": { "data": { "info": "

The planning fee for an application for planning permission relating to a change of use or an application for a Certificate of Lawfulness relating to an existing change of use is £578.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "578", "samples": {}, "defaults": {}, @@ -53006,7 +53006,7 @@ "K8Mg67SKcH": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to a proposed change of use is £289

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "289", "samples": {}, "defaults": {}, @@ -54623,7 +54623,7 @@ "Ko5Zs2wF08": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for the winning and working of materials (excluding oil and natural gas) is £9,723.50 + £93 for each 0.1 hectares (or part thereof), up to a maximum of £52,650

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))0.5", "samples": {}, "defaults": { @@ -55284,7 +55284,7 @@ "L3UDTxQvcR": { "data": { "info": "

The planning fee for a Certificate of Lawfulness application relating to the proposed creation of car parks, service roads or other access is a flat fee of £146.50

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(293)0.5", "samples": {}, "defaults": {}, @@ -60860,7 +60860,7 @@ "MV85FGrZqh": { "data": { "info": "

The planning fee for an application for a Certificate of Lawfulness not to comply with a condition is £293.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "293", "samples": {}, "defaults": {}, @@ -61176,7 +61176,7 @@ "MbSmH4rFF8": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for the drilling oil and natural gas is £26,001 + £102 for each 0.1 hectares (or part thereof), up to a maximum of £52,650

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))204+52002),105300))0.5", "samples": {}, "defaults": { @@ -61684,7 +61684,7 @@ }, "MrU8M3qgFx": { "data": { - "output": "proposal.parking.carClub.difference", + "fn": "proposal.parking.carClub.difference", "formula": "proposal.parking.carClub-property.parking.carClub", "samples": {}, "defaults": { @@ -63790,7 +63790,7 @@ }, "NcU3sVJlo7": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "samples": {}, "defaults": {}, @@ -64449,7 +64449,7 @@ "Nt0R0tbs1n": { "data": { "info": "

If the application is being made by a non-profit sports organisation for works to playing fields that do not involve the erection of buildings, a standard flat fee of £462 applies.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "462", "policyRef": "

The Town and Country Planning (Fees for Applications, Deemed Applications, Requests and Site Visits) (England) Regulations 2012 Chapter 2, Paragraph 3

" }, @@ -64805,7 +64805,7 @@ "NztK5jlCEt": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Prior Approval application relating to winning and working of materials is £293 for each 0.1 hectares

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))293)", "samples": {}, "defaults": { @@ -66509,7 +66509,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created was 1000m2 or more, the planning fee for a Certificate of Lawfulness application relating to an existing glasshouse is £3483

", "notes": "Full fee: If more than 465m2: £2580", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "3483", "samples": {}, "defaults": {}, @@ -67595,7 +67595,7 @@ "P1wZ4RfAjd": { "data": { "info": "

In the case of a site with an area of 7.5 hectares or less, the planning fee for an application for planning permission relating to an existing use of a site for exploratory drilling is £686 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))686)", "samples": {}, "defaults": { @@ -70002,7 +70002,7 @@ }, "PuMmafFTTq": { "data": { - "output": "proposal.bicycles.number.existing", + "fn": "proposal.bicycles.number.existing", "formula": "proposal.bicycles.onStreet.number.existing+proposal.bicycles.offStreet.number.existing", "samples": {}, "defaults": { @@ -71894,7 +71894,7 @@ "QgfaRePOAR": { "data": { "info": "

The planning fee for an application for a Certificate of Lawfulness for existing works, relating to a site with at least 10 but no more than 50 homes on it, is £624 per dwelling.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "application.numberTotalHomes* 624", "samples": {}, "defaults": { @@ -72767,7 +72767,7 @@ "R6c7d465jq": { "data": { "info": "

In the case of a project where the gross external area of new space created will be greater than 465m2 but no more than 540m2, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of agricultural buildings is £289

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "578*0.5", "samples": {}, "defaults": {}, @@ -75900,7 +75900,7 @@ }, "S8qo1AW35U": { "data": { - "output": "proposal.units.proposed", + "fn": "proposal.units.proposed", "formula": "largerEq(proposal.units.residential.proposed, 1)", "samples": {}, "defaults": { @@ -76103,7 +76103,7 @@ "SCnsMe72Os": { "data": { "info": "

The planning fee for an application for planning permission relating to existing non-residential developments where the new floor area created is less than 40m2 is £293.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(293)", "samples": {}, "defaults": {}, @@ -76115,7 +76115,7 @@ }, "SCp4dEoHud": { "data": { - "output": "proposal.units.maxOne", + "fn": "proposal.units.maxOne", "formula": "smallerEq(proposal.units.residential.proposed, 1) and smallerEq(property.units.residential.existing, 1)", "samples": {}, "defaults": { @@ -77639,7 +77639,7 @@ "SmcYneFXtA": { "data": { "info": "

If the proposed works (to either a home or within the curtilage of a home) is for the sole purpose of providing either:

\n

\n

- A means of access to (or within) the dwellinghouse for a disabled resident (current or future)

\n

\n

OR

\n

\n

- Providing facilities that are designed to ensure the disabled persons safety, health or comfort

\n

\n

OR

\n

\n

- Providing disabled access to a public building

\n

\n

Then no planning fee will be payable for this application.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "policyRef": "

UK Statutory Instruments 2012 No. 2920 Regulation 4

" }, @@ -78272,7 +78272,7 @@ "T2sxoMC9R3": { "data": { "info": "

In the case of a site with an area of 1 to 5 hectares, the planning fee for a Certificate of Lawfulness application relating to the existing plant or machinery is £624 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))624)", "samples": {}, "defaults": { @@ -80450,7 +80450,7 @@ "ToRVXoGwjp": { "data": { "info": "

The planning fee for an application for planning permission relating to existing car parks, service roads or other access is a flat fee of £293

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(293)", "samples": {}, "defaults": {}, @@ -81322,7 +81322,7 @@ "UFhrhm9reB": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness for existing works, relating to a site with fewer than 10 homes on it, is £578 per dwelling.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "application.numberTotalHomes* 578", "samples": {}, "defaults": { @@ -81420,7 +81420,7 @@ "UHzoCGgTZ2": { "data": { "info": "

This application does not qualify for any exemptions or reductions

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "application.fee.calculated*1", "samples": {}, "defaults": { @@ -82420,7 +82420,7 @@ }, "UgIznfFTTq": { "data": { - "output": "proposal.cars.club.number.proposed", + "fn": "proposal.cars.club.number.proposed", "formula": "proposal.cars.onStreet.club.number.proposed+proposal.cars.offStreet.club.number.proposed", "samples": {}, "defaults": { @@ -84084,7 +84084,7 @@ }, "VGTNBUURyT": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "formatOutputForAutomations": false }, @@ -84600,7 +84600,7 @@ "VTbPpchVpY": { "data": { "info": "

In the case of a project where the gross external area of new space created was more than 540m2 but less than 1000m2, the planning fee for a Certificate of Lawfulness application relating to the existing agricultural buildings is £578+ a further £578 for each additional 75m2 (or part thereof) in excess of 540m2.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-540)/75))578+578)", "samples": {}, "defaults": { @@ -85911,7 +85911,7 @@ }, "VwCnxfFTTq": { "data": { - "output": "proposal.motorcycles.number.existing", + "fn": "proposal.motorcycles.number.existing", "formula": "proposal.motorcycles.onStreet.number.existing+proposal.motorcycles.offStreet.number.existing", "samples": {}, "defaults": { @@ -87171,7 +87171,7 @@ "WPSmnYVLmY": { "data": { "info": "

In the case of an application that is the first resubmission of an application on the same site that is similar in character and description, no planning fee is payable.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "samples": {}, "defaults": {}, @@ -87420,7 +87420,7 @@ "WUDOBOCEis": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for winning or working of materials (excluding oil and natural gas) is £158 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))316)0.5", "samples": {}, "defaults": { @@ -89214,7 +89214,7 @@ "XBQMeFKUdP": { "data": { "info": "

In the case of a project where the gross external area of new space created will be greater than 465m2 but no more than 540m2, the planning fee for an application for planning permission relating to existing agricultural buildings is £578.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "578", "policyRef": "

https://www.legislation.gov.uk/uksi/2023/1197/made

", "howMeasured": "

For more information about planning fees in England are calculated, view this guide

", @@ -90709,7 +90709,7 @@ "XifyuIlqIT": { "data": { "info": "

Applications made by a Parish Council or Community Council pay a reduced planning fee (50%)

", - "output": "application.fee.reduced", + "fn": "application.fee.reduced", "formula": "application.fee.calculated*0.5", "defaults": { "application.fee.calculated": "1" @@ -92496,7 +92496,7 @@ }, "YM6FlfFTTq": { "data": { - "output": "proposal.cars.disabled.number.proposed", + "fn": "proposal.cars.disabled.number.proposed", "formula": "proposal.cars.onStreet.disabled.number.proposed+proposal.cars.offStreet.disabled.number.proposed", "samples": {}, "defaults": { @@ -92554,7 +92554,7 @@ }, "YNRT2fFTTq": { "data": { - "output": "proposal.buses.number.proposed", + "fn": "proposal.buses.number.proposed", "formula": "proposal.buses.onStreet.number.proposed+proposal.buses.offStreet.number.proposed", "samples": {}, "defaults": { @@ -92793,7 +92793,7 @@ }, "YSHAfi8d2s": { "data": { - "output": "proposal.newStoreys.maxOne", + "fn": "proposal.newStoreys.maxOne", "formula": "smallerEq(proposal.newStoreys.number, 1)", "samples": {}, "defaults": { @@ -93495,7 +93495,7 @@ }, "YizU552sWA": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "43", "samples": {}, "defaults": {}, @@ -94060,7 +94060,7 @@ }, "YteHq3UaUJ": { "data": { - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "samples": {}, "defaults": {}, @@ -94269,7 +94269,7 @@ "Yxm7UwFC9A": { "data": { "info": "

In the case of a site with an area of more than 5 hectares, The planning fee for an application for planning permission relating to the proposed installation of plant or machinery is £30,860 + £186 for each hectare (or part thereof), up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-50000)/1000))186+30860),405000))", "defaults": { "proposal.siteArea": "50000", @@ -98837,7 +98837,7 @@ "atff5617kj": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to an existing use of a site for the winning and working of materials (excluding oil and natural gas) is £47,161 + £186 for each 0.1 hectares (or part thereof), up to a maximum of £105,300

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))", "samples": {}, "defaults": { @@ -101541,7 +101541,7 @@ "bzIMcE09B1": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Prior Approval application relating to the use of a site for winning or working of materials is £47,161+ £186 for each 0.1 hectares (or part thereof), up to a maximum of £105,300.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))", "samples": {}, "defaults": { @@ -103140,7 +103140,7 @@ "cZKFi9dXfI": { "data": { "info": "

The planning fee for an application for planning permission relating to existing 'other operations' is £293 for each 0.1 Hectares (or part thereof) within the site area, up to a maximum of £2535.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((ceil(proposal.siteArea/1000))293,2535))", "samples": {}, "defaults": { @@ -105090,7 +105090,7 @@ }, "dCTzpcUKPK": { "data": { - "output": "proposal.parking.disabled.difference", + "fn": "proposal.parking.disabled.difference", "formula": "proposal.parking.disabled-property.parking.disabled", "samples": {}, "defaults": { @@ -105807,7 +105807,7 @@ }, "dTbkAs0PxK": { "data": { - "output": "property.units.residential.total", + "fn": "property.units.residential.total", "formula": "proposal.units.residential.removed+proposal.units.residential.rebuilt+proposal.units.residential.retained", "samples": {}, "defaults": { @@ -106228,7 +106228,7 @@ }, "dk1gqGqb4B": { "data": { - "output": "proposal.units.maxOne", + "fn": "proposal.units.maxOne", "formula": "smallerEq(proposal.units.residential.new, 1) and smallerEq(proposal.units.residential.removed, 1) and smallerEq(proposal.units.residential.rebuilt, 1) and smallerEq(proposal.units.residential.retained, 1)", "samples": {}, "defaults": { @@ -107231,7 +107231,7 @@ "data": { "info": "

The planning fee for a Certificate of Lawfulness application relating to proposed 'other operations' is £146,50 for each 0.1 Hectares (or part thereof) within the site area, up to a maximum of £1267.50.

", "notes": "https://www.legislation.gov.uk/uksi/2023/1197/made", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((ceil(proposal.siteArea/1000))293,2535))0.5", "samples": {}, "defaults": { @@ -108467,7 +108467,7 @@ "eaPFwQAoM7": { "data": { "info": "

The planning fee for an application for planning permission relating to a change of use or an application for a Certificate of Lawfulness relating to an existing change of use is £578.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "578", "policyRef": "

https://www.legislation.gov.uk/uksi/2023/1197/made

", "howMeasured": "

For more information about planning fees in England are calculated, view this guide

", @@ -108510,7 +108510,7 @@ "ebxe1DP5OE": { "data": { "info": "

In the case of a site with an area of more than 7.5 hectares, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for exploratory drilling is £25,697.50 + £102 for each 0.1 hectares (or part thereof), up to a maximum of £202,500

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-75000)/1000))204+51395),405000))0.5", "samples": {}, "defaults": { @@ -109507,7 +109507,7 @@ "epwXPPMJyn": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 4215m2, the planning fee for an application for planning permission relating to the proposed creation of agricultural buildings is £30,860 + £186 for each additional 75m2, up to a maximum of £405,000.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.newFloorArea-4215)/75))186+30860),405000))", "defaults": { "proposal.newFloorArea": "4215" @@ -109577,7 +109577,7 @@ "erMj9LH16l": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to the proposed alteration or extension of a single home is £129

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "129", "samples": {}, "defaults": {}, @@ -110369,7 +110369,7 @@ "f8pbfhdldY": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to the proposed alteration or extension of two or more homes is £254.50

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "254.5", "samples": {}, "defaults": { @@ -111005,7 +111005,7 @@ "fOag5S12Yz": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for waste or refuse is £158 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))316)0.5", "samples": {}, "defaults": { @@ -111375,7 +111375,7 @@ "fcAtG8LgDr": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to an existing use of a site for drilling oil or natural gas is £347 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))347)", "samples": {}, "defaults": { @@ -111504,7 +111504,7 @@ "ffdNnjsbyK": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for an application for planning permission relating to existing use of a site for waste or refuse is £316 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))316)", "samples": {}, "defaults": { @@ -111736,7 +111736,7 @@ "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to the existing use of a site for winning or working of materials (excluding oil and natural gas) is £316 for each 0.1 hectares (or part thereof)

", "notes": "If 15 hectares or less: £234 for each 0.1 Ha (or part thereof)", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))316)", "samples": {}, "defaults": { @@ -112523,7 +112523,7 @@ "g0b2irgCi5": { "data": { "info": "

The fee to apply for planning permission to alter or extend a single home is £258.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "258", "samples": {}, "defaults": {}, @@ -114133,7 +114133,7 @@ "gdCDJHhyPc": { "data": { "info": "

In the case of a project where the gross external area of new space created will be 465m2 or less, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of a glasshouse is £60

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120*0.5", "samples": {}, "defaults": {}, @@ -116115,7 +116115,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created was more than 465m2 but less than 1000m2, the planning fee for a Certificate of Lawfulness application relating to an existing glasshouse is £3225

", "notes": "Full fee: if new floor space is 465m2 or less: £96", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "3225", "samples": {}, "defaults": {}, @@ -118933,7 +118933,7 @@ "iDAN2Lxn5R": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to creation of fewer than 10 new homes is £289 per new home

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "proposal.newDwellings.number*289", "samples": {}, "defaults": { @@ -119280,7 +119280,7 @@ }, "iLwv2v0hmv": { "data": { - "output": "proposal.parking.vans.difference", + "fn": "proposal.parking.vans.difference", "formula": "proposal.parking.vans-property.parking.vans", "samples": {}, "defaults": { @@ -120648,7 +120648,7 @@ "ip2F6saRKL": { "data": { "info": "

In the case of a site with an area of more than 7.5 hectares, the planning fee for a Certificate of Lawfulness application relating to an existing use of a site for exploratory drilling is £51,395 + £204 for each 0.1 hectares (or part thereof), up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-75000)/1000))204+51395),405000))", "samples": {}, "defaults": { @@ -121100,7 +121100,7 @@ "iytelJKvFf": { "data": { "info": "

The planning fee for an application for planning permission relating to an existing non-residential developments where the new floor area created is more than 3750m2 is £30,680+£186 for each additional 75m2 (or part thereof) up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.newFloorArea-3750)/75))186+30680),405000))", "samples": {}, "defaults": { @@ -122721,7 +122721,7 @@ }, "jUwAMlzsk8": { "data": { - "output": "proposal.parking.other.difference", + "fn": "proposal.parking.other.difference", "formula": "proposal.parking.other-property.parking.other", "samples": {}, "defaults": { @@ -123392,7 +123392,7 @@ }, "jjNfQfFTTq": { "data": { - "output": "proposal.vans.number.existing", + "fn": "proposal.vans.number.existing", "formula": "proposal.vans.onStreet.number.existing+proposal.vans.offStreet.number.existing", "defaults": { "proposal.vans.onStreet.number.existing": "0", @@ -127562,7 +127562,7 @@ "lGC1F104D8": { "data": { "info": "

In the case of a project where the gross external area of new space created was more than 1000m2 but no more than 4215m2, the planning fee for a Certificate of Lawfulness application relating to the existing agricultural buildings is £624 + a further £624 for each additional 75m2 (or part thereof) in excess of 1000m2.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-1000)/75))624+624)", "samples": {}, "defaults": { @@ -127618,7 +127618,7 @@ "lHAKPDxInS": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 540m2 but less than 1000m2, the planning fee for an application for planning permission relating to existing agricultural buildings is £578+ a further £578 for each additional 75m2 (or part thereof) in excess of 540m2.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-540)/75))578+578)", "defaults": { "proposal.newFloorArea": "540" @@ -127866,7 +127866,7 @@ }, "lPTk299cFd": { "data": { - "output": "proposal.units.residential.total", + "fn": "proposal.units.residential.total", "formula": "proposal.units.residential.new+proposal.units.residential.rebuilt+proposal.units.residential.retained", "samples": {}, "defaults": { @@ -128561,7 +128561,7 @@ "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to an existing use of a site for waste or refuse is £47,161+ £186 for each 0.1 hectares (or part thereof), up to a maximum of £105,300

", "notes": "If more than 15 hectares, £34,934 + £138 for each additional 0.1 hectare (or part thereof) up to a max of £78,000", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))", "samples": {}, "defaults": { @@ -128952,7 +128952,7 @@ "lpyrUCv54E": { "data": { "info": "

The plannning fee for a Prior Approval application relating to creation of at least 10 but no more than 50 new homes on rooftops, or on a site created by demolishing vacant buildings is £451 per new home

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "proposal.newDwellings.number*451", "samples": {}, "defaults": { @@ -131765,7 +131765,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created was 465m2 or less, the planning fee for a Certificate of Lawfulness application relating to existing glasshouses is £120

", "notes": "Full fee: if new floor space is 465m2 or less: £96", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "samples": {}, "defaults": {}, @@ -132340,7 +132340,7 @@ "n9UNiMpx56": { "data": { "notes": "I'm not sure if this is needed / used, but putting it here for robustness.", - "output": "proposal.newDwellings.number", + "fn": "proposal.newDwellings.number", "formula": "proposal.removedDwellings.number*-1", "samples": {}, "defaults": { @@ -132658,7 +132658,7 @@ "nD3eblMQeU": { "data": { "info": "

The plannning fee for a Prior Approval application relating to the addition of more than 50 new homes on rooftops or on a site created by demolishing vacant buildings is £22,309 plus £135 for each additional home beyond 50, up to a maximum of £405,000.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((22309+(proposal.newDwellings.number-50)*135),405000))", "samples": {}, "defaults": { @@ -132787,7 +132787,7 @@ "nGZY8Y0Hzb": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for an application for planning permission relating to an existing use of a site for waste or refuse is £47,161+ £186 for each 0.1 hectares (or part thereof), up to a maximum of £105,300

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))", "samples": {}, "defaults": { @@ -134745,7 +134745,7 @@ }, "o30WVjhbsQ": { "data": { - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "samples": {}, "defaults": {}, @@ -135600,7 +135600,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created will be 1000m2 or more, The planning fee for an application for planning permission relating to an existing glasshouse is £3483

", "notes": "Full fee: If more than 465m2: £2580", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "3483", "policyRef": "

https://www.legislation.gov.uk/uksi/2023/1197/made

", "howMeasured": "

For more information about planning fees in England are calculated, view this guide

", @@ -136630,7 +136630,7 @@ }, "otjAq2ioY3": { "data": { - "output": "proposal.parking.offStreet.residential.difference", + "fn": "proposal.parking.offStreet.residential.difference", "formula": "proposal.parking.cars.offStreet.residential-property.parking.cars.offStreet.residential", "samples": {}, "defaults": { @@ -136729,7 +136729,7 @@ "ovawWZ62yn": { "data": { "info": "

In the case of a site with an area of 15 hectares or less, the planning fee for a Certificate of Lawfulness application relating to existing use of a site for waste or refuse is £316 for each 0.1 hectares (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))316)", "samples": {}, "defaults": { @@ -137206,7 +137206,7 @@ "p5GVsOQP6m": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for waste or refuse is £23,580.50 + £93 for each 0.1 hectares (or part thereof), up to a maximum of £52,650

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))186+47161),105300))0.5", "samples": {}, "defaults": { @@ -137565,7 +137565,7 @@ "data": { "info": "

In the case of a site with an area of more than 7.5 hectares, the planning fee for an application for planning permission relating to an existing use of a site for exploratory drilling is £51,395 + £204 for each 0.1 hectares (or part thereof), up to a maximum of £405,000

", "notes": "If more than 7.5 Ha: £38,070 + £151 for each additional 0.1Ha (or part thereof) up to a max of £300,000", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-75000)/1000))204+51395),405000))", "samples": {}, "defaults": { @@ -138067,7 +138067,7 @@ "pMyslg2aNk": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 1000m2 but no more than 4215m2, the planning fee for an application for planning permission relating to existing agricultural buildings is £624+ a further £624 for each additional 75m2 (or part thereof) in excess of 1000m2.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-1000)/75))624+624)", "defaults": { "proposal.newFloorArea": "1000" @@ -138812,7 +138812,7 @@ "pbHzaBhfjT": { "data": { "info": "

The plannning fee for an application for a Certificate of Lawfulness relating to creation of at least 10 but no more than 50 homes is £312 per new home

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "proposal.newDwellings.number*312", "samples": {}, "defaults": { @@ -139306,7 +139306,7 @@ "pkjF2HNNPk": { "data": { "info": "

The planning fee for an application for planning permission relating to an existing non-residential development where the new floor area created is more than 40m2 and less than 1000m2 is £578 for every 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(ceil(proposal.newFloorArea/75))*578", "samples": {}, "defaults": { @@ -143478,7 +143478,7 @@ "rCXJHuTaOT": { "data": { "info": "

The planning fee for a Certificate of Lawfulness application relating to existing 'other operations' is £293 for each 0.1 Hectares (or part thereof) within the site area, up to a maximum of £2535.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((ceil(proposal.siteArea/1000))293,2535))", "samples": {}, "defaults": { @@ -144754,7 +144754,7 @@ "rmmBRUi1OK": { "data": { "info": "

The planning fee for an application for planning permission relating to an existing non-residential development where the new floor area created was more than 40m2 and less than 1000m2 is £578 for every 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(ceil(proposal.newFloorArea/75))*578", "defaults": { "proposal.newFloorArea": "41" @@ -145987,7 +145987,7 @@ "sK9f8lpWXe": { "data": { "info": "

The planning fee for an application for planning permission relating to existing non-residential developments where the new floor area created was less than 40m2 is £293.

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(293)", "policyRef": "

https://www.legislation.gov.uk/uksi/2023/1197/made

", "howMeasured": "

For more information about planning fees in England are calculated, view this guide

", @@ -146548,7 +146548,7 @@ }, "sUpgq1zdLo": { "data": { - "output": "proposal.parking.motorcycles.difference", + "fn": "proposal.parking.motorcycles.difference", "formula": "proposal.parking.motorcycles-property.parking.motorcycles", "samples": {}, "defaults": { @@ -146996,7 +146996,7 @@ "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for the drilling oil and natural gas is £52,002 + £204 for each 0.1 hectares (or part thereof), up to a maximum of £105,300

", "notes": "If site area is more than 15 Ha, £38,520 + £151 for each additional 0.1 Ha (or part thereof) up to a max of £78,000", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))204+52002),105300))", "samples": {}, "defaults": { @@ -147398,7 +147398,7 @@ "sptobLuLY0": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 4215m2, the planning fee for a Certificate of Lawfulness application relating to the proposed creation of agricultural buildings is £15,430 + £93 for each additional 75m2, up to a maximum of £202,500

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.newFloorArea-4215)/75))186+30860),405000))0.5", "samples": {}, "defaults": { @@ -149146,7 +149146,7 @@ "tSzyptR475": { "data": { "info": "

In the case of a site with an area of 1 to 5 hectares, the planning fee for a Certificate of Lawfulness application relating to the proposed works to plant or machinery is £312 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))624)0.5", "samples": {}, "defaults": { @@ -149556,7 +149556,7 @@ "tcNLnu3ePC": { "data": { "info": "

In the case of a project where the new floor area created was between 1000m2 and 3750m2, the planning fee for a Certificate of Lawfulness application relating to the erection of buildings (e.g. commercial, community, charity, residential (not dwellinghouses, agricultural or glasshouses or plant/machinery)) is £312 for every 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil((proposal.newFloorArea-75)/75))462+462)0.5", "samples": {}, "defaults": { @@ -150075,7 +150075,7 @@ "data": { "info": "

In the case of a project where the gross external area of new space created will be 465m2 or less, the planning fee for an application for planning permission relating to the existing agricultural buildings is £120.

", "notes": "Full fee: if new floor space is 465m2 or less: £96", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "120", "policyRef": "

https://www.legislation.gov.uk/uksi/2023/1197/made

", "howMeasured": "

For more information about planning fees in England are calculated, view this guide

", @@ -150954,7 +150954,7 @@ "u96c3ugjkt": { "data": { "info": "

In the case of a site with an area of 7.5 hectares or less, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for exploratory drilling is £343 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))686)0.5", "samples": {}, "defaults": { @@ -153402,7 +153402,7 @@ }, "v7ExifFTTq": { "data": { - "output": "proposal.cars.disabled.number.existing", + "fn": "proposal.cars.disabled.number.existing", "formula": "proposal.cars.onStreet.disabled.number.existing+proposal.cars.offStreet.disabled.number.existing", "samples": {}, "defaults": { @@ -153584,7 +153584,7 @@ "vBHI6yQiO2": { "data": { "info": "

The plannning fee for a Prior Approval application relating to creation of fewer than 10 new homes on rooftops, or on a site created by demolishing vacant buildings is £418 per new home

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "proposal.newDwellings.number*418", "samples": {}, "defaults": { @@ -153788,7 +153788,7 @@ }, "vGG8P9zcn6": { "data": { - "output": "property.units.existing", + "fn": "property.units.existing", "formula": "largerEq(property.units.residential.existing, 1)", "samples": {}, "defaults": { @@ -155362,7 +155362,7 @@ "vkpuRobqIR": { "data": { "info": "

In the case of a site with an area of 1 to 5 hectares, the planning fee for an application for planning permission relating to the existing plant or machinery is £624 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))624)", "defaults": { "proposal.siteArea": "1" @@ -155397,7 +155397,7 @@ }, "vlIXqMsBnG": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "application.fee.reduced*1", "defaults": { "application.fee.reduced": "1" @@ -155454,7 +155454,7 @@ "vmO5VWuxkW": { "data": { "info": "

In the case of a project where the gross external area of new space created will be greater than 3750m2, the planning fee for a Certificate of Lawfulness application relating to the erection of buildings (e.g. commercial, community, charity, residential (not dwellinghouses, agricultural or glasshouses or plant/machinery)) is £15,340 + £93 for each additional 75m2, up to a maximum of £202,500

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.newFloorArea-3750)/75))186+30680),405000))0.5", "samples": {}, "defaults": { @@ -155694,7 +155694,7 @@ "vsF29dSb6l": { "data": { "info": "

In the case of a site with an area of less than 1 hectare, the planning fee for a Certificate of Lawfulness application relating to the proposed works to plant or machinery is £289 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))578)0.5", "defaults": { "proposal.siteArea": "1" @@ -158842,7 +158842,7 @@ }, "x2PNJD8gNI": { "data": { - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "145", "samples": {}, "defaults": {}, @@ -159079,7 +159079,7 @@ "x8CoAuxQLl": { "data": { "info": "

In the case of a site with an area of more than 5 hectares, the planning fee for a Certificate of Lawfulness application relating to the proposed installation of plant or machinery is £15,430 + £93 for each hectare (or part thereof), up to a maximum of £202,500

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-50000)/1000))186+30860),405000))0.5", "samples": {}, "defaults": { @@ -159763,7 +159763,7 @@ }, "xPCDRfFTTq": { "data": { - "output": "proposal.cars.club.number.existing", + "fn": "proposal.cars.club.number.existing", "formula": "proposal.cars.onStreet.club.number.existing+proposal.cars.offStreet.club.number.existing", "samples": {}, "defaults": { @@ -160542,7 +160542,7 @@ "xkVSMF0E7r": { "data": { "info": "

The planning fee for an application for planning permission relating to an existing non-residential development where the new floor area created was between 1000m2 and 3750m2 is £624 for every 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(ceil(proposal.newFloorArea/75))*624", "defaults": { "proposal.newFloorArea": "1" @@ -162939,7 +162939,7 @@ }, "yiaoMfFTTq": { "data": { - "output": "proposal.motorcycles.number.proposed", + "fn": "proposal.motorcycles.number.proposed", "formula": "proposal.motorcycles.onStreet.number.proposed+proposal.motorcycles.offStreet.number.proposed", "samples": {}, "defaults": { @@ -164202,7 +164202,7 @@ "zH7idoWrpK": { "data": { "info": "

In the case of a site with an area of more than 15 hectares, the planning fee for a Certificate of Lawfulness application relating to proposed use of a site for the drilling oil and natural gas is £52,002 + £204 for each 0.1 hectares (or part thereof), up to a maximum of £105,300

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min(((ceil((proposal.siteArea-150000)/1000))204+52002),105300))", "samples": {}, "defaults": { @@ -164501,7 +164501,7 @@ "zODb8UPdGl": { "data": { "info": "

The planning fee for an application for a Certificate of Lawfulness relating to the creation of homes in the past, on a site that includes more than 50 homes is £30,860 + £186 for each additional new home, up to a maximum of £405,000

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(min((30860+((application.numberTotalHomes-50)*186)),405000))", "samples": {}, "defaults": { @@ -164959,7 +164959,7 @@ "zXwMH2lnrc": { "data": { "info": "

In the case of a site with an area of less than 1 hectare, The planning fee for an application for planning permission relating to the existing plant or machinery is £578 for each 0.1 hectare (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "((ceil(proposal.siteArea/1000))578)", "defaults": { "proposal.siteArea": "1" @@ -166139,7 +166139,7 @@ "zvIdjbrbuX": { "data": { "info": "

In the case of a project where the gross external area of new space created will be more than 40m2 but less than 1000m2, the planning fee for a Certificate of Lawfulness application relating to the erection of buildings (e.g. commercial, community, charity, residential (not dwellinghouses, agricultural or glasshouses or plant/machinery)) is £289 for every 75m2 (or part thereof)

", - "output": "application.fee.calculated", + "fn": "application.fee.calculated", "formula": "(ceil(proposal.newFloorArea/75))*578*0.5", "samples": {}, "defaults": { @@ -166248,7 +166248,7 @@ "zyTyWi2Zbn": { "data": { "info": "

If the proposed works (to either a home or within the curtilage of a home) is for the sole purpose of providing either:

\n

\n

- A means of access to (or within) the dwellinghouse for a disabled resident (current or future)

\n

\n

OR

\n

\n

- Providing facilities that are designed to ensure the disabled persons safety, health or comfort

\n

\n

OR

\n

\n

- Providing disabled access to a public building

\n

\n

Then no planning fee will be payable for this application.

", - "output": "application.fee.payable", + "fn": "application.fee.payable", "formula": "0", "samples": {}, "defaults": {}, diff --git a/e2e/tests/ui-driven/src/mocks/flows/invite-to-pay-flow.ts b/e2e/tests/ui-driven/src/mocks/flows/invite-to-pay-flow.ts index 2618ad7f7a..a804c88231 100644 --- a/e2e/tests/ui-driven/src/mocks/flows/invite-to-pay-flow.ts +++ b/e2e/tests/ui-driven/src/mocks/flows/invite-to-pay-flow.ts @@ -23,7 +23,7 @@ const flow: FlowGraph = { }, F9iwWG1jBQ: { data: { - output: "application.fee.payable", + fn: "application.fee.payable", formula: "123.45", }, type: ComponentType.Calculate, diff --git a/e2e/tests/ui-driven/src/mocks/flows/pay-flow.json b/e2e/tests/ui-driven/src/mocks/flows/pay-flow.json index b0a670079e..d63ab26b7e 100644 --- a/e2e/tests/ui-driven/src/mocks/flows/pay-flow.json +++ b/e2e/tests/ui-driven/src/mocks/flows/pay-flow.json @@ -10,7 +10,7 @@ }, "KzuRf6vqc1": { "data": { - "output": "pay.test", + "fn": "pay.test", "formula": "10" }, "type": 700 diff --git a/editor.planx.uk/src/@planx/components/Calculate/Editor.tsx b/editor.planx.uk/src/@planx/components/Calculate/Editor.tsx index cce4fe5d6d..6ee3230028 100644 --- a/editor.planx.uk/src/@planx/components/Calculate/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Calculate/Editor.tsx @@ -126,10 +126,10 @@ export default function Component(props: Props) { @@ -199,7 +199,7 @@ export default function Component(props: Props) { <> )}

- {formik.values.output || ""} would be set + {formik.values.fn || ""} would be set to {sampleResult}

diff --git a/editor.planx.uk/src/@planx/components/Calculate/Public.test.tsx b/editor.planx.uk/src/@planx/components/Calculate/Public.test.tsx index adbb6af224..5d63ffe53c 100644 --- a/editor.planx.uk/src/@planx/components/Calculate/Public.test.tsx +++ b/editor.planx.uk/src/@planx/components/Calculate/Public.test.tsx @@ -9,7 +9,7 @@ describe("Calculate component", () => { const handleSubmit = vi.fn(); setup( ; formula: string; samples: Record; @@ -20,7 +20,7 @@ export const parseCalculate = ( data: Record | undefined, ): Calculate => ({ ...parseBaseNodeData(data), - output: data?.output || "", + fn: data?.fn || "", defaults: data?.defaults || {}, formula: data?.formula || "", samples: data?.samples || {}, diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/dataFacets.test.ts b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/dataFacets.test.ts index 7eba2e3dc0..ad8b0d9b5d 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/dataFacets.test.ts +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/dataFacets.test.ts @@ -93,7 +93,7 @@ describe("Calculate component", () => { componentType: "Calculate", headline: "calculateOutput", iconKey: ComponentType.Calculate, - key: "Output (data)", + key: "Data", title: "This is a calculate component", }); }); diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/getDisplayDetailsForResult.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/getDisplayDetailsForResult.tsx index c725d96214..9e7f5a5ffd 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/getDisplayDetailsForResult.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/SearchResultCard/getDisplayDetailsForResult.tsx @@ -199,7 +199,7 @@ const keyFormatters: KeyMap = { getHeadline: ({ item }) => (item.data as unknown as Calculate).formula, }, "data.output": { - getDisplayKey: () => "Output (data)", + getDisplayKey: () => "Data", }, // List contains data variables nested within its schema "data.schema.fields.data.fn": { diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/facets.ts b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/facets.ts index a85b4329db..5e53f33d42 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/facets.ts +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/facets.ts @@ -9,7 +9,6 @@ const generalData: SearchFacets = ["data.fn", "data.val"]; const fileUploadAndLabelData: SearchFacets = ["data.fileTypes.fn"]; const calculateData: SearchFacets = [ - "data.output", { name: "formula", getFn: (node: IndexedNode) => Object.keys(node.data?.defaults || {}), diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/mocks/dataFacetFlow.ts b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/mocks/dataFacetFlow.ts index 7efd76b836..f147d0fc45 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/mocks/dataFacetFlow.ts +++ b/editor.planx.uk/src/pages/FlowEditor/components/Sidebar/Search/mocks/dataFacetFlow.ts @@ -181,7 +181,7 @@ export const mockFlow: FlowGraph = { zryBH8H7vD: { data: { title: "This is a calculate component", - output: "calculateOutput", + fn: "calculateOutput", formula: "formulaOne + formulaTwo", defaults: { formulaOne: "1", @@ -623,7 +623,7 @@ export const mockCalculateRootResult: SearchResult = { type: 700, data: { title: "This is a calculate component", - output: "calculateOutput", + fn: "calculateOutput", formula: "formulaOne + formulaTwo", defaults: { formulaOne: "1", @@ -633,7 +633,7 @@ export const mockCalculateRootResult: SearchResult = { samples: {}, }, }, - key: "data.output", + key: "data.fn", matchIndices: [[0, 14]], refIndex: 0, matchValue: "calculateOutput", @@ -646,7 +646,7 @@ export const mockCalculateFormulaResult: SearchResult = { type: 700, data: { title: "This is a calculate component", - output: "calculateOutput", + fn: "calculateOutput", formula: "formulaOne + formulaTwo", defaults: { formulaOne: "1", diff --git a/editor.planx.uk/src/pages/FlowEditor/lib/__tests__/preview/canGoBack.test.ts b/editor.planx.uk/src/pages/FlowEditor/lib/__tests__/preview/canGoBack.test.ts index 0dff26f62f..abdd076679 100644 --- a/editor.planx.uk/src/pages/FlowEditor/lib/__tests__/preview/canGoBack.test.ts +++ b/editor.planx.uk/src/pages/FlowEditor/lib/__tests__/preview/canGoBack.test.ts @@ -34,7 +34,7 @@ const flow: Store.Flow = { Calculate: { type: TYPES.Calculate, data: { - output: "fee", + fn: "fee", formula: "10", }, },