mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24:04 +00:00
14 lines
248 B
Vue
14 lines
248 B
Vue
|
<script>
|
||
|
import Float from './Float';
|
||
|
|
||
|
export default {
|
||
|
extends: Float,
|
||
|
methods: {
|
||
|
parse(value) {
|
||
|
const parsedValue = parseInt(value);
|
||
|
return isNaN(parsedValue) ? 0 : parsedValue;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|