2
0
mirror of https://github.com/frappe/books.git synced 2025-01-27 17:18:27 +00:00
books/ui/components/controls/Currency.vue

15 lines
252 B
Vue
Raw Normal View History

2018-06-27 20:08:27 +05:30
<script>
import Float from './Float';
export default {
extends: Float,
methods: {
parse(value) {
return frappe.format(value, 'Currency');
2019-08-28 14:24:11 +05:30
},
validate(value) {
return !isNaN(frappe.parseNumber(value));
}
}
};
2018-06-27 20:08:27 +05:30
</script>