Bugzilla – Attachment 88270 Details for
Bug 22200
Forgiving a fine (FOR) does not create a FORGIVEN credit line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22200: Add Tests for change
Bug-22200-Add-Tests-for-change.patch (text/plain), 1.80 KB, created by
Martin Renvoize (ashimema)
on 2019-04-18 08:57:35 UTC
(
hide
)
Description:
Bug 22200: Add Tests for change
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-18 08:57:35 UTC
Size:
1.80 KB
patch
obsolete
>From 52e64db15b19ad5196b3dbbe08c5e7f58b35f6d3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 18 Apr 2019 09:56:24 +0100 >Subject: [PATCH] Bug 22200: Add Tests for change > >--- > t/db_dependent/Circulation.t | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index 29d13ccd79..f04d0187ba 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -2438,7 +2438,7 @@ subtest '_FixAccountForLostAndReturned' => sub { > }; > > subtest '_FixOverduesOnReturn' => sub { >- plan tests => 6; >+ plan tests => 9; > > my $biblio = $builder->build_sample_biblio({ author => 'Hall, Kylie' }); > >@@ -2475,7 +2475,6 @@ subtest '_FixOverduesOnReturn' => sub { > is( $accountline->amountoutstanding, '99.000000', 'Fine has the same amount outstanding as previously' ); > is( $accountline->status, 'RETURNED', 'Open fine ( account type OVERDUE ) has been closed out ( status RETURNED )'); > >- > ## Run again, with exemptfine enabled > $accountline->set( > { >@@ -2494,6 +2493,10 @@ subtest '_FixOverduesOnReturn' => sub { > is( $accountline->status, 'FORGIVEN', 'Open fine ( account type OVERDUE ) has been set to fine forgiven ( status FORGIVEN )'); > is( ref $offset, "Koha::Account::Offset", "Found matching offset for fine reduction via forgiveness" ); > is( $offset->amount, '-99.000000', "Amount of offset is correct" ); >+ my $credit = $offset->credit; >+ is( ref $credit, "Koha::Account::Line", "Found matching credit for fine forgiveness" ); >+ is( $credit->amount, '-99.000000', "Credit amount is set correctly" ); >+ is( $credit->amountoutstanding + 0, 0, "Credit amountoutstanding is correctly set to 0" ); > }; > > subtest 'Set waiting flag' => sub { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22200
:
84339
|
85219
|
88269
|
88270
|
88271
|
88273
|
88304
|
88305
|
88718
|
88719
|
88750
|
88759
|
88760
|
88761
|
88779
|
88780
|
88781