ffc-pay-schemes 1.1.0 → 1.1.2
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 +5 -0
- package/app/scheme-id/get-siti-agri-scheme-ids.js +9 -0
- package/app/scheme-properties/get-siti-agri-schemes.js +16 -0
- package/index.js +5 -1
- package/jest.config.js +2 -1
- package/package.json +3 -2
- package/sonar-project.properties +2 -2
- package/test/unit/helpers/get-batch-sequence-from-file-name.test.js +1 -5
- package/test/unit/scheme-id/get-siti-agri-scheme-ids.test.js +8 -0
- package/test/unit/{helpers → scheme-id}/is-valid-scheme-id.test.js +1 -1
- package/test/unit/scheme-properties/get-siti-agri-schemes.test.js +18 -0
- package/test-output/cobertura-coverage.xml +75 -64
- package/test-output/junit.xml +407 -399
- package/test-output/lcov-report/constants/account-codes/ap.js.html +229 -0
- package/test-output/lcov-report/constants/account-codes/ar-admin.js.html +229 -0
- package/test-output/lcov-report/constants/account-codes/ar-irregular.js.html +226 -0
- package/test-output/lcov-report/constants/account-codes/index.html +146 -0
- package/test-output/lcov-report/constants/batch-schemes.js.html +94 -0
- package/test-output/lcov-report/constants/delivery-bodies.js.html +103 -0
- package/test-output/lcov-report/constants/description-codes.js.html +187 -0
- package/test-output/lcov-report/constants/file-masks.js.html +130 -0
- package/test-output/lcov-report/constants/frps-schemes.js.html +94 -0
- package/test-output/lcov-report/constants/fund-codes.js.html +109 -0
- package/test-output/lcov-report/constants/index.html +371 -0
- package/test-output/lcov-report/constants/manual-sources.js.html +328 -0
- package/test-output/lcov-report/constants/pillars.js.html +208 -0
- package/test-output/lcov-report/constants/scheme-batch-properties.js.html +421 -0
- package/test-output/lcov-report/constants/scheme-ids.js.html +145 -0
- package/test-output/lcov-report/constants/scheme-names.js.html +145 -0
- package/test-output/lcov-report/constants/schemes-not-requiring-ppas.js.html +94 -0
- package/test-output/lcov-report/constants/schemes-providing-account-values.js.html +94 -0
- package/test-output/lcov-report/constants/schemes.js.html +529 -0
- package/test-output/lcov-report/constants/sequence-positions.js.html +127 -0
- package/test-output/lcov-report/constants/siti-agri-schemes.js.html +94 -0
- package/test-output/lcov-report/constants/source-systems.js.html +145 -0
- package/test-output/lcov-report/constants/unknown.js.html +94 -0
- package/test-output/lcov-report/create-invoice-number/create-default-invoice-number.js.html +118 -0
- package/test-output/lcov-report/create-invoice-number/create-es-invoice-number.js.html +106 -0
- package/test-output/lcov-report/create-invoice-number/create-imps-invoice-number.js.html +127 -0
- package/test-output/lcov-report/create-invoice-number/create-siti-agri-invoice-number.js.html +121 -0
- package/test-output/lcov-report/create-invoice-number/create-standard-scheme-invoice-number.js.html +121 -0
- package/test-output/lcov-report/create-invoice-number/index.html +206 -0
- package/test-output/lcov-report/create-invoice-number/index.js.html +199 -0
- package/test-output/lcov-report/create-invoice-number/use-invoice-number-as-is.js.html +106 -0
- package/test-output/lcov-report/create-split-invoice-number/create-default-invoice-number.js.html +121 -0
- package/test-output/lcov-report/create-split-invoice-number/create-siti-agri-invoice-number.js.html +121 -0
- package/test-output/lcov-report/create-split-invoice-number/index.html +146 -0
- package/test-output/lcov-report/create-split-invoice-number/index.js.html +130 -0
- package/test-output/lcov-report/get-account-code-map/bps-map.js.html +508 -0
- package/test-output/lcov-report/get-account-code-map/cohtc-map.js.html +148 -0
- package/test-output/lcov-report/get-account-code-map/cs-map.js.html +607 -0
- package/test-output/lcov-report/get-account-code-map/default-map.js.html +223 -0
- package/test-output/lcov-report/get-account-code-map/delinked-map.js.html +178 -0
- package/test-output/lcov-report/get-account-code-map/index.html +236 -0
- package/test-output/lcov-report/get-account-code-map/index.js.html +262 -0
- package/test-output/lcov-report/get-account-code-map/lump-sums-map.js.html +118 -0
- package/test-output/lcov-report/get-account-code-map/sfi-frps-map.js.html +130 -0
- package/test-output/lcov-report/get-account-code-map/vet-visits-map.js.html +118 -0
- package/test-output/lcov-report/helpers/get-batch-sequence-from-file-name.js.html +187 -0
- package/test-output/lcov-report/helpers/get-journal-source-from-pillar.js.html +130 -0
- package/test-output/lcov-report/helpers/get-reporting-data-filter.js.html +154 -0
- package/test-output/lcov-report/helpers/get-siti-agri-scheme-ids.js.html +112 -0
- package/test-output/lcov-report/helpers/index.html +206 -0
- package/test-output/lcov-report/helpers/is-frps.js.html +112 -0
- package/test-output/lcov-report/helpers/is-siti-agri.js.html +112 -0
- package/test-output/lcov-report/helpers/is-valid-scheme-id.js.html +115 -0
- package/test-output/lcov-report/helpers/scheme-does-not-require-ppas.js.html +112 -0
- package/test-output/lcov-report/helpers/scheme-provides-accounting-values.js.html +112 -0
- package/test-output/lcov-report/index.html +32 -47
- package/test-output/lcov-report/pillar/get-pillar-from-scheme-id.js.html +118 -0
- package/test-output/lcov-report/pillar/get-pillars.js.html +112 -0
- package/test-output/lcov-report/pillar/index.html +131 -0
- package/test-output/lcov-report/scheme-id/get-scheme-id-from-pillar.js.html +115 -0
- package/test-output/lcov-report/scheme-id/get-scheme-id-from-source-system.js.html +115 -0
- package/test-output/lcov-report/scheme-id/get-scheme-ids.js.html +112 -0
- package/test-output/lcov-report/scheme-id/get-siti-agri-scheme-ids.js.html +112 -0
- package/test-output/lcov-report/scheme-id/index.html +176 -0
- package/test-output/lcov-report/scheme-id/is-valid-scheme-id.js.html +115 -0
- package/test-output/lcov-report/scheme-name/get-scheme-name-from-scheme-id.js.html +118 -0
- package/test-output/lcov-report/scheme-name/get-scheme-names.js.html +112 -0
- package/test-output/lcov-report/scheme-name/index.html +131 -0
- package/test-output/lcov-report/scheme-properties/get-scheme-batch-properties.js.html +112 -0
- package/test-output/lcov-report/scheme-properties/get-scheme-from-batch-file-name.js.html +118 -0
- package/test-output/lcov-report/scheme-properties/get-scheme-properties.js.html +178 -0
- package/test-output/lcov-report/scheme-properties/get-schemes.js.html +133 -0
- package/test-output/lcov-report/scheme-properties/get-siti-agri-schemes.js.html +133 -0
- package/test-output/lcov-report/scheme-properties/index.html +176 -0
- package/test-output/lcov-report/source-system/get-source-system-from-scheme-id.js.html +118 -0
- package/test-output/lcov-report/source-system/get-source-systems.js.html +112 -0
- package/test-output/lcov-report/source-system/index.html +131 -0
- package/test-output/lcov.info +61 -49
- /package/app/{helpers → scheme-id}/is-valid-scheme-id.js +0 -0
package/README.md
CHANGED
|
@@ -31,6 +31,8 @@ const {
|
|
|
31
31
|
getSchemeNames,
|
|
32
32
|
getSchemeProperties,
|
|
33
33
|
getSchemes,
|
|
34
|
+
getSitiAgriSchemeIds,
|
|
35
|
+
getSitiAgriSchemes,
|
|
34
36
|
getSourceSystemFromSchemeId,
|
|
35
37
|
getSourceSystems,
|
|
36
38
|
isFRPS,
|
|
@@ -58,10 +60,13 @@ const {
|
|
|
58
60
|
- `getSchemeNames()` returns all supported scheme names.
|
|
59
61
|
- `getSchemeProperties(schemeId, sourceSystem, pillar)` returns the default payment properties for a scheme. A scheme can be identified by its ID or source system. The optional `pillar` can be used for manual payments.
|
|
60
62
|
- `getSchemes()` returns all supported schemes as an array of objects containing `schemeId`, `schemeName`, `sourceSystem` and `pillar`.
|
|
63
|
+
- `getSitiAgriSchemeIds()` returns all scheme IDs where the scheme is delivered via Siti Agri.
|
|
64
|
+
- `getSitiAgriSchemes()` returns all Siti Agri delivered schemes as an array of objects containing `schemeId`, `schemeName`, `sourceSystem` and `pillar`.
|
|
61
65
|
- `getSourceSystemFromSchemeId(schemeId)` returns the source system name for a given `schemeId`.
|
|
62
66
|
- `getSourceSystems()` returns all supported source systems.
|
|
63
67
|
- `isFRPS(schemeId)` returns `true` if the scheme ID comes from FRPS, or `false` if not.
|
|
64
68
|
- `isSitiAgri(schemeId)` returns `true` if the scheme ID comes from Siti Agri, or `false` if not.
|
|
69
|
+
- `getSitiAgriSchemeIds()` returns all Siti Agri scheme IDs.
|
|
65
70
|
- `isValidSchemeId(schemeId)` returns `true` if the scheme ID is recognised, or `false` if not, including converting the scheme ID to a numeric value first if required.
|
|
66
71
|
- `schemeDoesNotRequirePPAs(schemeId)` returns `true` if Payment Hub does not support Post Payment Adjustments (PPAs) for a given `schemeId`; otherwise, it returns `false`.
|
|
67
72
|
- `schemeProvidesAccountingValues(schemeId)` returns `true` if a given `schemeId` provides accounting values within its payment requests; otherwise, it returns `false`.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const pillars = require('../constants/pillars')
|
|
2
|
+
const sitiAgriSchemeIds = require('../constants/siti-agri-schemes')
|
|
3
|
+
const schemeNames = require('../constants/scheme-names')
|
|
4
|
+
const sourceSystems = require('../constants/source-systems')
|
|
5
|
+
|
|
6
|
+
const getSitiAgriSchemes = () =>
|
|
7
|
+
Object.keys(sitiAgriSchemeIds).map((schemeKey) => ({
|
|
8
|
+
schemeId: sitiAgriSchemeIds[schemeKey],
|
|
9
|
+
schemeName: schemeNames[schemeKey],
|
|
10
|
+
sourceSystem: sourceSystems[schemeKey],
|
|
11
|
+
pillar: pillars[schemeKey]
|
|
12
|
+
}))
|
|
13
|
+
|
|
14
|
+
module.exports = {
|
|
15
|
+
getSitiAgriSchemes
|
|
16
|
+
}
|
package/index.js
CHANGED
|
@@ -15,11 +15,13 @@ const { getSchemeNameFromSchemeId } = require('./app/scheme-name/get-scheme-name
|
|
|
15
15
|
const { getSchemeNames } = require('./app/scheme-name/get-scheme-names')
|
|
16
16
|
const { getSchemeProperties } = require('./app/scheme-properties/get-scheme-properties')
|
|
17
17
|
const { getSchemes } = require('./app/scheme-properties/get-schemes')
|
|
18
|
+
const { getSitiAgriSchemeIds } = require('./app/scheme-id/get-siti-agri-scheme-ids')
|
|
19
|
+
const { getSitiAgriSchemes } = require('./app/scheme-properties/get-siti-agri-schemes')
|
|
18
20
|
const { getSourceSystemFromSchemeId } = require('./app/source-system/get-source-system-from-scheme-id')
|
|
19
21
|
const { getSourceSystems } = require('./app/source-system/get-source-systems')
|
|
20
22
|
const { isFRPS } = require('./app/helpers/is-frps')
|
|
21
23
|
const { isSitiAgri } = require('./app/helpers/is-siti-agri')
|
|
22
|
-
const { isValidSchemeId } = require('./app/
|
|
24
|
+
const { isValidSchemeId } = require('./app/scheme-id/is-valid-scheme-id')
|
|
23
25
|
const { schemeDoesNotRequirePPAs } = require('./app/helpers/scheme-does-not-require-ppas')
|
|
24
26
|
const { schemeProvidesAccountingValues } = require('./app/helpers/scheme-provides-accounting-values')
|
|
25
27
|
|
|
@@ -41,6 +43,8 @@ module.exports = {
|
|
|
41
43
|
getSchemeNames,
|
|
42
44
|
getSchemeProperties,
|
|
43
45
|
getSchemes,
|
|
46
|
+
getSitiAgriSchemeIds,
|
|
47
|
+
getSitiAgriSchemes,
|
|
44
48
|
getSourceSystemFromSchemeId,
|
|
45
49
|
getSourceSystems,
|
|
46
50
|
isFRPS,
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ffc-pay-schemes",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Module for defining and providing details for the payment schemes supported by the Payment Hub.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"author": "Defra DDTS",
|
|
19
19
|
"contributors": [
|
|
20
|
-
"Sam Plackett samuel.plackett@atos.ai"
|
|
20
|
+
"Sam Plackett samuel.plackett@atos.ai",
|
|
21
|
+
"Leigh Godson leigh.godson@atos.ai"
|
|
21
22
|
],
|
|
22
23
|
"license": "OGL-UK-3.0",
|
|
23
24
|
"bugs": {
|
package/sonar-project.properties
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
sonar.
|
|
1
|
+
sonar.exclusions=**/test/**,**/test-output/**,**/*.test.js,*snyk_report.html,*snyk_report.css,README.md,**/jest.config.js,**/jest.setup.js,**/eslint.config.js
|
|
2
|
+
sonar.coverage.exclusions=index.js
|
|
2
3
|
sonar.javascript.lcov.reportPaths=test-output/lcov.info
|
|
3
|
-
sonar.exclusions=/test/**,**/*.test.js,*snyk_report.html,*snyk_report.css,README.md
|
|
@@ -4,10 +4,6 @@ jest.mock('../../../app/constants/scheme-ids', () => ({
|
|
|
4
4
|
FPTT: 18
|
|
5
5
|
}))
|
|
6
6
|
|
|
7
|
-
jest.mock('../../../app/constants/sequence-positions', () => ({
|
|
8
|
-
SFI: 6
|
|
9
|
-
}))
|
|
10
|
-
|
|
11
7
|
const {
|
|
12
8
|
getBatchSequenceFromFileName
|
|
13
9
|
} = require('../../../app/helpers/get-batch-sequence-from-file-name')
|
|
@@ -16,7 +12,7 @@ const schemeIds = require('../../../app/constants/scheme-ids')
|
|
|
16
12
|
|
|
17
13
|
describe('getBatchSequenceFromFileName', () => {
|
|
18
14
|
test('returns the sequence using the scheme sequence position', () => {
|
|
19
|
-
const fileName = '
|
|
15
|
+
const fileName = 'prefix012345678.csv'
|
|
20
16
|
|
|
21
17
|
expect(
|
|
22
18
|
getBatchSequenceFromFileName(schemeIds.SFI, fileName)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const sitiAgriSchemes = require('../../../app/constants/siti-agri-schemes')
|
|
2
|
+
const { getSitiAgriSchemeIds } = require('../../../app/scheme-id/get-siti-agri-scheme-ids')
|
|
3
|
+
|
|
4
|
+
describe('getSitiAgriSchemeIds', () => {
|
|
5
|
+
test('returns the Siti Agri scheme IDs', () => {
|
|
6
|
+
expect(getSitiAgriSchemeIds()).toEqual(sitiAgriSchemes)
|
|
7
|
+
})
|
|
8
|
+
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const schemeIds = require('../../../app/constants/scheme-ids')
|
|
2
|
-
const { isValidSchemeId } = require('../../../app/
|
|
2
|
+
const { isValidSchemeId } = require('../../../app/scheme-id/is-valid-scheme-id')
|
|
3
3
|
|
|
4
4
|
describe('isValidSchemeId', () => {
|
|
5
5
|
test.each(Object.values(schemeIds))(
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const sitiAgriSchemeIds = require('../../../app/constants/siti-agri-schemes')
|
|
2
|
+
const schemeNames = require('../../../app/constants/scheme-names')
|
|
3
|
+
const sourceSystems = require('../../../app/constants/source-systems')
|
|
4
|
+
const pillars = require('../../../app/constants/pillars')
|
|
5
|
+
const { getSitiAgriSchemes } = require('../../../app/scheme-properties/get-siti-agri-schemes')
|
|
6
|
+
|
|
7
|
+
describe('getSitiAgriSchemes', () => {
|
|
8
|
+
test('returns one scheme object for each SITI Agri scheme id', () => {
|
|
9
|
+
const expected = Object.keys(sitiAgriSchemeIds).map((schemeKey) => ({
|
|
10
|
+
schemeId: sitiAgriSchemeIds[schemeKey],
|
|
11
|
+
schemeName: schemeNames[schemeKey],
|
|
12
|
+
sourceSystem: sourceSystems[schemeKey],
|
|
13
|
+
pillar: pillars[schemeKey]
|
|
14
|
+
}))
|
|
15
|
+
|
|
16
|
+
expect(getSitiAgriSchemes()).toEqual(expected)
|
|
17
|
+
})
|
|
18
|
+
})
|
|
@@ -1,47 +1,20 @@
|
|
|
1
1
|
<?xml version="1.0" ?>
|
|
2
2
|
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
|
3
|
-
<coverage lines-valid="
|
|
3
|
+
<coverage lines-valid="314" lines-covered="312" line-rate="0.9936" branches-valid="67" branches-covered="67" branch-rate="1" timestamp="1791818472377" complexity="0" version="0.1">
|
|
4
4
|
<sources>
|
|
5
5
|
<source>/home/samplackett/ffc-pay-schemes</source>
|
|
6
6
|
</sources>
|
|
7
7
|
<packages>
|
|
8
|
-
<package name="
|
|
8
|
+
<package name="constants" line-rate="0.9354" branch-rate="1">
|
|
9
9
|
<classes>
|
|
10
|
-
<class name="
|
|
10
|
+
<class name="batch-schemes.js" filename="app/constants/batch-schemes.js" line-rate="0" branch-rate="1">
|
|
11
11
|
<methods>
|
|
12
12
|
</methods>
|
|
13
13
|
<lines>
|
|
14
14
|
<line number="1" hits="0" branch="false"/>
|
|
15
|
-
<line number="2" hits="0" branch="false"/>
|
|
16
15
|
<line number="3" hits="0" branch="false"/>
|
|
17
|
-
<line number="4" hits="0" branch="false"/>
|
|
18
|
-
<line number="5" hits="0" branch="false"/>
|
|
19
|
-
<line number="6" hits="0" branch="false"/>
|
|
20
|
-
<line number="7" hits="0" branch="false"/>
|
|
21
|
-
<line number="8" hits="0" branch="false"/>
|
|
22
|
-
<line number="9" hits="0" branch="false"/>
|
|
23
|
-
<line number="10" hits="0" branch="false"/>
|
|
24
|
-
<line number="11" hits="0" branch="false"/>
|
|
25
|
-
<line number="12" hits="0" branch="false"/>
|
|
26
|
-
<line number="13" hits="0" branch="false"/>
|
|
27
|
-
<line number="14" hits="0" branch="false"/>
|
|
28
|
-
<line number="15" hits="0" branch="false"/>
|
|
29
|
-
<line number="16" hits="0" branch="false"/>
|
|
30
|
-
<line number="17" hits="0" branch="false"/>
|
|
31
|
-
<line number="18" hits="0" branch="false"/>
|
|
32
|
-
<line number="19" hits="0" branch="false"/>
|
|
33
|
-
<line number="20" hits="0" branch="false"/>
|
|
34
|
-
<line number="21" hits="0" branch="false"/>
|
|
35
|
-
<line number="22" hits="0" branch="false"/>
|
|
36
|
-
<line number="23" hits="0" branch="false"/>
|
|
37
|
-
<line number="24" hits="0" branch="false"/>
|
|
38
|
-
<line number="26" hits="0" branch="false"/>
|
|
39
16
|
</lines>
|
|
40
17
|
</class>
|
|
41
|
-
</classes>
|
|
42
|
-
</package>
|
|
43
|
-
<package name="ffc-pay-schemes.app.constants" line-rate="0.9655" branch-rate="1">
|
|
44
|
-
<classes>
|
|
45
18
|
<class name="delivery-bodies.js" filename="app/constants/delivery-bodies.js" line-rate="1" branch-rate="1">
|
|
46
19
|
<methods>
|
|
47
20
|
</methods>
|
|
@@ -90,7 +63,7 @@
|
|
|
90
63
|
<methods>
|
|
91
64
|
</methods>
|
|
92
65
|
<lines>
|
|
93
|
-
<line number="1" hits="
|
|
66
|
+
<line number="1" hits="5" branch="false"/>
|
|
94
67
|
</lines>
|
|
95
68
|
</class>
|
|
96
69
|
<class name="scheme-batch-properties.js" filename="app/constants/scheme-batch-properties.js" line-rate="1" branch-rate="1">
|
|
@@ -105,14 +78,14 @@
|
|
|
105
78
|
<methods>
|
|
106
79
|
</methods>
|
|
107
80
|
<lines>
|
|
108
|
-
<line number="1" hits="
|
|
81
|
+
<line number="1" hits="15" branch="false"/>
|
|
109
82
|
</lines>
|
|
110
83
|
</class>
|
|
111
84
|
<class name="scheme-names.js" filename="app/constants/scheme-names.js" line-rate="1" branch-rate="1">
|
|
112
85
|
<methods>
|
|
113
86
|
</methods>
|
|
114
87
|
<lines>
|
|
115
|
-
<line number="1" hits="
|
|
88
|
+
<line number="1" hits="3" branch="false"/>
|
|
116
89
|
</lines>
|
|
117
90
|
</class>
|
|
118
91
|
<class name="schemes-not-requiring-ppas.js" filename="app/constants/schemes-not-requiring-ppas.js" line-rate="1" branch-rate="1">
|
|
@@ -144,26 +117,26 @@
|
|
|
144
117
|
<line number="8" hits="1" branch="false"/>
|
|
145
118
|
</lines>
|
|
146
119
|
</class>
|
|
147
|
-
<class name="sequence-positions.js" filename="app/constants/sequence-positions.js" line-rate="
|
|
120
|
+
<class name="sequence-positions.js" filename="app/constants/sequence-positions.js" line-rate="1" branch-rate="1">
|
|
148
121
|
<methods>
|
|
149
122
|
</methods>
|
|
150
123
|
<lines>
|
|
151
|
-
<line number="1" hits="
|
|
124
|
+
<line number="1" hits="1" branch="false"/>
|
|
152
125
|
</lines>
|
|
153
126
|
</class>
|
|
154
127
|
<class name="siti-agri-schemes.js" filename="app/constants/siti-agri-schemes.js" line-rate="1" branch-rate="1">
|
|
155
128
|
<methods>
|
|
156
129
|
</methods>
|
|
157
130
|
<lines>
|
|
158
|
-
<line number="1" hits="
|
|
159
|
-
<line number="3" hits="
|
|
131
|
+
<line number="1" hits="3" branch="false"/>
|
|
132
|
+
<line number="3" hits="3" branch="false"/>
|
|
160
133
|
</lines>
|
|
161
134
|
</class>
|
|
162
135
|
<class name="source-systems.js" filename="app/constants/source-systems.js" line-rate="1" branch-rate="1">
|
|
163
136
|
<methods>
|
|
164
137
|
</methods>
|
|
165
138
|
<lines>
|
|
166
|
-
<line number="1" hits="
|
|
139
|
+
<line number="1" hits="5" branch="false"/>
|
|
167
140
|
</lines>
|
|
168
141
|
</class>
|
|
169
142
|
<class name="unknown.js" filename="app/constants/unknown.js" line-rate="1" branch-rate="1">
|
|
@@ -175,7 +148,7 @@
|
|
|
175
148
|
</class>
|
|
176
149
|
</classes>
|
|
177
150
|
</package>
|
|
178
|
-
<package name="
|
|
151
|
+
<package name="constants.account-codes" line-rate="1" branch-rate="1">
|
|
179
152
|
<classes>
|
|
180
153
|
<class name="ap.js" filename="app/constants/account-codes/ap.js" line-rate="1" branch-rate="1">
|
|
181
154
|
<methods>
|
|
@@ -200,7 +173,7 @@
|
|
|
200
173
|
</class>
|
|
201
174
|
</classes>
|
|
202
175
|
</package>
|
|
203
|
-
<package name="
|
|
176
|
+
<package name="create-invoice-number" line-rate="1" branch-rate="1">
|
|
204
177
|
<classes>
|
|
205
178
|
<class name="create-default-invoice-number.js" filename="app/create-invoice-number/create-default-invoice-number.js" line-rate="1" branch-rate="1">
|
|
206
179
|
<methods>
|
|
@@ -339,7 +312,7 @@
|
|
|
339
312
|
</class>
|
|
340
313
|
</classes>
|
|
341
314
|
</package>
|
|
342
|
-
<package name="
|
|
315
|
+
<package name="create-split-invoice-number" line-rate="1" branch-rate="1">
|
|
343
316
|
<classes>
|
|
344
317
|
<class name="create-default-invoice-number.js" filename="app/create-split-invoice-number/create-default-invoice-number.js" line-rate="1" branch-rate="1">
|
|
345
318
|
<methods>
|
|
@@ -396,7 +369,7 @@
|
|
|
396
369
|
</class>
|
|
397
370
|
</classes>
|
|
398
371
|
</package>
|
|
399
|
-
<package name="
|
|
372
|
+
<package name="get-account-code-map" line-rate="1" branch-rate="1">
|
|
400
373
|
<classes>
|
|
401
374
|
<class name="bps-map.js" filename="app/get-account-code-map/bps-map.js" line-rate="1" branch-rate="1">
|
|
402
375
|
<methods>
|
|
@@ -519,7 +492,7 @@
|
|
|
519
492
|
</class>
|
|
520
493
|
</classes>
|
|
521
494
|
</package>
|
|
522
|
-
<package name="
|
|
495
|
+
<package name="helpers" line-rate="1" branch-rate="1">
|
|
523
496
|
<classes>
|
|
524
497
|
<class name="get-batch-sequence-from-file-name.js" filename="app/helpers/get-batch-sequence-from-file-name.js" line-rate="1" branch-rate="1">
|
|
525
498
|
<methods>
|
|
@@ -625,22 +598,6 @@
|
|
|
625
598
|
<line number="7" hits="1" branch="false"/>
|
|
626
599
|
</lines>
|
|
627
600
|
</class>
|
|
628
|
-
<class name="is-valid-scheme-id.js" filename="app/helpers/is-valid-scheme-id.js" line-rate="1" branch-rate="1">
|
|
629
|
-
<methods>
|
|
630
|
-
<method name="(anonymous_0)" hits="20" signature="()V">
|
|
631
|
-
<lines>
|
|
632
|
-
<line number="3" hits="20"/>
|
|
633
|
-
</lines>
|
|
634
|
-
</method>
|
|
635
|
-
</methods>
|
|
636
|
-
<lines>
|
|
637
|
-
<line number="1" hits="1" branch="false"/>
|
|
638
|
-
<line number="3" hits="1" branch="false"/>
|
|
639
|
-
<line number="4" hits="20" branch="false"/>
|
|
640
|
-
<line number="5" hits="20" branch="false"/>
|
|
641
|
-
<line number="8" hits="1" branch="false"/>
|
|
642
|
-
</lines>
|
|
643
|
-
</class>
|
|
644
601
|
<class name="scheme-does-not-require-ppas.js" filename="app/helpers/scheme-does-not-require-ppas.js" line-rate="1" branch-rate="1">
|
|
645
602
|
<methods>
|
|
646
603
|
<method name="(anonymous_0)" hits="19" signature="()V">
|
|
@@ -673,7 +630,7 @@
|
|
|
673
630
|
</class>
|
|
674
631
|
</classes>
|
|
675
632
|
</package>
|
|
676
|
-
<package name="
|
|
633
|
+
<package name="pillar" line-rate="1" branch-rate="1">
|
|
677
634
|
<classes>
|
|
678
635
|
<class name="get-pillar-from-scheme-id.js" filename="app/pillar/get-pillar-from-scheme-id.js" line-rate="1" branch-rate="1">
|
|
679
636
|
<methods>
|
|
@@ -714,7 +671,7 @@
|
|
|
714
671
|
</class>
|
|
715
672
|
</classes>
|
|
716
673
|
</package>
|
|
717
|
-
<package name="
|
|
674
|
+
<package name="scheme-id" line-rate="1" branch-rate="1">
|
|
718
675
|
<classes>
|
|
719
676
|
<class name="get-scheme-id-from-pillar.js" filename="app/scheme-id/get-scheme-id-from-pillar.js" line-rate="1" branch-rate="1">
|
|
720
677
|
<methods>
|
|
@@ -773,9 +730,40 @@
|
|
|
773
730
|
<line number="7" hits="1" branch="false"/>
|
|
774
731
|
</lines>
|
|
775
732
|
</class>
|
|
733
|
+
<class name="get-siti-agri-scheme-ids.js" filename="app/scheme-id/get-siti-agri-scheme-ids.js" line-rate="1" branch-rate="1">
|
|
734
|
+
<methods>
|
|
735
|
+
<method name="(anonymous_0)" hits="1" signature="()V">
|
|
736
|
+
<lines>
|
|
737
|
+
<line number="3" hits="1"/>
|
|
738
|
+
</lines>
|
|
739
|
+
</method>
|
|
740
|
+
</methods>
|
|
741
|
+
<lines>
|
|
742
|
+
<line number="1" hits="1" branch="false"/>
|
|
743
|
+
<line number="3" hits="1" branch="false"/>
|
|
744
|
+
<line number="4" hits="1" branch="false"/>
|
|
745
|
+
<line number="7" hits="1" branch="false"/>
|
|
746
|
+
</lines>
|
|
747
|
+
</class>
|
|
748
|
+
<class name="is-valid-scheme-id.js" filename="app/scheme-id/is-valid-scheme-id.js" line-rate="1" branch-rate="1">
|
|
749
|
+
<methods>
|
|
750
|
+
<method name="(anonymous_0)" hits="20" signature="()V">
|
|
751
|
+
<lines>
|
|
752
|
+
<line number="3" hits="20"/>
|
|
753
|
+
</lines>
|
|
754
|
+
</method>
|
|
755
|
+
</methods>
|
|
756
|
+
<lines>
|
|
757
|
+
<line number="1" hits="1" branch="false"/>
|
|
758
|
+
<line number="3" hits="1" branch="false"/>
|
|
759
|
+
<line number="4" hits="20" branch="false"/>
|
|
760
|
+
<line number="5" hits="20" branch="false"/>
|
|
761
|
+
<line number="8" hits="1" branch="false"/>
|
|
762
|
+
</lines>
|
|
763
|
+
</class>
|
|
776
764
|
</classes>
|
|
777
765
|
</package>
|
|
778
|
-
<package name="
|
|
766
|
+
<package name="scheme-name" line-rate="1" branch-rate="1">
|
|
779
767
|
<classes>
|
|
780
768
|
<class name="get-scheme-name-from-scheme-id.js" filename="app/scheme-name/get-scheme-name-from-scheme-id.js" line-rate="1" branch-rate="1">
|
|
781
769
|
<methods>
|
|
@@ -816,7 +804,7 @@
|
|
|
816
804
|
</class>
|
|
817
805
|
</classes>
|
|
818
806
|
</package>
|
|
819
|
-
<package name="
|
|
807
|
+
<package name="scheme-properties" line-rate="1" branch-rate="1">
|
|
820
808
|
<classes>
|
|
821
809
|
<class name="get-scheme-batch-properties.js" filename="app/scheme-properties/get-scheme-batch-properties.js" line-rate="1" branch-rate="1">
|
|
822
810
|
<methods>
|
|
@@ -922,9 +910,32 @@
|
|
|
922
910
|
<line number="14" hits="1" branch="false"/>
|
|
923
911
|
</lines>
|
|
924
912
|
</class>
|
|
913
|
+
<class name="get-siti-agri-schemes.js" filename="app/scheme-properties/get-siti-agri-schemes.js" line-rate="1" branch-rate="1">
|
|
914
|
+
<methods>
|
|
915
|
+
<method name="(anonymous_0)" hits="1" signature="()V">
|
|
916
|
+
<lines>
|
|
917
|
+
<line number="6" hits="1"/>
|
|
918
|
+
</lines>
|
|
919
|
+
</method>
|
|
920
|
+
<method name="(anonymous_1)" hits="11" signature="()V">
|
|
921
|
+
<lines>
|
|
922
|
+
<line number="7" hits="11"/>
|
|
923
|
+
</lines>
|
|
924
|
+
</method>
|
|
925
|
+
</methods>
|
|
926
|
+
<lines>
|
|
927
|
+
<line number="1" hits="1" branch="false"/>
|
|
928
|
+
<line number="2" hits="1" branch="false"/>
|
|
929
|
+
<line number="3" hits="1" branch="false"/>
|
|
930
|
+
<line number="4" hits="1" branch="false"/>
|
|
931
|
+
<line number="6" hits="1" branch="false"/>
|
|
932
|
+
<line number="7" hits="11" branch="false"/>
|
|
933
|
+
<line number="14" hits="1" branch="false"/>
|
|
934
|
+
</lines>
|
|
935
|
+
</class>
|
|
925
936
|
</classes>
|
|
926
937
|
</package>
|
|
927
|
-
<package name="
|
|
938
|
+
<package name="source-system" line-rate="1" branch-rate="1">
|
|
928
939
|
<classes>
|
|
929
940
|
<class name="get-source-system-from-scheme-id.js" filename="app/source-system/get-source-system-from-scheme-id.js" line-rate="1" branch-rate="1">
|
|
930
941
|
<methods>
|