Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Usha Matisson
Core
Commits
cca6baad
Commit
cca6baad
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #2292 from davecivicrm/CRM-14047
CRM-14047 - add clarification text to Total Fee(s) display
parents
87a12723
ff2c2c38
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/CRM/Price/Form/Calculate.tpl
+3
-34
3 additions, 34 deletions
templates/CRM/Price/Form/Calculate.tpl
with
3 additions
and
34 deletions
templates/CRM/Price/Form/Calculate.tpl
+
3
−
34
View file @
cca6baad
...
...
@@ -25,9 +25,9 @@
*}
<div
id=
"pricesetTotal"
class=
"crm-section section-pricesetTotal"
>
<div
class=
"label"
id=
"pricelabel"
><label>
{
if
(
$extends
eq
'Contribution'
)
||
(
$extends
eq
'Membership'
)
}
{
ts
}
Total Amount
{/
ts
}{
else
}{
ts
}
Total Fee(s)
{/
ts
}
{/
if
}
</label></div>
{
if
(
$extends
eq
'Contribution'
)
||
(
$extends
eq
'Membership'
)
}
{
ts
}
Total Amount
{/
ts
}{
else
}{
ts
}
Total Fee(s)
for this participant
{/
ts
}
{/
if
}
</label></div>
<div
class=
"content calc-value"
id=
"pricevalue"
></div>
</div>
...
...
@@ -74,10 +74,6 @@ cj("input,#priceset select,#priceset").each(function () {
}
display
(
totalfee
);
});
cj
(
'
#additional_participants
'
).
change
(
function
(
)
{
display
(
totalfee
);
});
display
(
totalfee
);
break
;
...
...
@@ -104,11 +100,6 @@ cj("input,#priceset select,#priceset").each(function () {
display
(
totalfee
);
});
cj
(
'
#additional_participants
'
).
change
(
function
(
)
{
display
(
totalfee
);
});
display
(
totalfee
);
break
;
...
...
@@ -135,11 +126,6 @@ cj("input,#priceset select,#priceset").each(function () {
cj
(
this
).
bind
(
'
keyup
'
,
function
()
{
calculateText
(
this
);
}).
bind
(
'
blur
'
,
function
()
{
calculateText
(
this
);
});
cj
(
'
#additional_participants
'
).
change
(
function
(
)
{
display
(
totalfee
);
});
display
(
totalfee
);
break
;
...
...
@@ -185,11 +171,6 @@ cj("input,#priceset select,#priceset").each(function () {
}
display
(
totalfee
);
});
cj
(
'
#additional_participants
'
).
change
(
function
(
)
{
display
(
totalfee
);
});
display
(
totalfee
);
break
;
}
...
...
@@ -219,20 +200,8 @@ function calculateText( object ) {
//display calculated amount
function
display
(
totalfee
)
{
num_participants
=
cj
(
'
#additional_participants
'
).
val
()
if
(
!
num_participants
)
{
num_participants
=
0
}
// The value of this field is the number of *additional* participants
// What is displayed to the user is 1 + the value, because it is including
// the "yourself". Since we want to give a total, including "yourself" we have
// to add one to the value of #additional_participants.
num_participants
++
;
// totalfee is monetary, round it to 2 decimal points so it can
// go as a float - CRM-13491
totalfee
=
totalfee
*
num_participants
;
totalfee
=
Math
.
round
(
totalfee
*
100
)
/
100
;
var
totalEventFee
=
formatMoney
(
totalfee
,
2
,
seperator
,
thousandMarker
);
document
.
getElementById
(
'
pricevalue
'
).
innerHTML
=
"
<b>
"
+
symbol
+
"
</b>
"
+
totalEventFee
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment