2
0
mirror of https://github.com/frappe/books.git synced 2024-12-24 20:00:29 +00:00
books/client/view/controls/int.js
2018-03-05 22:15:21 +05:30

10 lines
213 B
JavaScript

const FloatControl = require('./float');
class IntControl extends FloatControl {
parse(value) {
value = parseInt(value);
return isNaN(value) ? 0 : value;
}
};
module.exports = IntControl;