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

8 lines
175 B
JavaScript

module.exports = Self => {
require('../methods/item-barcode/toItem')(Self);
Self.validatesUniquenessOf('code', {
message: `Barcode must be unique`
});
};