mirror of
https://github.com/frappe/books.git
synced 2024-12-24 11:55:46 +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; |