2018-05-04 09:46:03 +00:00
|
|
|
module.exports = Self => {
|
2019-02-22 07:32:18 +00:00
|
|
|
require('../methods/item-barcode/toItem')(Self);
|
2023-12-13 10:43: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`
|
|
|
|
});
|
2018-02-14 13:22:35 +00:00
|
|
|
};
|