diff --git a/app/services/supplementary-billing/create-billing-batch.service.js b/app/services/supplementary-billing/create-billing-batch.service.js index 2978a43b35..960dbc9cbf 100644 --- a/app/services/supplementary-billing/create-billing-batch.service.js +++ b/app/services/supplementary-billing/create-billing-batch.service.js @@ -26,7 +26,7 @@ async function go (regionId, billingPeriod, batchType = 'supplementary', scheme batchType, fromFinancialYearEnding: billingPeriod.endDate.getFullYear(), toFinancialYearEnding: billingPeriod.endDate.getFullYear(), - status: 'processing', + status: 'queued', scheme, source, externalId diff --git a/test/services/supplementary-billing/create-billing-batch.service.test.js b/test/services/supplementary-billing/create-billing-batch.service.test.js index e3af22a63e..4f2bdef404 100644 --- a/test/services/supplementary-billing/create-billing-batch.service.test.js +++ b/test/services/supplementary-billing/create-billing-batch.service.test.js @@ -32,7 +32,7 @@ describe('Create Billing Batch service', () => { expect(result).to.be.an.instanceOf(BillingBatchModel) - expect(result.status).to.equal('processing') + expect(result.status).to.equal('queued') expect(result.fromFinancialYearEnding).to.equal(2023) expect(result.toFinancialYearEnding).to.equal(2023) expect(result.batchType).to.equal('supplementary') @@ -56,7 +56,7 @@ describe('Create Billing Batch service', () => { expect(result).to.be.an.instanceOf(BillingBatchModel) - expect(result.status).to.equal('processing') + expect(result.status).to.equal('queued') expect(result.fromFinancialYearEnding).to.equal(2023) expect(result.toFinancialYearEnding).to.equal(2023) expect(result.batchType).to.equal(batchType) diff --git a/test/services/supplementary-billing/initiate-billing-batch.service.test.js b/test/services/supplementary-billing/initiate-billing-batch.service.test.js index cbfbffe299..c2c4123999 100644 --- a/test/services/supplementary-billing/initiate-billing-batch.service.test.js +++ b/test/services/supplementary-billing/initiate-billing-batch.service.test.js @@ -82,7 +82,7 @@ describe('Initiate Billing Batch service', () => { expect(result.region).to.equal(billingBatch.regionId) expect(result.scheme).to.equal('sroc') expect(result.batchType).to.equal('supplementary') - expect(result.status).to.equal('processing') + expect(result.status).to.equal('queued') }) }) diff --git a/test/support/helpers/water/billing-batch.helper.js b/test/support/helpers/water/billing-batch.helper.js index 0b21968cc8..5f9008721f 100644 --- a/test/support/helpers/water/billing-batch.helper.js +++ b/test/support/helpers/water/billing-batch.helper.js @@ -15,7 +15,7 @@ const BillingBatchModel = require('../../../../app/models/water/billing-batch.mo * - `batchType` - supplementary * - `fromFinancialYearEnding` - 2023 * - `toFinancialYearEnding` - 2023 - * - `status` - processing + * - `status` - queued * - `scheme` - sroc * - `source` - wrls * @@ -45,7 +45,7 @@ function defaults (data = {}) { batchType: 'supplementary', fromFinancialYearEnding: 2023, toFinancialYearEnding: 2023, - status: 'processing', + status: 'queued', scheme: 'sroc', source: 'wrls' }