Skip to content

Commit

Permalink
Clean and sanitaze code
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Aug 4, 2021
1 parent f9e7fbd commit 500957b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions server/lib/template/helpers/finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ const EUR_FMT = {
format : '%v %s', // value before symbol
};

const ROUBLE_FMT = {
symbol : '₽',
precision : 2,
thousand : ' ', // thin non-breaking space
decimal : ',',
format : '%v %s', // value before symbol
};

const FORMATS = [null, FC_FMT, USD_FMT, EUR_FMT, ROUBLE_FMT]; // NB: Indeces must match currency IDs in database
const FORMATS = [null, FC_FMT, USD_FMT, EUR_FMT]; // NB: Indeces must match currency IDs in database

/** @todo use the currency filter fork written for the client to perform the same behaviour here */
function currency(value = 0, currencyId, digit) {
Expand Down

0 comments on commit 500957b

Please sign in to comment.