Bugzilla – Attachment 87792 Details for
Bug 22521
Convert fines handling to use 'status' instead of two accounttypes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22521: (follow-up) Update 'Offsets' test
Bug-22521-follow-up-Update-Offsets-test.patch (text/plain), 1.95 KB, created by
Martin Renvoize (ashimema)
on 2019-04-11 18:39:37 UTC
(
hide
)
Description:
Bug 22521: (follow-up) Update 'Offsets' test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-11 18:39:37 UTC
Size:
1.95 KB
patch
obsolete
>From 896c59d4738507b9ba3e4fa4fcc4faff7181b32a 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: (follow-up) Update 'Offsets' test > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.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
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 22521
:
86808
|
86890
|
86891
|
86892
|
86893
|
86894
|
86895
|
86896
|
86897
|
86898
|
86899
|
86900
|
86901
|
86902
|
86918
|
86919
|
86920
|
86921
|
87063
|
87083
|
87084
|
87085
|
87086
|
87087
|
87097
|
87098
|
87099
|
87100
|
87101
|
87209
|
87210
|
87211
|
87212
|
87213
|
87214
|
87215
|
87216
|
87217
|
87218
|
87219
|
87220
|
87619
|
87620
|
87621
|
87622
|
87623
|
87624
|
87678
|
87679
|
87680
|
87681
|
87682
|
87683
|
87787
|
87788
|
87789
|
87790
|
87791
|
87792
|
87808
|
87809
|
87810
|
87811
|
87812
|
87813
|
87814
|
87850
|
87851
|
87852
|
87853
|
87854
|
87855
|
87856
|
87857
|
87858
|
87859
|
87860
|
87861
|
87862
|
87863
|
87864
|
87865
|
88064
|
88065
|
88066
|
88067
|
88068
|
88069
|
88070
|
88071
|
88149
|
88150
|
88151
|
88152
|
88153
|
88154
|
88155
|
88156
|
88286