salix/print/templates/reports/incoterms-authorization/incoterms-authorization.js

26 lines
653 B
JavaScript
Executable File

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]);
},
props: {
id: {
type: Number,
required: true,
description: 'The client id'
},
companyId: {
type: Number,
required: true
},
address: {
type: String
}
}
};