const vnReport = require('../../../core/mixins/vn-report.js'); module.exports = { name: 'incoterms-authorization', mixins: [vnReport], async serverPrefetch() { this.client = await this.findOneFromDef('client', [this.id]); this.checkMainEntity(this.client); this.company = await this.findOneFromDef('company', [this.companyId]); this.address = await this.findOneFromDef('address', [this.addressId]); }, props: { id: { type: Number, required: true, description: 'The client id' }, companyId: { type: Number, required: true }, addressId: { type: Number, required: true } } };