Skip to content

Commit c1683af

Browse files
committed
fixup! [Bexley] Only show active GGW subs from Agile
1 parent 248310b commit c1683af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perllib/FixMyStreet/Cobrand/Bexley/Garden.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ sub lookup_subscription_for_uprn {
4949

5050
my $results = $self->agile->CustomerSearch($uprn);
5151

52-
# find the first 'ACTIVATED' Customer with an 'ACTIVE' contract
52+
# find the first 'ACTIVATED' Customer with an 'ACTIVE'/'PRECONTRACT' contract
5353
my $customers = $results->{Customers} || [];
5454
OUTER: for ( @$customers ) {
5555
next unless $_->{CustomertStatus} eq 'ACTIVATED'; # CustomertStatus (sic) options seem to be ACTIVATED/INACTIVE
5656
my $contracts = $_->{ServiceContracts} || [];
5757
next unless $contracts;
5858
$customer = $_;
5959
for ( @$contracts ) {
60-
next unless $_->{ServiceContractStatus} eq 'ACTIVE'; # Options seem to be ACTIVE/NOACTIVE
60+
next unless $_->{ServiceContractStatus} =~ /(ACTIVE|PRECONTRACT)/; # Options seem to be ACTIVE/NOACTIVE/PRECONTRACT
6161
$contract = $_;
6262
# use the first matching customer/contract
6363
last OUTER if $customer && $contract;

0 commit comments

Comments
 (0)