Bugzilla – Attachment 13664 Details for
Bug 7243
Do not take rentals as fines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug_7243: Rewording and renaming
bug7243-spelling-correction.patch (text/plain), 2.63 KB, created by
Srdjan Jankovic
on 2012-11-26 01:34:55 UTC
(
hide
)
Description:
bug_7243: Rewording and renaming
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2012-11-26 01:34:55 UTC
Size:
2.63 KB
patch
obsolete
>From 19e953b07d2425cc7350a53465f082a4f9dde2f6 Mon Sep 17 00:00:00 2001 >From: Srdjan <srdjan@catalyst.net.nz> >Date: Mon, 26 Nov 2012 14:26:48 +1300 >Subject: [PATCH] bug_7243: spelling correction > >--- > C4/Circulation.pm | 4 ++-- > C4/Members.pm | 10 +++++----- > 2 files changed, 7 insertions(+), 7 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index e23fb9e..b1831fd 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -771,7 +771,7 @@ sub CanBookBeIssued { > # > > # DEBTS >- my ($ballance, $non_issue_charges, $other_charges) = >+ my ($balance, $non_issue_charges, $other_charges) = > C4::Members::GetMemberAccountBallance( $borrower->{'borrowernumber'} ); > my $amountlimit = C4::Context->preference("noissuescharge"); > my $allowfineoverride = C4::Context->preference("AllowFineOverride"); >@@ -794,7 +794,7 @@ sub CanBookBeIssued { > $needsconfirmation{DEBT} = sprintf( "%.2f", $non_issue_charges ); > } > } >- if ($ballance > 0 && $other_charges > 0) { >+ if ($balance > 0 && $other_charges > 0) { > $alerts{OTHER_CHARGES} = sprintf( "%.2f", $other_charges ); > } > >diff --git a/C4/Members.pm b/C4/Members.pm >index 13079cb..99ddb65 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -430,7 +430,7 @@ sub patronflags { > my %flags; > my ( $patroninformation) = @_; > my $dbh=C4::Context->dbh; >- my ($ballance, $owing) = GetMemberAccountBallance( $patroninformation->{'borrowernumber'}); >+ my ($balance, $owing) = GetMemberAccountBallance( $patroninformation->{'borrowernumber'}); > if ( $owing > 0 ) { > my %flaginfo; > my $noissuescharge = C4::Context->preference("noissuescharge") || 5; >@@ -441,10 +441,10 @@ sub patronflags { > } > $flags{'CHARGES'} = \%flaginfo; > } >- elsif ( $ballance < 0 ) { >+ elsif ( $balance < 0 ) { > my %flaginfo; >- $flaginfo{'message'} = sprintf "Patron has credit of \$%.02f", -$ballance; >- $flaginfo{'amount'} = sprintf "%.02f", $ballance; >+ $flaginfo{'message'} = sprintf "Patron has credit of \$%.02f", -$balance; >+ $flaginfo{'amount'} = sprintf "%.02f", $balance; > $flags{'CREDITS'} = \%flaginfo; > } > if ( $patroninformation->{'gonenoaddress'} >@@ -1142,7 +1142,7 @@ sub GetMemberAccountRecords { > > =head2 GetMemberAccountBallance > >- ($total_ballance, $non_issue_ballance, $other_charges) = &GetMemberAccountBallance($borrowernumber); >+ ($total_balance, $non_issue_balance, $other_charges) = &GetMemberAccountBallance($borrowernumber); > > Calculates amount immediately owing by the patron - non-issue charges. > Based on GetMemberAccountRecords. >-- >1.7.10.4
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 7243
:
6335
|
6709
|
7127
|
11943
|
12452
|
12454
|
12781
|
13261
|
13664
|
13666
|
13693
|
13917
|
14741
|
14742