2018-09-19 13:05:07 +00:00
|
|
|
module.exports = Self => {
|
2019-03-14 14:07:24 +00:00
|
|
|
require('../methods/zone/clone')(Self);
|
2019-06-26 11:35:38 +00:00
|
|
|
require('../methods/zone/editPrices')(Self);
|
2019-09-19 15:30:16 +00:00
|
|
|
require('../methods/zone/getLeaves')(Self);
|
2019-03-14 14:07:24 +00:00
|
|
|
|
2018-09-19 13:05:07 +00:00
|
|
|
Self.validatesPresenceOf('warehouseFk', {
|
|
|
|
message: `Warehouse cannot be blank`
|
|
|
|
});
|
|
|
|
|
|
|
|
Self.validatesPresenceOf('agencyModeFk', {
|
|
|
|
message: `Agency cannot be blank`
|
|
|
|
});
|
|
|
|
};
|