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

8 lines
175 B
JavaScript
Raw Normal View History

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