File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
perllib/FixMyStreet/Cobrand/Bexley Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ sub lookup_subscription_for_uprn {
49
49
50
50
my $results = $self -> agile-> CustomerSearch($uprn );
51
51
52
- # find the first 'ACTIVATED' Customer with an 'ACTIVE' contract
52
+ # find the first 'ACTIVATED' Customer with an 'ACTIVE'/'PRECONTRACT' contract
53
53
my $customers = $results -> {Customers } || [];
54
54
OUTER: for ( @$customers ) {
55
55
next unless $_ -> {CustomertStatus } eq ' ACTIVATED' ; # CustomertStatus (sic) options seem to be ACTIVATED/INACTIVE
56
56
my $contracts = $_ -> {ServiceContracts } || [];
57
57
next unless $contracts ;
58
58
$customer = $_ ;
59
59
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
61
61
$contract = $_ ;
62
62
# use the first matching customer/contract
63
63
last OUTER if $customer && $contract ;
You can’t perform that action at this time.
0 commit comments