2
0
mirror of https://github.com/frappe/books.git synced 2024-12-24 03:45:35 +00:00
books/client/view/controls/int.js

10 lines
213 B
JavaScript
Raw Normal View History

2018-02-12 12:24:53 +00:00
const FloatControl = require('./float');
class IntControl extends FloatControl {
parse(value) {
value = parseInt(value);
2018-03-05 16:45:21 +00:00
return isNaN(value) ? 0 : value;
2018-02-12 12:24:53 +00:00
}
};
module.exports = IntControl;