From c2f296aa73e620c4556081f6dcfc4c4a222d1313 Mon Sep 17 00:00:00 2001 From: Alan Cruikshanks Date: Wed, 3 Apr 2024 22:30:39 +0100 Subject: [PATCH] Fix send bill run unflagging licences https://eaflood.atlassian.net/browse/WATER-4390 In a recent change we [Migrated legacy send bill run functionality](https://github.com/DEFRA/water-abstraction-system/pull/771) to our service. We though all was well but then recently spotted an issue. When we are 'sending' a bill run (telling the CHA to generate the transaction file for SOP that results in the bills being sent to customers) we are calling our `SubmitSendBillRunService` which in turn is calling `UnflagBilledLicencesService`. Only it shouldn't be doing this _all_ the time. It should only be calling that service if the bill run is supplementary. This change fixes the issue.