Bugzilla – Attachment 2138 Details for
Bug 4521
aqbudgets.pl - Transform undefined budget spent value to 0.00 value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
aqbudgets.pl - Transform undefined budget spent value to 0.00 value
0001-BUG-4521-aqbudgets.pl-Transform-undefined-budget-spe.patch (text/plain), 1.13 KB, created by
Chris Cormack
on 2010-05-18 07:44:00 UTC
(
hide
)
Description:
aqbudgets.pl - Transform undefined budget spent value to 0.00 value
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-05-18 07:44:00 UTC
Size:
1.13 KB
patch
obsolete
>From 1f49914c1744c77a5f9a8825593914398a45246b Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 18 May 2010 09:41:22 +0200 >Subject: [PATCH] (BUG #4521) aqbudgets.pl - Transform undefined budget spent value to 0.00 value > >This patch tranform the undefined value of budget spent to a money value which equals 0.00. >--- > admin/aqbudgets.pl | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl >index 8c6d2b4..569124a 100755 >--- a/admin/aqbudgets.pl >+++ b/admin/aqbudgets.pl >@@ -294,6 +294,9 @@ if ($op eq 'add_form') { > $$budget{$_} = $num->format_price( $$budget{$_} ) if defined($$budget{$_}) > } > >+ # Value of budget_spent equals 0 instead of undefined value >+ $$budget{"budget_spent"} = $num->format_price(0) unless defined($$budget{"budget_spent"}); >+ > my $borrower = &GetMember( borrowernumber=>$budget->{budget_owner_id} ); > $budget->{"budget_owner_name"} = $borrower->{'firstname'} . ' ' . $borrower->{'surname'}; > $budget->{"budget_borrowernumber"} = $borrower->{'borrowernumber'}; >-- >1.6.3.3 >
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 4521
: 2138