salix/modules/item/back/models/item-barcode.js

9 lines
228 B
JavaScript
Raw Normal View History

module.exports = Self => {
2019-02-22 07:32:18 +00:00
require('../methods/item-barcode/toItem')(Self);
require('../methods/item-barcode/delete')(Self);
2019-02-22 07:32:18 +00:00
2018-08-30 09:02:50 +00:00
Self.validatesUniquenessOf('code', {
message: `Barcode must be unique`
});
};