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

6 lines
121 B
JavaScript
Raw Normal View History

module.exports = Self => {
2018-08-30 09:02:50 +00:00
Self.validatesUniquenessOf('code', {
message: `Barcode must be unique`
});
};