19 lines
528 B
JavaScript
Executable File
19 lines
528 B
JavaScript
Executable File
const vnReport = require('../../../core/mixins/vn-report.js');
|
|
|
|
module.exports = {
|
|
name: 'exportation',
|
|
mixins: [vnReport],
|
|
async serverPrefetch() {
|
|
this.invoice = await this.findOneFromDef('invoice', [this.reference]);
|
|
this.checkMainEntity(this.invoice);
|
|
this.company = await this.findOneFromDef('company', [this.invoice.companyFk]);
|
|
},
|
|
props: {
|
|
reference: {
|
|
type: Number,
|
|
required: true,
|
|
description: 'The invoice ref'
|
|
}
|
|
}
|
|
};
|