ffc-pay-schemes 1.0.15 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -1
- package/app/constants/file-masks.js +2 -1
- package/app/constants/manual-sources.js +4 -2
- package/app/constants/pillars.js +2 -1
- package/app/constants/scheme-batch-properties.js +6 -0
- package/app/constants/scheme-ids.js +2 -1
- package/app/constants/scheme-names.js +16 -15
- package/app/constants/schemes.js +8 -0
- package/app/constants/sequence-positions.js +2 -1
- package/app/constants/siti-agri-schemes.js +2 -2
- package/app/constants/source-systems.js +2 -1
- package/app/create-invoice-number/index.js +2 -2
- package/app/get-account-code-map/index.js +4 -2
- package/package.json +1 -1
- package/test-output/cobertura-coverage.xml +52 -52
- package/test-output/junit.xml +380 -362
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ap.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ar-admin.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ar-irregular.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/delivery-bodies.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/description-codes.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/file-masks.js.html +6 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/frps-schemes.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/fund-codes.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/manual-sources.js.html +10 -4
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/pillars.js.html +6 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-batch-properties.js.html +20 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-ids.js.html +6 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-names.js.html +6 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes-not-requiring-ppas.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes-providing-account-values.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes.js.html +23 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/sequence-positions.js.html +6 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/siti-agri-schemes.js.html +3 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/source-systems.js.html +6 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/unknown.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-default-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-es-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-imps-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-siti-agri-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-standard-scheme-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/index.js.html +3 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/use-invoice-number-as-is.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/create-default-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/create-siti-agri-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/index.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/bps-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/cohtc-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/cs-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/default-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/delinked-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/index.js.html +10 -4
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/lump-sums-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/sfi-frps-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/vet-visits-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/get-batch-sequence-from-file-name.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/get-journal-source-from-pillar.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/get-reporting-data-filter.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/is-frps.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/is-siti-agri.js.html +2 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/is-valid-scheme-id.js.html +3 -3
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/scheme-does-not-require-ppas.js.html +2 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/helpers/scheme-provides-accounting-values.js.html +2 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/pillar/get-pillar-from-scheme-id.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/pillar/get-pillars.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/pillar/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-id/get-scheme-id-from-pillar.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-id/get-scheme-id-from-source-system.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-id/get-scheme-ids.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-id/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-name/get-scheme-name-from-scheme-id.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-name/get-scheme-names.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-name/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-properties/get-scheme-batch-properties.js.html +2 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-properties/get-scheme-from-batch-file-name.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-properties/get-scheme-properties.js.html +8 -8
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-properties/get-schemes.js.html +2 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-properties/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/source-system/get-source-system-from-scheme-id.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/source-system/get-source-systems.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/source-system/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/index.js.html +1 -1
- package/test-output/lcov-report/index.html +1 -1
- package/test-output/lcov.info +48 -48
package/README.md
CHANGED
|
@@ -99,12 +99,57 @@ The following services are intended to be used with the ffc-pay-schemes package:
|
|
|
99
99
|
- ffc-pay-injection
|
|
100
100
|
- ffc-pay-processing
|
|
101
101
|
- ffc-pay-request-editor
|
|
102
|
+
- ffc-pay-responses
|
|
102
103
|
- ffc-pay-submission
|
|
103
104
|
- ffc-pay-tracking
|
|
104
105
|
- ffc-pay-web
|
|
105
106
|
|
|
106
107
|
In the event a new payment scheme is added to the package, all of the above services must be bumped to the latest package version to ensure that Payment Hub can process associated payments.
|
|
107
108
|
|
|
109
|
+
## Scheme onboarding process
|
|
110
|
+
|
|
111
|
+
See the linked PR for an example of how to onboard a payment scheme with batch files to the ffc-pay-schemes package:
|
|
112
|
+
|
|
113
|
+
<https://github.com/DEFRA/ffc-pay-schemes/pull/16>
|
|
114
|
+
|
|
115
|
+
The below breakdown details all steps required for a general scheme onboarding:
|
|
116
|
+
|
|
117
|
+
- Add the scheme's pillar name to `app/constants/pillars.js` - this allows the pillar to be recognised for manual payments in `ffc-pay-injection`
|
|
118
|
+
- Add the manual source name for the scheme to `app/constants/manual-sources.js` - this defines the `source` name to use in D365 journals for manual payments for the scheme, created by `ffc-pay-submission`
|
|
119
|
+
- Add the scheme batch properties to `app/constants/scheme-batch-properties.js` - this defines the naming convention for D365 journals for the scheme, created by `ffc-pay-submission`
|
|
120
|
+
- Add the new scheme ID to `app/constants/scheme-ids.js` - this is the glue that holds payment processing together
|
|
121
|
+
- Add the scheme name to `app/constants/scheme-names.js` - this is how the scheme will be referred to in all frontend services, and in system logs
|
|
122
|
+
- Add the default scheme properties to `app/constants/schemes.js` - this is the primary driver for scheme defaults as read by `ffc-pay-enrichment`
|
|
123
|
+
- Add the source system to `app/constants/source-systems.js` - this is how the scheme will be recognised by `ffc-pay-enrichment`, and allow the scheme ID to be determined
|
|
124
|
+
- Add the scheme ID to the correct function in `app/create-invoice-number/index.js` - this is how the D365 formatted invoice number will be calculated in `ffc-pay-enrichment`
|
|
125
|
+
- Add the scheme ID to the mapping in `app/get-account-code-map/index.js` - this is how account codes will be assigned to invoice lines with different description codes in `ffc-pay-processing` - this is only usually called for PPAs, but for good practice it should be determined for all schemes
|
|
126
|
+
|
|
127
|
+
For all schemes supporting batch file ingestion:
|
|
128
|
+
|
|
129
|
+
- Add details of the file mask to `app/constants/file-masks.js` - this should be the file mask as read by `ffc-pay-batch-processor`, and allows the service to recognise the file to be processed.
|
|
130
|
+
- Add the file mask to the default scheme properties in `app/constants/schemes.js` - this is referenced by `ffc-pay-batch-processor`
|
|
131
|
+
- Add the position of the sequence number within the payment file to `app/constants/sequence-positions.js` - as used by `ffc-pay-batch-processor` to determine the correct sequence number of the file for processing
|
|
132
|
+
|
|
133
|
+
> Remember that ffc-pay-gateway must still be updated with the inbound file path, server name, and other configuration. See <https://github.com/DEFRA/ffc-pay-gateway/pull/78> for an example.
|
|
134
|
+
|
|
135
|
+
For all schemes delivered via FRPS:
|
|
136
|
+
|
|
137
|
+
- Add the scheme ID to `app/constants/frps-schemes.js` - this allows services to understand if it has been delivered by FRPS, helping with numerous helpers for FRPS specific behaviours
|
|
138
|
+
|
|
139
|
+
For all schemes delivered via Siti Agri:
|
|
140
|
+
|
|
141
|
+
- Add the scheme ID to `app/constants/siti-agri-schemes.js` - this allows services to understand if it has been delivered by Siti Agri, helping with numerous helpers for Siti Agri specific behaviours
|
|
142
|
+
|
|
143
|
+
For all schemes which do not support PPAs:
|
|
144
|
+
|
|
145
|
+
- Add the scheme ID to `app/constants/schemes-not-requiring-ppas.js` - this tells `ffc-pay-processing` not to calculate PPAs
|
|
146
|
+
|
|
147
|
+
For all schemes which provide accounting values:
|
|
148
|
+
|
|
149
|
+
- Add the scheme ID to `app/constants/schemes-providing-account-values.js` - this tells `ffc-pay-enrichment` to mark the payment request as providing accounting values, and enables correct value reporting in Payment Hub reports
|
|
150
|
+
|
|
151
|
+
Completing all of these steps as required should allow Payment Hub to support payments for a new payment scheme, assuming there are no specific behaviours that differ from a general payment scheme.
|
|
152
|
+
|
|
108
153
|
## Licence
|
|
109
154
|
|
|
110
155
|
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT
|
|
@@ -126,4 +171,4 @@ public sector to license the use and re-use of their information under a common
|
|
|
126
171
|
open licence.
|
|
127
172
|
|
|
128
173
|
It is designed to encourage use and re-use of information freely and flexibly,
|
|
129
|
-
with only a few conditions.
|
|
174
|
+
with only a few conditions.
|
|
@@ -10,5 +10,6 @@ module.exports = {
|
|
|
10
10
|
SFI23: /^SITISFIA\d{4}_AP_\d*.dat$/,
|
|
11
11
|
DELINKED: /^SITIDP\d{4}_AP_\d*.dat$/,
|
|
12
12
|
SFI_EXPANDED: /^ESFIO\d{4}_AP_\d*.dat$/,
|
|
13
|
-
COHT_CAPITAL: /^SITICOHTC\d{4}_AP_\d*.dat
|
|
13
|
+
COHT_CAPITAL: /^SITICOHTC\d{4}_AP_\d*.dat$/,
|
|
14
|
+
SFI26: /^SITISFI26\d{4}_AP_\d*.dat$/
|
|
14
15
|
}
|
|
@@ -35,7 +35,8 @@ const {
|
|
|
35
35
|
COHT_CAPITAL,
|
|
36
36
|
COHT_REVENUE,
|
|
37
37
|
FPTT,
|
|
38
|
-
WMP
|
|
38
|
+
WMP,
|
|
39
|
+
SFI26
|
|
39
40
|
} = require('./pillars')
|
|
40
41
|
|
|
41
42
|
module.exports = {
|
|
@@ -75,5 +76,6 @@ module.exports = {
|
|
|
75
76
|
[COHT_CAPITAL]: 'PMAN_COHTC',
|
|
76
77
|
[COHT_REVENUE]: 'PMAN_COHTR',
|
|
77
78
|
[FPTT]: 'PMAN_FPTT',
|
|
78
|
-
[WMP]: 'PMAN_WMP'
|
|
79
|
+
[WMP]: 'PMAN_WMP',
|
|
80
|
+
[SFI26]: 'PMAN_SFI26'
|
|
79
81
|
}
|
package/app/constants/pillars.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
SFI: '
|
|
3
|
-
SFI_PILOT: '
|
|
2
|
+
SFI: 'SFI-22',
|
|
3
|
+
SFI_PILOT: 'SFI-P',
|
|
4
4
|
LUMP_SUMS: 'Lump Sums',
|
|
5
|
-
VET_VISITS: '
|
|
6
|
-
CS: '
|
|
7
|
-
BPS: '
|
|
8
|
-
MANUAL: 'Manual Injection',
|
|
9
|
-
ES: '
|
|
10
|
-
FC: '
|
|
11
|
-
IMPS: '
|
|
12
|
-
SFI23: '
|
|
5
|
+
VET_VISITS: 'Vet Visits (AHWR)',
|
|
6
|
+
CS: 'CS',
|
|
7
|
+
BPS: 'BPS',
|
|
8
|
+
MANUAL: 'Manual Payments (Injection)',
|
|
9
|
+
ES: 'Genesis (ES)',
|
|
10
|
+
FC: 'GLOS (FC)',
|
|
11
|
+
IMPS: 'IMPS',
|
|
12
|
+
SFI23: 'SFI-23',
|
|
13
13
|
DELINKED: 'Delinked Payments',
|
|
14
|
-
SFI_EXPANDED: '
|
|
15
|
-
COHT_REVENUE: '
|
|
16
|
-
COHT_CAPITAL: '
|
|
17
|
-
FPTT: '
|
|
18
|
-
WMP: '
|
|
14
|
+
SFI_EXPANDED: 'SFI-EO',
|
|
15
|
+
COHT_REVENUE: 'CS-HT (Revenue)',
|
|
16
|
+
COHT_CAPITAL: 'CS-HT (Capital)',
|
|
17
|
+
FPTT: 'FPTT',
|
|
18
|
+
WMP: 'WMP',
|
|
19
|
+
SFI26: 'SFI-26'
|
|
19
20
|
}
|
package/app/constants/schemes.js
CHANGED
|
@@ -136,5 +136,13 @@ module.exports = Object.freeze([
|
|
|
136
136
|
pillar: pillars.WMP,
|
|
137
137
|
deliveryBody: RP10,
|
|
138
138
|
fundCode: DRD10
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
schemeId: schemeIds.SFI26,
|
|
142
|
+
sourceSystem: sourceSystems.SFI26,
|
|
143
|
+
pillar: pillars.SFI26,
|
|
144
|
+
deliveryBody: RP00,
|
|
145
|
+
fundCode: DRD10,
|
|
146
|
+
fileMask: fileMasks.SFI26
|
|
139
147
|
}
|
|
140
148
|
])
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const { SFI, SFI_PILOT, LUMP_SUMS, CS, BPS, SFI23, DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL } = require('../constants/scheme-ids')
|
|
1
|
+
const { SFI, SFI_PILOT, LUMP_SUMS, CS, BPS, SFI23, DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL, SFI26 } = require('../constants/scheme-ids')
|
|
2
2
|
|
|
3
|
-
module.exports = [SFI, SFI_PILOT, LUMP_SUMS, CS, BPS, SFI23, DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL]
|
|
3
|
+
module.exports = [SFI, SFI_PILOT, LUMP_SUMS, CS, BPS, SFI23, DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL, SFI26]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { MANUAL: MANUAL_SOURCE } = require('../constants/source-systems')
|
|
2
|
-
const { MANUAL, FC, FPTT, WMP, DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL, SFI, SFI_PILOT, LUMP_SUMS, CS, BPS, SFI23, ES, IMPS } = require('../constants/scheme-ids')
|
|
2
|
+
const { MANUAL, FC, FPTT, WMP, DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL, SFI, SFI_PILOT, LUMP_SUMS, CS, BPS, SFI23, ES, IMPS, SFI26 } = require('../constants/scheme-ids')
|
|
3
3
|
const { createStandardSchemeInvoiceNumber } = require('./create-standard-scheme-invoice-number')
|
|
4
4
|
const { createSitiAgriInvoiceNumber } = require('./create-siti-agri-invoice-number')
|
|
5
5
|
const { createESInvoiceNumber } = require('./create-es-invoice-number')
|
|
@@ -12,7 +12,7 @@ const createInvoiceNumber = (paymentRequest) => {
|
|
|
12
12
|
if (schemesWithAcceptedInvoiceNumbers.has(paymentRequest.schemeId) || paymentRequest?.sourceSystem === MANUAL_SOURCE) {
|
|
13
13
|
return paymentRequest.invoiceNumber
|
|
14
14
|
}
|
|
15
|
-
const standardSchemeInvoices = new Set([DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL])
|
|
15
|
+
const standardSchemeInvoices = new Set([DELINKED, SFI_EXPANDED, COHT_REVENUE, COHT_CAPITAL, SFI26])
|
|
16
16
|
if (standardSchemeInvoices.has(paymentRequest.schemeId)) {
|
|
17
17
|
return createStandardSchemeInvoiceNumber(paymentRequest)
|
|
18
18
|
}
|
|
@@ -11,7 +11,8 @@ const {
|
|
|
11
11
|
COHT_REVENUE,
|
|
12
12
|
COHT_CAPITAL,
|
|
13
13
|
FPTT,
|
|
14
|
-
WMP
|
|
14
|
+
WMP,
|
|
15
|
+
SFI26
|
|
15
16
|
} = require('../constants/scheme-ids')
|
|
16
17
|
|
|
17
18
|
const defaultMap = require('./default-map')
|
|
@@ -36,7 +37,8 @@ const schemeMap = new Map([
|
|
|
36
37
|
[COHT_REVENUE, defaultMap],
|
|
37
38
|
[COHT_CAPITAL, cohtcMap],
|
|
38
39
|
[FPTT, sfiFrpsMap],
|
|
39
|
-
[WMP, sfiFrpsMap]
|
|
40
|
+
[WMP, sfiFrpsMap],
|
|
41
|
+
[SFI26, sfiFrpsMap]
|
|
40
42
|
])
|
|
41
43
|
|
|
42
44
|
const getAccountCodeMap = (schemeId) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" ?>
|
|
2
2
|
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
|
3
|
-
<coverage lines-valid="326" lines-covered="300" line-rate="0.9201999999999999" branches-valid="67" branches-covered="67" branch-rate="1" timestamp="
|
|
3
|
+
<coverage lines-valid="326" lines-covered="300" line-rate="0.9201999999999999" branches-valid="67" branches-covered="67" branch-rate="1" timestamp="1789476417452" complexity="0" version="0.1">
|
|
4
4
|
<sources>
|
|
5
5
|
<source>/home/samplackett/ffc-pay-schemes</source>
|
|
6
6
|
</sources>
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
<methods>
|
|
83
83
|
</methods>
|
|
84
84
|
<lines>
|
|
85
|
-
<line number="
|
|
86
|
-
<line number="
|
|
85
|
+
<line number="40" hits="1" branch="false"/>
|
|
86
|
+
<line number="42" hits="1" branch="false"/>
|
|
87
87
|
</lines>
|
|
88
88
|
</class>
|
|
89
89
|
<class name="pillars.js" filename="app/constants/pillars.js" line-rate="1" branch-rate="1">
|
|
@@ -457,13 +457,12 @@
|
|
|
457
457
|
<methods>
|
|
458
458
|
<method name="(anonymous_0)" hits="19" signature="()V">
|
|
459
459
|
<lines>
|
|
460
|
-
<line number="
|
|
460
|
+
<line number="44" hits="19"/>
|
|
461
461
|
</lines>
|
|
462
462
|
</method>
|
|
463
463
|
</methods>
|
|
464
464
|
<lines>
|
|
465
|
-
<line number="
|
|
466
|
-
<line number="17" hits="1" branch="false"/>
|
|
465
|
+
<line number="16" hits="1" branch="false"/>
|
|
467
466
|
<line number="18" hits="1" branch="false"/>
|
|
468
467
|
<line number="19" hits="1" branch="false"/>
|
|
469
468
|
<line number="20" hits="1" branch="false"/>
|
|
@@ -471,15 +470,16 @@
|
|
|
471
470
|
<line number="22" hits="1" branch="false"/>
|
|
472
471
|
<line number="23" hits="1" branch="false"/>
|
|
473
472
|
<line number="24" hits="1" branch="false"/>
|
|
474
|
-
<line number="
|
|
475
|
-
<line number="
|
|
476
|
-
<line number="43" hits="19" branch="true" condition-coverage="100% (2/2)"/>
|
|
473
|
+
<line number="25" hits="1" branch="false"/>
|
|
474
|
+
<line number="27" hits="1" branch="false"/>
|
|
477
475
|
<line number="44" hits="1" branch="false"/>
|
|
478
|
-
<line number="
|
|
479
|
-
<line number="
|
|
480
|
-
<line number="49" hits="
|
|
481
|
-
<line number="
|
|
482
|
-
<line number="
|
|
476
|
+
<line number="45" hits="19" branch="true" condition-coverage="100% (2/2)"/>
|
|
477
|
+
<line number="46" hits="1" branch="false"/>
|
|
478
|
+
<line number="49" hits="18" branch="false"/>
|
|
479
|
+
<line number="50" hits="18" branch="true" condition-coverage="100% (2/2)"/>
|
|
480
|
+
<line number="51" hits="13" branch="false"/>
|
|
481
|
+
<line number="54" hits="5" branch="false"/>
|
|
482
|
+
<line number="57" hits="1" branch="false"/>
|
|
483
483
|
</lines>
|
|
484
484
|
</class>
|
|
485
485
|
<class name="lump-sums-map.js" filename="app/get-account-code-map/lump-sums-map.js" line-rate="1" branch-rate="1">
|
|
@@ -612,62 +612,62 @@
|
|
|
612
612
|
</class>
|
|
613
613
|
<class name="is-siti-agri.js" filename="app/helpers/is-siti-agri.js" line-rate="1" branch-rate="1">
|
|
614
614
|
<methods>
|
|
615
|
-
<method name="(anonymous_0)" hits="
|
|
615
|
+
<method name="(anonymous_0)" hits="15" signature="()V">
|
|
616
616
|
<lines>
|
|
617
|
-
<line number="3" hits="
|
|
617
|
+
<line number="3" hits="15"/>
|
|
618
618
|
</lines>
|
|
619
619
|
</method>
|
|
620
620
|
</methods>
|
|
621
621
|
<lines>
|
|
622
622
|
<line number="1" hits="1" branch="false"/>
|
|
623
623
|
<line number="3" hits="1" branch="false"/>
|
|
624
|
-
<line number="4" hits="
|
|
624
|
+
<line number="4" hits="15" branch="false"/>
|
|
625
625
|
<line number="7" hits="1" branch="false"/>
|
|
626
626
|
</lines>
|
|
627
627
|
</class>
|
|
628
628
|
<class name="is-valid-scheme-id.js" filename="app/helpers/is-valid-scheme-id.js" line-rate="1" branch-rate="1">
|
|
629
629
|
<methods>
|
|
630
|
-
<method name="(anonymous_0)" hits="
|
|
630
|
+
<method name="(anonymous_0)" hits="20" signature="()V">
|
|
631
631
|
<lines>
|
|
632
|
-
<line number="3" hits="
|
|
632
|
+
<line number="3" hits="20"/>
|
|
633
633
|
</lines>
|
|
634
634
|
</method>
|
|
635
635
|
</methods>
|
|
636
636
|
<lines>
|
|
637
637
|
<line number="1" hits="1" branch="false"/>
|
|
638
638
|
<line number="3" hits="1" branch="false"/>
|
|
639
|
-
<line number="4" hits="
|
|
640
|
-
<line number="5" hits="
|
|
639
|
+
<line number="4" hits="20" branch="false"/>
|
|
640
|
+
<line number="5" hits="20" branch="false"/>
|
|
641
641
|
<line number="8" hits="1" branch="false"/>
|
|
642
642
|
</lines>
|
|
643
643
|
</class>
|
|
644
644
|
<class name="scheme-does-not-require-ppas.js" filename="app/helpers/scheme-does-not-require-ppas.js" line-rate="1" branch-rate="1">
|
|
645
645
|
<methods>
|
|
646
|
-
<method name="(anonymous_0)" hits="
|
|
646
|
+
<method name="(anonymous_0)" hits="19" signature="()V">
|
|
647
647
|
<lines>
|
|
648
|
-
<line number="3" hits="
|
|
648
|
+
<line number="3" hits="19"/>
|
|
649
649
|
</lines>
|
|
650
650
|
</method>
|
|
651
651
|
</methods>
|
|
652
652
|
<lines>
|
|
653
653
|
<line number="1" hits="1" branch="false"/>
|
|
654
654
|
<line number="3" hits="1" branch="false"/>
|
|
655
|
-
<line number="4" hits="
|
|
655
|
+
<line number="4" hits="19" branch="false"/>
|
|
656
656
|
<line number="7" hits="1" branch="false"/>
|
|
657
657
|
</lines>
|
|
658
658
|
</class>
|
|
659
659
|
<class name="scheme-provides-accounting-values.js" filename="app/helpers/scheme-provides-accounting-values.js" line-rate="1" branch-rate="1">
|
|
660
660
|
<methods>
|
|
661
|
-
<method name="(anonymous_0)" hits="
|
|
661
|
+
<method name="(anonymous_0)" hits="19" signature="()V">
|
|
662
662
|
<lines>
|
|
663
|
-
<line number="3" hits="
|
|
663
|
+
<line number="3" hits="19"/>
|
|
664
664
|
</lines>
|
|
665
665
|
</method>
|
|
666
666
|
</methods>
|
|
667
667
|
<lines>
|
|
668
668
|
<line number="1" hits="1" branch="false"/>
|
|
669
669
|
<line number="3" hits="1" branch="false"/>
|
|
670
|
-
<line number="4" hits="
|
|
670
|
+
<line number="4" hits="19" branch="false"/>
|
|
671
671
|
<line number="7" hits="1" branch="false"/>
|
|
672
672
|
</lines>
|
|
673
673
|
</class>
|
|
@@ -820,21 +820,21 @@
|
|
|
820
820
|
<classes>
|
|
821
821
|
<class name="get-scheme-batch-properties.js" filename="app/scheme-properties/get-scheme-batch-properties.js" line-rate="1" branch-rate="1">
|
|
822
822
|
<methods>
|
|
823
|
-
<method name="(anonymous_0)" hits="
|
|
823
|
+
<method name="(anonymous_0)" hits="19" signature="()V">
|
|
824
824
|
<lines>
|
|
825
|
-
<line number="3" hits="
|
|
825
|
+
<line number="3" hits="19"/>
|
|
826
826
|
</lines>
|
|
827
827
|
</method>
|
|
828
|
-
<method name="(anonymous_1)" hits="
|
|
828
|
+
<method name="(anonymous_1)" hits="189" signature="()V">
|
|
829
829
|
<lines>
|
|
830
|
-
<line number="4" hits="
|
|
830
|
+
<line number="4" hits="189"/>
|
|
831
831
|
</lines>
|
|
832
832
|
</method>
|
|
833
833
|
</methods>
|
|
834
834
|
<lines>
|
|
835
835
|
<line number="1" hits="1" branch="false"/>
|
|
836
836
|
<line number="3" hits="1" branch="false"/>
|
|
837
|
-
<line number="4" hits="
|
|
837
|
+
<line number="4" hits="189" branch="false"/>
|
|
838
838
|
<line number="7" hits="1" branch="false"/>
|
|
839
839
|
</lines>
|
|
840
840
|
</class>
|
|
@@ -861,24 +861,24 @@
|
|
|
861
861
|
</class>
|
|
862
862
|
<class name="get-scheme-properties.js" filename="app/scheme-properties/get-scheme-properties.js" line-rate="1" branch-rate="1">
|
|
863
863
|
<methods>
|
|
864
|
-
<method name="(anonymous_0)" hits="
|
|
864
|
+
<method name="(anonymous_0)" hits="57" signature="()V">
|
|
865
865
|
<lines>
|
|
866
|
-
<line number="4" hits="
|
|
866
|
+
<line number="4" hits="57"/>
|
|
867
867
|
</lines>
|
|
868
868
|
</method>
|
|
869
|
-
<method name="(anonymous_1)" hits="
|
|
869
|
+
<method name="(anonymous_1)" hits="374" signature="()V">
|
|
870
870
|
<lines>
|
|
871
|
-
<line number="6" hits="
|
|
871
|
+
<line number="6" hits="374"/>
|
|
872
872
|
</lines>
|
|
873
873
|
</method>
|
|
874
|
-
<method name="(anonymous_2)" hits="
|
|
874
|
+
<method name="(anonymous_2)" hits="171" signature="()V">
|
|
875
875
|
<lines>
|
|
876
|
-
<line number="7" hits="
|
|
876
|
+
<line number="7" hits="171"/>
|
|
877
877
|
</lines>
|
|
878
878
|
</method>
|
|
879
|
-
<method name="(anonymous_3)" hits="
|
|
879
|
+
<method name="(anonymous_3)" hits="19" signature="()V">
|
|
880
880
|
<lines>
|
|
881
|
-
<line number="14" hits="
|
|
881
|
+
<line number="14" hits="19"/>
|
|
882
882
|
</lines>
|
|
883
883
|
</method>
|
|
884
884
|
</methods>
|
|
@@ -886,29 +886,29 @@
|
|
|
886
886
|
<line number="1" hits="1" branch="false"/>
|
|
887
887
|
<line number="2" hits="1" branch="false"/>
|
|
888
888
|
<line number="4" hits="1" branch="false"/>
|
|
889
|
-
<line number="5" hits="
|
|
890
|
-
<line number="6" hits="
|
|
891
|
-
<line number="7" hits="
|
|
892
|
-
<line number="9" hits="
|
|
889
|
+
<line number="5" hits="57" branch="true" condition-coverage="100% (2/2)"/>
|
|
890
|
+
<line number="6" hits="374" branch="false"/>
|
|
891
|
+
<line number="7" hits="171" branch="false"/>
|
|
892
|
+
<line number="9" hits="57" branch="true" condition-coverage="100% (2/2)"/>
|
|
893
893
|
<line number="10" hits="1" branch="false"/>
|
|
894
|
-
<line number="13" hits="
|
|
895
|
-
<line number="14" hits="
|
|
894
|
+
<line number="13" hits="56" branch="true" condition-coverage="100% (4/4)"/>
|
|
895
|
+
<line number="14" hits="19" branch="false"/>
|
|
896
896
|
<line number="16" hits="2" branch="true" condition-coverage="100% (2/2)"/>
|
|
897
897
|
<line number="17" hits="1" branch="false"/>
|
|
898
|
-
<line number="26" hits="
|
|
898
|
+
<line number="26" hits="56" branch="false"/>
|
|
899
899
|
<line number="29" hits="1" branch="false"/>
|
|
900
900
|
</lines>
|
|
901
901
|
</class>
|
|
902
902
|
<class name="get-schemes.js" filename="app/scheme-properties/get-schemes.js" line-rate="1" branch-rate="1">
|
|
903
903
|
<methods>
|
|
904
|
-
<method name="(anonymous_0)" hits="
|
|
904
|
+
<method name="(anonymous_0)" hits="19" signature="()V">
|
|
905
905
|
<lines>
|
|
906
|
-
<line number="6" hits="
|
|
906
|
+
<line number="6" hits="19"/>
|
|
907
907
|
</lines>
|
|
908
908
|
</method>
|
|
909
|
-
<method name="(anonymous_1)" hits="
|
|
909
|
+
<method name="(anonymous_1)" hits="342" signature="()V">
|
|
910
910
|
<lines>
|
|
911
|
-
<line number="7" hits="
|
|
911
|
+
<line number="7" hits="342"/>
|
|
912
912
|
</lines>
|
|
913
913
|
</method>
|
|
914
914
|
</methods>
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
<line number="3" hits="1" branch="false"/>
|
|
919
919
|
<line number="4" hits="1" branch="false"/>
|
|
920
920
|
<line number="6" hits="1" branch="false"/>
|
|
921
|
-
<line number="7" hits="
|
|
921
|
+
<line number="7" hits="342" branch="false"/>
|
|
922
922
|
<line number="14" hits="1" branch="false"/>
|
|
923
923
|
</lines>
|
|
924
924
|
</class>
|