Вернул округление до 2-х знаков для суммы и комиссии в таблицах

parent b5f4aeaa
......@@ -293,11 +293,13 @@ input[type="checkbox"]
{
font-weight: bold;
text-align: right;
white-space: nowrap;
}
.table.table-striped.admin.transactions td.AdMoney
{
text-align: right;
white-space: nowrap;
}
.table.table-striped.admin.transactions td.Pages
......
......@@ -45,7 +45,12 @@ $(document).ready(function(){
var
isCurrencyValue = currencyFields.indexOf(currentActiveLine) > -1,
isNonFormatValue = notFormatFields.indexOf(currentActiveLine) > -1,
format = (isCurrencyValue) ? d3.format(',.0f') : d3.format(',.0f');
format = (isCurrencyValue) ? d3.format(',.2f') : d3.format(',.0f');
/*
if (currentActiveLine == 'AdMoney') {
format = d3.format(',.2f');
}*/
if (isNonFormatValue) {
return value;
......
$(document).ready(function(){
(function(){
})();
// Выбор дат для Stat http://t1m0n.name/air-datepicker/docs/index-ru.html
var
......
......@@ -35,7 +35,7 @@ $this->headScript()
->appendFile('/js/script-feeds-stat-charts.js')
->appendFile('/js/script-feeds-stat-table.js')
->appendFile('/js/script-feeds-stat.js')
->appendFile('/js/adm/service-actions.js')
//->appendFile('/js/adm/service-actions.js')
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment