Bugzilla – Attachment 29804 Details for
Bug 12596
Backdating returns with SpecifiyReturnDate causes fines for items not overdue!
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12596 - Unit Test
Bug-12596---Unit-Test.patch (text/plain), 1.16 KB, created by
Kyle M Hall (khall)
on 2014-07-17 16:20:05 UTC
(
hide
)
Description:
Bug 12596 - Unit Test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-07-17 16:20:05 UTC
Size:
1.16 KB
patch
obsolete
>From 87bf88895380fe3b26740b5c8847f9e612e7caa4 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 17 Jul 2014 12:17:48 -0400 >Subject: [PATCH] Bug 12596 - Unit Test > >--- > t/db_dependent/Circulation.t | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index 6b25208..180c86f 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -8,8 +8,9 @@ use C4::Branch; > use C4::Items; > use C4::Members; > use C4::Reserves; >+use Koha::DateUtils; > >-use Test::More tests => 48; >+use Test::More tests => 49; > > BEGIN { > use_ok('C4::Circulation'); >@@ -359,6 +360,12 @@ C4::Context->dbh->do("DELETE FROM accountlines"); > ); > > ok( $total_due == 15, 'Borrower only charged fine with both WhenLostForgiveFine and WhenLostChargeReplacementFee disabled' ); >+ >+ my $now = dt_from_string(); >+ my $future = dt_from_string(); >+ $future->add( days => 7 ); >+ my $units = C4::Overdues::_get_chargeable_units('days', $future, $now, 'MPL'); >+ ok( $units == 0, '_get_chargeable_units returns 0 for items not past due date' ); > } > > { >-- >1.7.2.5
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 12596
:
29802
|
29803
|
29804
|
29805
|
29806
|
29940
|
29941
|
30049
|
30050