salix/modules/agency/back/models/zone.js

13 lines
321 B
JavaScript

module.exports = Self => {
require('../methods/zone/clone')(Self);
require('../methods/zone/editPrices')(Self);
Self.validatesPresenceOf('warehouseFk', {
message: `Warehouse cannot be blank`
});
Self.validatesPresenceOf('agencyModeFk', {
message: `Agency cannot be blank`
});
};