salix/services/item/common/models/item.js

9 lines
326 B
JavaScript
Raw Normal View History

2017-12-19 11:29:35 +00:00
module.exports = function(Self) {
require('../methods/item/filter.js')(Self);
2018-02-22 12:40:23 +00:00
require('../methods/item/clone.js')(Self);
2018-02-23 12:04:44 +00:00
require('../methods/item/updateTaxes.js')(Self);
2018-01-10 11:49:52 +00:00
Self.validatesPresenceOf('name', {message: 'Cannot be blank'});
Self.validatesPresenceOf('originFk', {message: 'Cannot be blank'});
2017-12-19 11:29:35 +00:00
};