mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
13 lines
298 B
JavaScript
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; |