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