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

14 lines
369 B
JavaScript

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