2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/client/view/controls/currency.js
Rushabh Mehta 077d098599 whitespace
2018-02-21 15:13:21 +05:30

13 lines
298 B
JavaScript

const FloatControl = require('./float');
const frappe = require('frappejs');
class CurrencyControl extends FloatControl {
parse(value) {
return frappe.parse_number(value);
}
format(value) {
return frappe.format_number(value);
}
};
module.exports = CurrencyControl;