Skip to content

Commit

Permalink
Задаване на уеб константа за експорирване по подразбиране да е ','.Пр…
Browse files Browse the repository at this point in the history
…и натискане на бутона за експорт да се взима предвид тази константа.
  • Loading branch information
GPetrova committed May 5, 2015
1 parent 47e57db commit b4c8b91
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
12 changes: 12 additions & 0 deletions acc/BalanceReportImpl.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,18 @@ private function getVerbalDetail($rec)
$Varchar = cls::get('type_Varchar');
$Double = cls::get('type_Double');
$Double->params['decimals'] = 2;

$cUrl = getCurrentUrl();
if ($cUrl['Act'] == 'export') {
$conf = core_Packs::getConfig('frame');
$symbol = $conf->FRAME_TYPE_DECIMALS_SEP;
if ($symbol == 'comma') {
$Double->params['decPoint'] = ',';
} else {
$Double->params['decPoint'] = '.';
}
}

$Int = cls::get('type_Int');

$row = new stdClass();
Expand Down
5 changes: 0 additions & 5 deletions frame/BaseDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@



/**
* Колко цифри след запетаята да показваме по подразбиране?
*/
defIfNot('FRAME_TYPE_DECIMALS_SEP', 'dot');



/**
Expand Down
7 changes: 3 additions & 4 deletions frame/Reports.class.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php

/**
* Колко цифри след запетаята да показваме по подразбиране?
*/
defIfNot('FRAME_TYPE_DECIMALS_SEP', 'dot');





/**
Expand Down
2 changes: 1 addition & 1 deletion frame/Setup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Колко цифри след запетаята да показваме по подразбиране?
*/
defIfNot('FRAME_TYPE_DECIMALS_SEP', 'dot');
defIfNot('FRAME_TYPE_DECIMALS_SEP', 'comma');



Expand Down

0 comments on commit b4c8b91

Please sign in to comment.