Skip to content

Commit

Permalink
[Bromley] [Waste] Send amount to refund in refund request.
Browse files Browse the repository at this point in the history
  • Loading branch information
neprune committed Nov 8, 2023
1 parent 11d7a3b commit 2b3da40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions perllib/FixMyStreet/Cobrand/Bromley.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ sub bulky_refund_collection {

wasteworks_id => $collection_report->id,
payment_amount => $collection_report->get_extra_field_value('payment'),
refund_amount => $self->bulky_refund_amount($collection_report),
payment_method =>
$collection_report->get_extra_field_value('payment_method'),
payment_code =>
Expand Down
1 change: 1 addition & 0 deletions t/app/controller/waste_bromley_bulky.t
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ FixMyStreet::override_config {
like $text, qr/Resident's Email: ${user_email}/, "Includes resident's email";
# =C2=A3 is the quoted printable for '£'.
like $text, qr/Payment Amount: =C2=A35.01/, "Correct payment amount";
like $text, qr/Amount To Refund: =C2=A30.01/, "Correct payment amount";
like $text, qr/Capita SCP Response: 12345/,
'Correct SCP response';
# XXX Not picking up on mocked time
Expand Down
2 changes: 2 additions & 0 deletions templates/email/bromley/waste/bulky-refund-request.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Payment Date: [% USE date; date.format( payment_date, '%d/%m/%y %H:%M' ) %]

Payment Amount: £[% pounds(payment_amount / 100) %]

Amount To Refund: £[% pounds(refund_amount / 100) %]

[% IF payment_method == 'csc' %]
PAYE.net code: [% payment_code %]
[% ELSE %]
Expand Down

0 comments on commit 2b3da40

Please sign in to comment.