ember-cli-accounting
ember-cli-accounting copied to clipboard
Custom settings for formatNumber don't work.
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.