mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +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; |