2
0
mirror of https://github.com/frappe/books.git synced 2024-12-27 12:42:44 +00:00
books/ui/components/controls/Currency.vue
2019-08-30 15:34:47 +05:30

15 lines
252 B
Vue

<script>
import Float from './Float';
export default {
extends: Float,
methods: {
parse(value) {
return frappe.format(value, 'Currency');
},
validate(value) {
return !isNaN(frappe.parseNumber(value));
}
}
};
</script>