From f34d29c80850bdf582d1568dc98ae67d1895f082 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 21 Mar 2021 13:17:38 +0300 Subject: feat: use rubles as units --- src/services/transfers.service.ts | 2 +- src/services/waybills.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/transfers.service.ts b/src/services/transfers.service.ts index e2c70e4..77fef8a 100644 --- a/src/services/transfers.service.ts +++ b/src/services/transfers.service.ts @@ -21,7 +21,7 @@ const populateSchema = { const addFields = (item: any) => { const { operation, contractor, amount } = item; const op = operation === 'in' ? 'приход' : 'расход'; - const name = `Перевод: ${op} $${amount} от ${contractor.name}`; + const name = `Перевод: ${op} ${amount}р от ${contractor.name}`; return { ...item, name }; }; diff --git a/src/services/waybills.service.ts b/src/services/waybills.service.ts index 8fb6ef4..66225ac 100644 --- a/src/services/waybills.service.ts +++ b/src/services/waybills.service.ts @@ -62,7 +62,7 @@ const addFields = (item: WaybillSchema) => { const { operation, records, date } = item; const total = item.records.reduce((sum, record) => sum + record.price * record.quantity, 0); const op = operation === 'in' ? 'приход' : 'расход'; - const name = `Накладная: ${op} $${total}`; + const name = `Накладная: ${op} ${total}р`; return { ...item, name, total }; }; -- cgit v1.2.3