Skip to content

Commit

Permalink
Merge #6106
Browse files Browse the repository at this point in the history
6106: bug(Fix Display Decimal point) r=jniles a=lomamech

- Removal of the call of an unnecessary and undefined parameter in
  helpers finance in function currency()

closes #6104

Co-authored-by: lomamech <lomamech@gmail.com>
  • Loading branch information
bors[bot] and lomamech committed Nov 29, 2021
2 parents bfdfb5e + ce2319b commit ff79a25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AccountReportConfigController.$inject = [

function AccountReportConfigController(
$sce, Notify, SavedReports, AppCache, reportData, $state,
Moment, Session
Moment, Session,
) {
const vm = this;
const cache = new AppCache('configure_account_report');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
</th>

<th></th>

<th class="text-right">
{{debcred header.exchangedBalance params.currency_id }}
</th>
Expand Down
4 changes: 3 additions & 1 deletion server/lib/template/helpers/finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ function currency(value = 0, currencyId, digit) {
} else {
// usage with custom digits for precision
const format = JSON.parse(JSON.stringify(fmt));
format.precision = digit;

if (digit !== undefined) { format.precision = digit; }

output = new Handlebars.SafeString(accountingjs.formatMoney(value, format));
}

Expand Down

0 comments on commit ff79a25

Please sign in to comment.