ember-cli-accounting icon indicating copy to clipboard operation
ember-cli-accounting copied to clipboard

Custom settings for formatNumber don't work.

Open egemon opened this issue 8 years ago • 0 comments

I do this before usage of accounting.formatNumber():

accounting.settings.number = {
      grouping: 3,
      thousand: ',',
      decimal: '.',
      precision: 4
    },;

but it doesn't affect the result. I think issue is here:

import { number } from "./settings";
var numberSettings = number;
  var opts = defaults(
      (isObject(precision) ? precision : {
        precision : precision,
        thousand : thousand,
        decimal : decimal
      }),
      numberSettings
    );

Creating additional pointer here breaks the connection.

egemon avatar Dec 01 '16 09:12 egemon