2023-01-23 12:15:30 +00:00
|
|
|
const vnReport = require('../../../core/mixins/vn-report.js');
|
2021-10-25 09:58:23 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: 'exportation',
|
2023-01-23 12:15:30 +00:00
|
|
|
mixins: [vnReport],
|
2021-10-25 09:58:23 +00:00
|
|
|
async serverPrefetch() {
|
2023-01-23 12:15:30 +00:00
|
|
|
this.invoice = await this.findOneFromDef('invoice', [this.reference]);
|
|
|
|
this.checkMainEntity(this.invoice);
|
2022-09-26 11:33:27 +00:00
|
|
|
this.company = await this.findOneFromDef('company', [this.invoice.companyFk]);
|
2021-10-25 09:58:23 +00:00
|
|
|
},
|
|
|
|
props: {
|
2022-09-29 05:35:20 +00:00
|
|
|
reference: {
|
2022-10-28 13:53:57 +00:00
|
|
|
type: Number,
|
2022-09-26 11:33:27 +00:00
|
|
|
required: true,
|
|
|
|
description: 'The invoice ref'
|
2021-10-25 09:58:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|