mirror of
https://github.com/frappe/books.git
synced 2024-12-23 19:39:07 +00:00
10 lines
213 B
JavaScript
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; |