fix format number issue

This commit is contained in:
liangping 2022-03-04 18:16:23 +08:00
parent 0df70f5701
commit e6459023e1

View File

@ -439,9 +439,9 @@ export default {
total[denom] = this.formatCurrency(x.amount, x.denom) total[denom] = this.formatCurrency(x.amount, x.denom)
} }
if (qty[denom]) { if (qty[denom]) {
qty[denom] += this.formatAmount(x.amount, x.denom) qty[denom] += this.formatAmount(x.amount, x.denom, false)
} else { } else {
qty[denom] = this.formatAmount(x.amount, x.denom) qty[denom] = this.formatAmount(x.amount, x.denom, false)
} }
}) })
}) })
@ -457,9 +457,9 @@ export default {
total[denom] = this.formatCurrency(x.amount, x.denom) total[denom] = this.formatCurrency(x.amount, x.denom)
} }
if (qty[denom]) { if (qty[denom]) {
qty[denom] += this.formatAmount(x.amount, x.denom) qty[denom] += this.formatAmount(x.amount, x.denom, false)
} else { } else {
qty[denom] = this.formatAmount(x.amount, x.denom) qty[denom] = this.formatAmount(x.amount, x.denom, false)
} }
}) })
}) })