13 lines
393 B
JavaScript
13 lines
393 B
JavaScript
module.exports = function(Self) {
|
|
require('../methods/greuge/filter.js')(Self);
|
|
require('../methods/greuge/totalGreuge.js')(Self);
|
|
|
|
Self.validatesPresenceOf('description', 'amount', 'greugeTypeFk', {
|
|
message: 'Importe es un campo obligatorio'
|
|
});
|
|
Self.validatesLengthOf('description', {
|
|
max: 45,
|
|
message: 'description es un campo max 45'
|
|
});
|
|
};
|