Skip to content
Snippets Groups Projects
Commit b1525e97 authored by lobo's avatar lobo
Browse files

CRM-13491 - add rounding to javascript values

----------------------------------------
* CRM-13491: Cannot create contributions using a priceset for certain dollar amounts.
  http://issues.civicrm.org/jira/browse/CRM-13491
parent 0779ccc2
No related branches found
No related tags found
No related merge requests found
......@@ -200,6 +200,9 @@ function calculateText( object ) {
//display calculated amount
function display( totalfee ) {
// totalfee is monetary, round it to 2 decimal points so it can
// go as a float - CRM-13491
totalfee = Math.round(totalfee*100)/100;
var totalEventFee = formatMoney( totalfee, 2, seperator, thousandMarker);
document.getElementById('pricevalue').innerHTML = "<b>"+symbol+"</b> "+totalEventFee;
scriptfee = totalfee;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment