From 0722e5e58544390b2b653f2f405df8c8119d71fc Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Fri, 29 Mar 2019 10:04:46 +0000
Subject: [PATCH] Bug 22521: (QA follow-up) Update 'Offsets' test

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
---
 t/db_dependent/Koha/Account/Offsets.t | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/t/db_dependent/Koha/Account/Offsets.t b/t/db_dependent/Koha/Account/Offsets.t
index 4ebdc5df12..8befae50cf 100755
--- a/t/db_dependent/Koha/Account/Offsets.t
+++ b/t/db_dependent/Koha/Account/Offsets.t
@@ -44,17 +44,17 @@ subtest 'total_outstanding() tests' => sub {
     my $amount_5 = 500;
 
     my $offset_1 = Koha::Account::Offset->new(
-        { type => 'Fine', amount => $amount_1, credit_id => $line->id } )->store;
+        { type => 'OVERDUE', amount => $amount_1, credit_id => $line->id } )->store;
     my $offset_2 = Koha::Account::Offset->new(
-        { type => 'Fine', amount => $amount_2, credit_id => $line->id } )->store;
+        { type => 'OVERDUE', amount => $amount_2, credit_id => $line->id } )->store;
     my $offset_3 = Koha::Account::Offset->new(
         { type => 'Payment', amount => $amount_3, credit_id => $line->id } )->store;
     my $offset_4 = Koha::Account::Offset->new(
         { type => 'Payment', amount => $amount_4, credit_id => $line->id } )->store;
     my $offset_5 = Koha::Account::Offset->new(
-        { type => 'Fine', amount => $amount_5, credit_id => $line->id } )->store;
+        { type => 'OVERDUE', amount => $amount_5, credit_id => $line->id } )->store;
 
-    my $debits = Koha::Account::Offsets->search( { type => 'Fine', credit_id => $line->id } );
+    my $debits = Koha::Account::Offsets->search( { type => 'OVERDUE', credit_id => $line->id } );
     is( $debits->total, $amount_1 + $amount_2 + $amount_5 );
 
     my $credits = Koha::Account::Offsets->search( { type => 'Payment', credit_id => $line->id } );
-- 
2.20.1