Bugzilla – Attachment 3421 Details for
Bug 5946
Acquisitions: Budget planning does not total correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-5946-MT1177-aqplan.pl-fix-the-problem-of-calcula.patch (text/plain), 1.30 KB, created by
Chris Cormack
on 2011-03-24 20:38:17 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-24 20:38:17 UTC
Size:
1.30 KB
patch
obsolete
>From f0c5cee718f16748d09a9fd577e2424ada23820b Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Fri, 14 May 2010 17:07:55 +0200 >Subject: [PATCH] Bug 5946 : (MT1177) aqplan.pl, fix the problem of calculating the total remaining. > >--- > koha-tmpl/intranet-tmpl/prog/en/js/acq.js | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js >index b5ec994..28afc19 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js >@@ -557,12 +557,14 @@ function getElementsByClass( searchClass, domNode, tagName) { > > function calcTotalRow(cell) { > >- var bud_id = cell.className; >+ var string = cell.name; >+ var pos = string.indexOf(",", 0); >+ var bud_id = string.substring(0, pos); > var val1 = cell.value; >- var remainingTotal = document.getElementById("budget_est_"+bud_id).textContent; >+ var remainingTotal = document.getElementById("budget_est_"+bud_id); > var remainingNew =0; > var budgetTotal = document.getElementById("budget_tot_"+bud_id ).textContent; >- var arr = getElementsByClass(bud_id); >+ var arr = getElementsByClass(cell.className); > > budgetTotal = budgetTotal.replace(/\,/, ""); > >-- >1.7.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 5946
:
3421
|
3422
|
3653
|
3654