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 {
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 ;
You can’t perform that action at this time.
0 commit comments