salix/print/templates/reports/exportation/exportation.js

19 lines
528 B
JavaScript
Raw Normal View History

2023-01-23 12:15:30 +00:00
const vnReport = require('../../../core/mixins/vn-report.js');
module.exports = {
name: 'exportation',
2023-01-23 12:15:30 +00:00
mixins: [vnReport],
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]);
},
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'
}
}
};