aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm3
-rw-r--r--perllib/Integrations/Echo.pm5
2 files changed, 7 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index d91570f83..add6ac6bb 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -581,6 +581,9 @@ sub bin_services_for_address {
if (!$completed && $row->{last}{date}->ymd eq $now->ymd) {
$row->{report_allowed} = 0;
}
+ if ($state eq 'Not Completed' || ($state eq 'Completed' && $resolution eq 'Excess Waste')) {
+ $row->{report_allowed} = 0;
+ }
}
}
diff --git a/perllib/Integrations/Echo.pm b/perllib/Integrations/Echo.pm
index ec21da8fa..2bd98b777 100644
--- a/perllib/Integrations/Echo.pm
+++ b/perllib/Integrations/Echo.pm
@@ -100,7 +100,10 @@ sub GetTasks {
Ref => { Value => { anyType => [ 234, 567 ] } },
CompletedDate => undef
},
- { Ref => { Value => { anyType => [ 345, 678 ] } }, CompletedDate => undef },
+ {
+ Ref => { Value => { anyType => [ 345, 678 ] } },
+ State => { Name => 'Not Completed' }
+ },
{ Ref => { Value => { anyType => [ 456, 789 ] } }, CompletedDate => undef },
] if $self->sample_data;