Merge remote-tracking branch 'origin/release-8.1' into chore/merge-8.1-into-8.6-2023-10-22
This commit is contained in:
commit
416744baf3
31 changed files with 3327 additions and 2533 deletions
|
|
@ -1,7 +1,6 @@
|
|||
const _ = require('lodash/fp')
|
||||
const crypto = require('crypto')
|
||||
const { utils: coinUtils } = require('@lamassu/coins')
|
||||
const numeral = require('numeral')
|
||||
const prettyMs = require('pretty-ms')
|
||||
|
||||
const {
|
||||
|
|
@ -140,8 +139,9 @@ const buildTransactionMessage = (tx, rec, highValueTx, machineName, customer) =>
|
|||
}, highValueTx]
|
||||
}
|
||||
|
||||
function formatCurrency (num, code) {
|
||||
return numeral(num).format('0,0.00') + ' ' + code
|
||||
function formatCurrency (num = 0, code) {
|
||||
const formattedNumber = Number(num).toLocaleString(undefined, {maximumFractionDigits:2, minimumFractionDigits:2})
|
||||
return `${formattedNumber} ${code}`
|
||||
}
|
||||
|
||||
function formatAge (age, settings) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue