2023-01-23 12:15:30 +00:00
|
|
|
const vnReport = require('../../../core/mixins/vn-report.js');
|
2021-12-13 07:23:44 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-05-26 14:14:10 +00:00
|
|
|
name: 'incoterms-authorization',
|
2023-01-23 12:15:30 +00:00
|
|
|
mixins: [vnReport],
|
2021-12-13 07:23:44 +00:00
|
|
|
async serverPrefetch() {
|
2022-09-26 06:07:45 +00:00
|
|
|
this.client = await this.findOneFromDef('client', [this.id]);
|
2023-01-23 12:15:30 +00:00
|
|
|
this.checkMainEntity(this.client);
|
2022-06-13 09:03:11 +00:00
|
|
|
this.company = await this.findOneFromDef('company', [this.companyId]);
|
2021-12-13 07:23:44 +00:00
|
|
|
},
|
|
|
|
props: {
|
2022-09-26 06:07:45 +00:00
|
|
|
id: {
|
2022-10-28 13:53:57 +00:00
|
|
|
type: Number,
|
2022-09-26 11:33:27 +00:00
|
|
|
required: true,
|
|
|
|
description: 'The client id'
|
2022-06-13 09:03:11 +00:00
|
|
|
},
|
|
|
|
companyId: {
|
2022-10-28 13:53:57 +00:00
|
|
|
type: Number,
|
2021-12-13 07:23:44 +00:00
|
|
|
required: true
|
2023-09-21 11:15:00 +00:00
|
|
|
},
|
|
|
|
address: {
|
|
|
|
type: String
|
2021-12-13 07:23:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|