LP#1904244: format: switch from CurrencyPipe to DecimalPipe
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 1 Jun 2021 22:23:36 +0000 (18:23 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 21 Jun 2021 15:30:32 +0000 (11:30 -0400)
commitb116994d9001281ac58ef23bf248002e6579930f
treea9d922e4e4a9bbc6419a6f836bfe458c98320ce4
parent5fc2a3a0aae7956ce759790ca9c3508db4df8a4e
LP#1904244: format: switch from CurrencyPipe to DecimalPipe

CurrencyPipe has no easy way of displaying the monetary amount
without a currency symbol, which means that currency amounts
display with a dollar sign -- which isn't a univeral assumption
for Evergreen.

Future work is indicated to (a) teach Evergreen a global flag
or a library setting for the system's base currency and (b) let
the format service be passed a currency code. Once both are in place,
CurrencyPipe can be restored.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/core/core.module.ts
Open-ILS/src/eg2/src/app/core/format.service.ts
Open-ILS/src/eg2/src/app/core/format.spec.ts