Commit 00a1b5a 1 parent 286b972 commit 00a1b5a Copy full SHA for 00a1b5a
File tree 2 files changed +3
-1
lines changed
perllib/Open311/Endpoint/Role
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ chosen for garden/bulky.
12
12
13
13
package Open311::Endpoint::Role::SLWP ;
14
14
15
+ use utf8;
15
16
use Moo::Role;
16
17
17
18
around check_for_data_value => sub {
@@ -53,6 +54,7 @@ around post_service_request_update => sub {
53
54
54
55
if ($args -> {description } =~ / Payment confirmed, reference (.*), amount (.*)/ ) {
55
56
my ($ref , $amount ) = ($1 , $2 );
57
+ $amount =~ s / £// ;
56
58
my $integ = $class -> get_integration;
57
59
my $event = $integ -> GetEvent($args -> {service_request_id });
58
60
# Could GetEventType and loop through it all to find these IDs out but for just this seemed okay
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ $soap_lite->mock(call => sub {
74
74
is $ref [1]-> value, ' ABC' ;
75
75
@ref = ${$child [1]-> value}-> value;
76
76
is $ref [0]-> value, 27411;
77
- is $ref [1]-> value, ' £ 34.56' ;
77
+ is $ref [1]-> value, ' 34.56' ;
78
78
} else {
79
79
is @params , ' UNKNOWN' ;
80
80
}
You can’t perform that action at this time.
0 commit comments