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

9 lines
228 B
JavaScript
Raw Permalink Normal View History

module.exports = Self => {
2019-02-22 07:32:18 +00:00
require('../methods/item-barcode/toItem')(Self);
2024-03-14 07:36:19 +00:00
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`
});
};