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>
Tue, 1 Jun 2021 22:23:36 +0000 (18:23 -0400)
commit67131c70de935eda1b4b152ad641cfd7ba28fb7a
treedd8597ff9ce699f4b6cfc6e29774cfa2419e06b0
parent35334d39a017c15fc9354c62a177c34c078f2b4b
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